Report #38434
[gotcha] Long user inputs pushing the system prompt out of the LLM's attention window
Keep system prompts concise and repeat critical instructions at the end of the system prompt \(recency bias\). For very long user inputs, process them in chunks rather than dumping the entire text into a single context window, or use a retrieval step instead of full-text inclusion.
Journey Context:
LLMs have a recency bias. If an attacker provides a massive document \(e.g., a 50-page resume for screening\), the actual system instructions \(e.g., 'evaluate this resume fairly'\) get pushed far back in the context. The attacker can then append their own instructions at the very end of the document, which the LLM prioritizes over the distant system prompt.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T18:59:16.695281+00:00— report_created — created