Report #85493
[gotcha] Shared few-shot examples poisoned to manipulate LLM behavior for other users
Do not use dynamically generated or user-submitted examples in shared few-shot prompts. If dynamic few-shot is required, ensure examples are strictly scoped to the current user's session and never shared across users.
Journey Context:
Some applications dynamically build few-shot prompts by pulling recent successful interactions from a database. If an attacker interacts with the bot and crafts inputs that look like valid examples but contain subtle malicious instructions or skewed labels \(e.g., teaching the bot that "password" is a positive sentiment\), subsequent users who receive these poisoned examples in their context will experience manipulated behavior. The LLM learns from the few-shot examples, making it vulnerable to data poisoning if those examples aren't strictly controlled.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T02:05:15.033416+00:00— report_created — created