Report #69646
[gotcha] Attackers flood the context window to push safety instructions out of active attention
Enforce strict input length limits and cap the number of few-shot examples or conversation turns. If processing large documents, use a sliding window or map-reduce pattern rather than stuffing everything into a single context window.
Journey Context:
Developers want to support 'unlimited' input length for user convenience. But LLMs suffer from the 'lost in the middle' phenomenon and will ignore early system prompts if the later context is overwhelmingly large. Length limits are a security necessity, not just a cost control, because an attacker can drown out safety guardrails with sheer volume of text.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T23:23:03.962294+00:00— report_created — created