A RAG security checklist for business knowledge assistants
Your assistant should answer from the right documents—and only the documents this person can use. Here is how to make that a testable requirement.
Secure retrieval-augmented generation by checking access before retrieval, preserving source permissions, treating retrieved text as untrusted input and testing the complete answer path. Include citations, caches and revoked access in the review. A convincing answer is not evidence that its sources were authorized.
Who this is for Teams building internal knowledge search, customer portals and AI assistants over business documents.
Agentic AI securityWhat changes when search can write an answer?
Retrieval-augmented generation, or RAG, finds relevant material and supplies it to a language model as context. A staff member asks a question; the system retrieves passages; the model explains them. That can make a large document collection easier to use. It also means the answer may expose information without the reader ever opening the original file.
Start the review with a normal working day. Who is asking? Which project are they working on? What may they see? Which document was retrieved, and which version? Those questions are more useful than a general instruction telling the model to “keep data private”.
OWASP identifies access-control weaknesses, poisoning and cross-context information exposure among the risks in vector and embedding systems. Its vector and embedding guidance is a useful starting point for the threat model.
Write down four boundaries before selecting a model
On a small screen, scroll the table sideways.
| Boundary | Decision to record | Owner to name |
|---|---|---|
| People and organizations | Which user, team and customer may access each collection? | Identity and application owner |
| Documents | Which sources may be ingested, refreshed, retained and removed? | Information owner |
| Answers | What must an answer cite, and when should it say it cannot establish a fact? | Product owner |
| Actions | Can the assistant only read, or may it call a tool that changes something? | Business process owner |
For each row, write an example that must succeed and one that must fail. “The support team can find the current public warranty policy” is useful. So is “a customer cannot retrieve another customer's ticket, even if they know its title”. These examples become an acceptance pack instead of remaining a paragraph in a design document.
Check permissions before context reaches the model
The application should derive the caller's identity from the authenticated session. Do not accept an organization identifier in a chat message as permission. Apply the permitted collection and document scope on the server, including any restrictions inherited from the original source.
Check every place retrieved information can reappear: excerpts, filenames, citations, previews and cached answers. A response that hides the paragraph but exposes a confidential document title still needs investigation. OWASP's RAG Security Cheat Sheet covers access inheritance, cache isolation and fail-closed behaviour across the retrieval pipeline.
Ask the implementation team to show the denied case. If a permissions lookup fails, the system should not broaden the search to make the demo work. Agree a helpful failure message and an escalation route instead.
Treat a retrieved document as evidence, not an instruction
A document can contain both useful facts and hostile instructions. Formatting it as a PDF or storing it in an approved drive does not make every sentence trustworthy. OWASP's prompt-injection guidance explains why retrieval and fine-tuning do not, by themselves, remove this risk.
Keep instructions and source text separate. Bound the material supplied to the model and validate the response structure. If a workflow can send messages, update records or retrieve another collection, enforce that permission in the application—not in the model's willingness to obey a prompt. Require the agreed review for consequential actions.
A useful review question is: “What can a bad answer actually cause?” A read-only explanation and an assistant that can send a customer refund need different controls, even when both use the same model.
Use a small, explicit release test pack
The following is an illustrative test design, not a report of tests performed for a customer. Use synthetic documents and accounts in a controlled environment. Keep expected results beside the test input so reviewers do not grade a fluent answer on instinct.
- Allowed answer: a permitted user receives an answer from the correct document version, with a working citation.
- Cross-customer request: a user asks for another customer's uniquely named document. Its text and title must remain inaccessible.
- Revoked access: remove a test user's access and repeat both a fresh question and a previously cached question.
- Superseded document: replace a policy with a conflicting version. Check that the answer uses the approved current version and identifies its date.
- Injected instruction: place a harmless test instruction in a document asking the assistant to change topic or reveal a synthetic marker. Check the response and every attempted tool call.
- Unavailable evidence: interrupt retrieval or the permission service. The response should identify the gap without claiming the source was checked.
- Citation access: follow every rendered source link as the same test user. The link must not become a second path around authorization.
Save the input, expected result, actual result, source version and application release. A failed boundary test needs a fix and rerun, not a footnote saying the model usually behaves.
What to ask a delivery team to hand over
Ask for a source inventory, access model, data-flow diagram, test results, known limitations and a maintenance owner. The inventory should say which system is authoritative, how changes are detected and what happens when access is withdrawn. The runbook should explain how to stop answering from a collection while an issue is investigated.
Make the commercial scope equally clear. Connecting another repository, adding a customer tenant and enabling write-capable tools are different changes. Include ingestion, indexing, inference, support, evaluation and incident work in the operating estimate. Our AI operating-cost worksheet helps separate those lines.
For a first release, choose a bounded collection and a small set of useful questions. Expand when the evidence shows that access, answer quality and operations work together. This guide is a planning aid, not a certification or a guarantee that a particular implementation is secure.
Sources & notes
Primary references checked 2 November 2026. The planning worksheet and release examples are original illustrative guidance, not measured customer outcomes.
Published by Active K Digital. Our articles explain practical delivery decisions; examples are illustrative unless a named case study says otherwise. Technical sources support the attributed points. They do not establish client results or certify a project.