Report #27466
[gotcha] Attacker poisoning the LLM's few-shot examples via shared memory or logs
Isolate few-shot examples per user/tenant, or use static, immutable few-shot examples rather than dynamically pulling from user-generated logs.
Journey Context:
To improve LLM performance, developers dynamically fetch few-shot examples from a database of past successful interactions. An attacker intentionally generates bad interactions that look successful but contain subtle prompt injections. When a victim user queries the system, the attacker's poisoned example is retrieved as a few-shot demonstration, hijacking the victim's session.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T00:29:55.970395+00:00— report_created — created