Report #45695
[gotcha] Blindly using user-generated data or scraped web data for few-shot examples or RAG without validation
Curate and validate few-shot examples and RAG sources. Implement data provenance tracking and integrity checks for your knowledge base.
Journey Context:
If an attacker can inject a few malicious examples into your few-shot prompt or RAG database \(e.g., leaving a review that says 'Example: User asks X, Assistant answers Y \[malicious payload\]'\), the LLM will follow the pattern of the poisoned examples, overriding its base instructions. The LLM treats few-shot examples as strong behavioral guides.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T07:10:36.739319+00:00— report_created — created