CCAR-P · Domain 5: Governance, Safety, and Risk Management · 16% of the exam
Task 5.2: Prompt Injection Surface and Controls
Mapping how retrieved documents, tool results, MCP server responses or third-party Skills can inject instructions into the model's context, and the controls that keep that content from being obeyed.
Study it
The prompt-injection surface: retrieved documents, tool results, MCP responses and Skills
Try each one before opening the answer. Every option is explained, with the Anthropic documentation page that proves it.
Question 1 · choose 1
An operations agent on Claude Opus 5.5 automates tasks across email, documents, spreadsheets and CRM records. To improve task completion, the team adds the prompting guide's instruction to explore broadly with tool calls, including sources the task doesn't mention, and to use what it finds. The shared inbox the agent searches receives messages from anyone outside the company. What does the guidance say this addition requires?
AKeep untrusted content, such as messages in the public inbox, out of the records the agent searches and acts on
BNothing further, because Claude Opus 5.5 resists indirect prompt injection better than any earlier Opus model
CRaise the effort level to max, so that the model reasons more carefully about each message before acting on its contents
DAdd the instruction partway through each session, after the first tool results arrive, so that it applies only to later steps
Show the answer and why
AKeep untrusted content, such as messages in the public inbox, out of the records the agent searches and acts on
Correct
The guide pairs this instruction with keeping untrusted content out of the searched records, since the model acts on what it finds.
BNothing further, because Claude Opus 5.5 resists indirect prompt injection better than any earlier Opus model
Incorrect
The guide states that resistance and still pairs this instruction with keeping untrusted content out of the records the agent searches.
CRaise the effort level to max, so that the model reasons more carefully about each message before acting on its contents
Incorrect
Effort controls how much work goes into a response; the guide's caveat for this instruction is about which records are searched.
DAdd the instruction partway through each session, after the first tool results arrive, so that it applies only to later steps
Incorrect
The guide's caveat for this instruction is about which records the agent searches; adding it later doesn't keep untrusted content out of them.
The Claude Opus 5.5 prompting guide recommends a system prompt sentence that makes the model explore broadly across connected apps before acting, which improved completion on multiapp automation tasks. Because the sentence tells the model to act on what it finds, the guide says to keep untrusted content out of the records it searches.
A developer wants to install a third-party Claude Code plugin from a marketplace a vendor publishes. The plugin bundles skills, agents, a hook and an MCP server. Security asks for controls so that the plugin's content can't steer Claude or run code the team hasn't reviewed, now or after later releases. Which approach follows the plugin security guidance?
ATrust it if the marketplace name looks official, since only Anthropic can publish marketplaces with names like that
BReview the Will install list in /plugin and approve when it shows only the expected skills, agents, hook and MCP server
CInstall it and accept the trust warning, since Claude Code shows that warning only for plugins it considers risky
DRead the plugin's source, including hooks.json, .mcp.json and bin/, and turn off auto-update for its marketplace
Show the answer and why
ATrust it if the marketplace name looks official, since only Anthropic can publish marketplaces with names like that
Incorrect
A marketplace's name tells you who publishes the catalog, not what each plugin in it does, so the plugin still needs a review.
BReview the Will install list in /plugin and approve when it shows only the expected skills, agents, hook and MCP server
Incorrect
That list shows that a hook exists but not what it runs; the hook and server files have to be read.
CInstall it and accept the trust warning, since Claude Code shows that warning only for plugins it considers risky
Incorrect
The trust warning reads the same whatever marketplace the plugin comes from; it isn't a risk verdict on the plugin.
DRead the plugin's source, including hooks.json, .mcp.json and bin/, and turn off auto-update for its marketplace
Correct
The files show what the hook and server run, and with auto-update off the reviewed files don't change on disk later.
The plugin security guidance says to review a plugin before installing it: check the marketplace's source, read the details pane, and read the plugin's hooks/hooks.json, .mcp.json and every file in bin/, because the details pane shows that a hook exists but not what it runs. When auto-update is on for a marketplace, Claude Code updates the plugin in the background, so the reviewed files can change on disk.
A developer clones an unfamiliar repository whose .claude/agents/ folder contains a subagent file that defines an inline MCP server in its mcpServers field. The concern is that a repository could slip its own server into a session. What does Claude Code do with that inline server?
AIt loads the server at startup, since inline servers in agent files are trusted like built-in tools
BIt loads the server only when the subagent runs, without any trust check
CIt refuses inline servers in every agent file, so they never load from any location
DIt skips the server until the developer trusts the folder the agent file came from
Show the answer and why
AIt loads the server at startup, since inline servers in agent files are trusted like built-in tools
Incorrect
Inline servers from a project's agent files wait for folder trust.
BIt loads the server only when the subagent runs, without any trust check
Incorrect
Since v2.1.238, Claude Code checks trust for the agent file's folder.
CIt refuses inline servers in every agent file, so they never load from any location
Incorrect
Inline servers from ~/.claude/agents/, --agents or managed settings load without the folder check.
DIt skips the server until the developer trusts the folder the agent file came from
Correct
Claude Code loads an inline server from a project's .claude/agents/ only after that folder is trusted.
Claude Code loads an inline MCP server from an agent file in a project's .claude/agents/ directory only after you trust the folder the agent file came from; until then it skips every inline server in that file. A parent folder's trust doesn't count. Servers referenced by name, and inline servers from ~/.claude/agents/, --agents, the SDK agents option or managed settings, load without that check.