Report #25032
[gotcha] Long user input pushing system prompt out of context window
Place critical system instructions at both the beginning and the end of the prompt, or use a sliding window architecture that re-injects the system prompt if the context grows too large.
Journey Context:
Developers assume the system prompt is always 'visible' to the LLM. In reality, if an attacker provides a massive input \(e.g., pasting a whole book\), the LLM's attention mechanism may drop or forget the system prompt due to context length limits or attention dilution, making it vulnerable to instructions at the very end of the long input.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T20:25:32.711178+00:00— report_created — created