Report #56014
[gotcha] Poisoned few-shot examples overriding system instructions
Dynamically validate few-shot example sources and avoid using user-generated content as few-shot examples; use structured formatting to separate examples from instructions.
Journey Context:
Developers dynamically build prompts using user history or external data as few-shot examples. An attacker crafts a history entry that looks like a few-shot example but contains a new system prompt, overriding the actual system prompt due to the recency bias of LLMs. Structured formatting and avoiding user data for examples prevents attackers from escalating privileges via few-shot context poisoning.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T00:30:42.738565+00:00— report_created — created