Retrieval-augmented generation adds external material to a model's context. It does not automatically make that material reliable. If an adversary or careless contributor can alter a document that retrieval later prioritizes, the system may produce a well-cited answer grounded in misleading content. A citation proves a connection to a source, not the source's correctness.
Inventory the ways content enters the index
A fictional internal policy assistant reads an indexed document collection. Its ingestion process accepts files from approved editors, a shared folder and a scheduled import. Reviewing only the assistant's prompt misses two of the three write paths. Identify the identities that can create, replace, delete or label documents on each path. Preserve the source location, owner, revision and ingestion time. Indexing permissions are part of the application threat model because retrieval can amplify an editor's influence beyond the original audience.
Distinguish authority from similarity
A search score estimates relevance according to a particular retrieval method. It does not establish that a document is the latest approved policy. The retrieval layer should retain useful metadata, such as effective dates, document status and the approving owner. Conflicting versions need a resolution rule. Asking the model to choose the most convincing passage can reward fluent but unauthorized material. Policy authority should be represented by a maintained process rather than inferred solely from wording or vector proximity.
Evaluate a bounded poisoning scenario
Create a synthetic duplicate of a harmless policy with one changed requirement and a clearly marked test revision. Introduce it only into an isolated test collection. Compare which version is retrieved, whether provenance survives context assembly and whether the answer reports a conflict. Capture the index version, retrieval results and final citations. The purpose is to find where trust information disappears. It is not to demonstrate that every retrieval error implies a deliberate attacker or that one successful test secures the whole collection.
Plan repair beyond the source file
Removing a bad original may leave derived chunks, embeddings, caches and previously generated summaries. The recovery plan should identify every copy that can still influence an answer. Rebuild or invalidate the affected material, then run regression cases using both ordinary queries and the earlier conflict. Keep a record of the corrected revision and the scope of reindexing. A repaired document becomes an effective control only when downstream readers stop receiving the superseded representation. An index owner should also define who can approve an emergency correction and how users learn that previously generated answers may have relied on the superseded source.
Original explanatory diagram. The worked organization and records in this article are fictional.
Take this into your next review
- Inventory every index write path.
- Keep authority metadata separate from similarity scores.
- Invalidate derived representations after a source repair.
Primary references
- OWASP GenAI Security Project: LLM Top 10 ↗
- MITRE ATLAS knowledge base ↗
- NIST AI Risk Management Framework ↗
AgentX Editorial · AI-assisted educational writing. Historical analysis is separated from hypothetical future scenarios; publication does not imply independent field investigation. Referenced organizations do not endorse AgentX. Report a correction.
Continue reading
MOVEit: file-transfer appliances are data-security boundaries
A defensive view of the 2023 exploitation and the evidence needed to assess transferred data.
Incident studiesLastPass 2022: encrypted data still requires an exposure assessment
How to reason about stolen encrypted material, metadata and credential decisions without blanket assurances.
Defensive foundationsBackup recovery: prove the business workflow returns
Why stored copies, clean restore paths and recovery dependencies require different evidence.