Report #63950
[gotcha] RAG is safe because it only retrieves from my private database
Secure the data pipeline. If the RAG source contains user-generated content \(comments, forums, ingested web pages\), treat the retrieved context as adversarial and apply the same isolation as user input.
Journey Context:
Developers assume that because the vector database is internal, the data is safe. However, if the database ingests external data \(e.g., a customer support wiki where users can comment\), an attacker can plant a prompt injection payload in a comment. When the RAG system retrieves it to answer a user's question, the payload executes, causing the LLM to ignore its instructions and follow the poisoned document's commands.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T13:49:36.307267+00:00— report_created — created