Show answerHide answer
Correct answer: B Prompt-level instructions that treat user content as untrusted data, runtime classifiers that detect override attempts, scoped tool permissions that cannot be elevated by user content, and audit logging of attempts.
Explanation
Explanation:The attack pattern described in the question is: users claim to have admin privileges within the input text and instruct the model to bypass security restrictions. This is a typical direct prompt injection/jailbreak attack, where the attacker is the user themselves, attempting to manipulate the application through crafted input to produce content or take actions that should not occur .
Option B's combination of four controls precisely targets this threat model from multiple layers. Prompt-level instructions treat user content as untrusted data, establishing a clear boundary between "data" and "instructions" at the system prompt layer, preventing user text from being mistaken for authoritative commands . Runtime classifiers detect override attempts, Anthropic officially recommends using lightweight models (such as Claude Haiku) to screen user input before it reaches the primary conversation, with structured output limiting responses to simple classifications ; Anthropic's Constitutional Classifiers are also deployed in production to block jailbreak attempts . Scoped tool permissions ensure that even if the model is manipulated, the operations it can perform are strictly limited, and user input cannot elevate privileges—the core principle of agent containment best practices is "limit what the model can do" . Audit logging records all attempts, providing evidence for post-incident analysis and repeated offender handling; Anthropic recommends throttling or blocking users who repeatedly trigger refusals , and NCSC guidance also emphasizes that monitoring and logging user activity is fundamental to identifying and preventing attacks .
Why the other options are incorrect:
- A completely abandons all defenses, trusting that the model will "naturally" recognize and reject all bypass attempts. Although Claude has some resistance to such attacks, Anthropic's official documentation clearly states that additional measures are needed to strengthen protection, especially against usage that violates terms of service . Relying solely on the model's intrinsic resistance lacks defense in depth.
- C removing all security restrictions to "eliminate the attack surface" is logically absurd—it directly makes the assistant unrestricted for all inputs, precisely fulfilling the attacker's goal.
- D granting any privilege level claimed by users is equivalent to handing over access control to the attacker. Self-declared authority in user input is never trustworthy; access control must be independently verified outside the model.
References:
- Claude Platform documentation: best practices for mitigating jailbreaks and prompt injection, including input screening, prompt engineering, repeated offender handling, and audit logging .

