CCAR-P practice › Integration · Question 35 of 110

Integration

A coding agent used in CI only needs to run the test suite and read repository files. It currently runs with unrestricted shell access and a deploy token in its environment. After an incident in which a malicious string in a dependency's README led the agent to run a network command, leadership asks for the change that most reduces risk. Which is best?

Show answer and explanation

Answer: C — Restrict the agent to read and test-run permissions in enforced configuration and remove the deploy token

The role needs only to read files and run tests, so restrict permissions to exactly that in enforced configuration and remove the credential the role never uses. That holds even if the model is manipulated again. (a) improves the odds of refusal but leaves the same capability and token available. (b) is unworkable in CI and relies on human attention for a capability the role doesn't need. (d) detects the next incident after it happens.