Report #61681
[gotcha] Many-shot jailbreaking overwhelming system prompt constraints
Limit the number of conversational turns or few-shot examples a user can inject in a single prompt, or dynamically truncate user context. Implement robust output classifiers independent of the generation model.
Journey Context:
Developers assume a strong system prompt will hold. However, if an attacker prepends a massive text containing hundreds of Q&A pairs demonstrating the exact bad behavior you forbade, the LLM's in-context learning overpowers the system prompt's weight. The system prompt gets lost in the attention mechanism due to the sheer volume of the opposing context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T10:01:09.353601+00:00— report_created — created