Report #55362
[gotcha] Overwhelming safety guardrails with massive context \(Many-shot jailbreak\)
Limit the number of few-shot examples or conversation turns passed in a single context window. Implement dynamic context window management and truncate older turns.
Journey Context:
LLMs are trained to follow patterns. If an attacker fills the context window with hundreds of examples of malicious Q&A pairs, the model's in-context learning overwhelms its safety training. The model will follow the established pattern of the context rather than its base RLHF training. Developers miss this because they assume larger context windows are strictly better, not realizing they expand the attack surface for pattern-matching exploits.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T23:25:02.028941+00:00— report_created — created