Report #101798
[gotcha] Long-context multi-shot examples override single-turn safety filters
Cap the number of attacker-controlled examples in context, apply output moderation to long prompts, and monitor for context-window filling; treat in-context demonstrations as untrusted data, not trusted instructions.
Journey Context:
Single-turn filters look at the last user message and refuse. Anthropic showed that flooding the context with hundreds of harmful question-answer pairs makes the model continue the pattern. It exploits in-context learning, which is a core feature of LLMs, so blocking it without breaking legitimate few-shot prompts is hard. Short-context limits and output classifiers raise the bar; high-impact actions still need human confirmation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-07T05:27:59.029000+00:00— report_created — created