RAG penetration testing checklist: why buyers need a defined test plan
A RAG penetration test should check six areas: access control on retrieval, tenant isolation in the vector store, knowledge base poisoning, embedding inversion, source validation, and retrieval logging with behavior drift. Buyers usually commission this test because a product launch, a customer security review, a compliance requirement or an insurer question asks for evidence that the retrieval layer is safe. Without a written test plan that names these areas, the provider chooses what to test, and the result may not answer the question that prompted the work. The risks sit in specific places: the embedding model, the vector database and its index, the ingestion pipeline that turns documents into chunks, and the retrieved context that is passed to the model and, from there, to users. OWASP LLM08:2025 Vector and Embedding Weaknesses frames these risks as a category of their own, so a checklist can be mapped to it directly.
Confirm which OWASP mapping your plan uses before you write it into scope. The 2025 edition places Vector and Embedding Weaknesses at LLM08. The 2026 edition adds Hidden Context Exposure at LLM08 and moves Vector and Embedding Weaknesses to LLM09, so a plan that cites LLM08 without a year can be read two ways by an auditor or customer. Ask the provider to state the edition in the test plan and to map each finding to that edition. The OWASP LLM08:2025 entry is the reference for the 2025 wording. Where your plan also covers hidden content in retrieved documents, note that this overlaps with prompt injection testing, so decide in advance which engagement owns those cases to avoid testing them twice or not at all.
Use the plan to decide three things before any work starts. First, whether the vector store is shared between tenants or user groups, because that single fact changes which access control and partitioning tests are required. Second, which ingestion sources are trusted and who can add documents to the knowledge base. Third, what retrieval logs exist, where they are stored and whether they can be reviewed after an incident. Ask the provider to show, in writing, how each of these maps to a test case, the evidence it will collect and the retest that follows a fix. If the plan cannot answer these questions for your environment, the checklist is a template, not a test plan.
Which RAG components and decisions set the test scope
A RAG penetration test is only as complete as its scope. The components below form the attack surface a tester will examine, and the decisions that follow determine how much of that surface is covered, in what environment, and under what rules.
Vector database and its access control
The vector store holds the embeddings and often the source text attached to them, so it is the first place to confirm that retrieval respects who is asking. Testers check whether queries are filtered by user, group or tenant at the database layer or only in the application, and whether direct access to the store is restricted. Confirm the product name, version, hosting model and whether administrative endpoints are reachable from the test scope.
Embedding pipeline and model
The pipeline that chunks, embeds and stores documents determines what metadata survives into the index, such as owner, classification and tenant identifiers. Testers review whether those attributes are written consistently, whether re-embedding after an update removes stale or revoked content, and whether embeddings are stored in a way that could expose source text. Ask which embedding model and version are used and whether it is hosted by the client or a third party.
Document ingestion path
Every source that feeds the knowledge base, including file shares, wikis, ticket systems, email and web crawls, is an input an attacker may influence. Testers check whether documents are validated, whether hidden or non-visible text is detected during extraction, and whether sources are trusted and verified before indexing. This is the path where knowledge base poisoning is introduced, so list every connector in scope.
OWASP LLM08:2025 textRetrieval API and query path
The retrieval service accepts a query, applies filters and returns chunks with scores and metadata. Testers examine whether the API enforces authorization on each request, whether it can be called directly outside the chat interface, whether it returns more results or metadata than the calling user should see, and whether query logging captures enough to reconstruct what was retrieved. Confirm whether the API is internal only or exposed to clients.
Application layer that consumes context
The application decides how retrieved text is placed into the prompt, cited to users and passed to any downstream tool. Testers check whether retrieved content can override system instructions, whether citations reveal documents the user was not entitled to, and whether the model's answers are checked before they reach users or trigger actions. Include any agent or plugin that acts on retrieved content, since that extends the impact of a poisoned chunk.
Admin and ingestion accounts
Service accounts, connector credentials and administrator roles can usually read or write the entire index, which makes them high-value targets. Testers review how these identities are provisioned, whether their credentials are stored and rotated properly, whether they have least privilege for the sources they read, and whether their actions are logged. Ask the client to list every privileged identity and its purpose before testing starts.
Multi-tenant data sharing decision
Whether one index serves several customers, business units or classes of user is the single largest factor in test effort. Shared indexes require tests that try to cross tenant boundaries at every layer, while dedicated indexes shift the focus to isolation between roles. Agree in writing which tenants are in scope, whether test accounts may be created in each, and how cross-tenant results will be reported.
Test environment or production and rules of engagement
Testing against production data can expose real personal or confidential information, while a staging copy may not reflect production access controls. Agree whether testing runs in a non-production environment with representative data, and define rules for test documents, including who approves them, how they are labeled, how they are removed from the index afterward, and what happens if sensitive data is retrieved. Confirm these rules before any document is uploaded.
How a RAG test runs from scoping to retest
The sequence turns a RAG test from a list of checks into a bounded engagement: agreed rules, mapped data and users, tested layers, a findings report tied to OWASP LLM08:2025, and proof that fixes hold.
Agree scope and written rules of engagement
The client and the tester agree in writing which RAG components are in scope: the ingestion path, the vector store, the retrieval service, the generation layer and any connected sources. The rules of engagement cover test accounts, permitted test data, the environment (production, staging or a copy), rate limits, stop conditions and who is informed if sensitive data is reached. The step closes when both parties sign the scope and the rules, and the client has confirmed which tenants and user groups are available for testing.
Map data classes and user roles
The tester documents what the knowledge base holds, how documents are classified, which user roles or tenants should see which content, and how access is meant to be enforced (per document, per collection, per metadata filter or per index). This map becomes the baseline for every access control test, because a finding about retrieval is only meaningful against a stated expectation of who should receive what. The step closes when the client confirms the access matrix, and gaps in it are logged as open questions rather than assumed.
Test the ingestion path
The tester reviews how documents enter the knowledge base: which sources are accepted, whether files are validated before indexing, how hidden or non-visible content is detected during text extraction, and who can add or change content. Tests use controlled, labeled test documents that carry harmless marker instructions, so the team can see whether the pipeline keeps them out of answers. The step closes with a record of which intake controls held and which admitted content that should have been rejected, referenced against OWASP's guidance on data and model poisoning.
Test retrieval and access control
The tester runs queries from each mapped user role and tenant to check whether retrieval returns only the content that role is allowed to see, including through indirect paths such as similarity search, follow-up questions and filter parameters. Cross-tenant tests confirm logical and access partitioning in the vector database. The step closes with a table of queries, the expected and observed results, and any leakage of content across a boundary, which the report then ties to LLM08:2025 and the client's own access rules.
Test generation, embeddings and behavior
The tester checks how retrieved content reaches the model and the user, including whether source passages are exposed beyond what the user should see, whether embeddings or retrieval outputs can reveal source material, and whether retrieval changes the base model's answers in ways the client has not evaluated. Where the client has a baseline evaluation set, the tester compares responses with and without retrieval. The step closes when each layer has a recorded result and the tester has noted which conclusions depend on the client's own evaluation data.
Review logging and detection
The tester confirms whether retrieval activity is logged with enough detail to reconstruct who queried what, which documents were returned and when, and whether those logs are protected from change. Tests generate known activity during the engagement so the client can check that its logs and alerts captured it. The step closes with a logging assessment showing which events were recorded, which were missing and which the client's security operations team could not yet see.
Deliver the findings report
The report lists each finding with its affected layer, the reproduction steps described at a defensive level, the evidence, the risk to the client's data classes, and a recommended fix. Findings are mapped to OWASP LLM08:2025 and to related categories where they apply, and the report states what was tested, what was not, and which conclusions need the client's confirmation. The step closes when the client has reviewed the draft, the tester has corrected factual errors, and the final version is issued with a retest plan for the agreed fixes.
Retest fixed findings
After the client applies fixes, the tester repeats the tests tied to each finding in the agreed scope and records whether the control now holds, partially holds or fails. The retest result is added to the report as a dated addendum so the client can show its auditor or customer the closure of each item. The step closes when every finding has a retest status, and any remaining risk is accepted in writing by the client's owner for it. Retest terms and any timing should be confirmed in the written scope.
Weakness categories a RAG checklist should cover
This table maps each checklist area in a RAG penetration test to what the weakness looks like in a retrieval pipeline, why it matters to the business, and what the tester checks at a high level. Use it to confirm that a proposed test plan covers retrieval, the knowledge base and the logs, not only the chat interface. Each row lines up with the OWASP LLM08:2025 guidance on vector and embedding weaknesses.
| Checklist area | What it looks like in this target | Why it matters | What the tester checks |
|---|---|---|---|
| Retrieval access control | A user receives chunks from documents their role should not open because retrieval filters are missing or misaligned with source permissions. | OWASP notes misaligned access controls can let the model disclose personal, proprietary or sensitive content drawn from embeddings. | Whether retrieval enforces the same permissions as the source system, and whether answers reveal content outside the user's rights. |
| Cross-tenant leakage | Vectors from one customer appear in another customer's query results because the index is shared without strict partitioning. | Shared indexes are a common path to exposing one client's data to another, which is often a contractual and regulatory issue. | Whether datasets are logically and access-partitioned by user class or tenant, and whether filters hold under crafted and ambiguous queries. |
| Knowledge base poisoning | A document with hidden white-on-white text carries instructions that the RAG system later follows when it is retrieved. | OWASP gives a resume screening example where hidden instructions in a document steer the downstream system. | Whether text extraction detects hidden content before ingestion, and whether documents are validated before they enter the knowledge base. |
| Embedding inversion | An attacker with access to stored vectors or retrieval output recovers significant portions of the source text. | OWASP states embedding inversion can recover significant amounts of source information, which affects confidentiality. | Who can read raw vectors, whether they are exposed through APIs or exports, and whether sensitive sources are stored or indexed with appropriate protection. |
| Source validation | Unverified or unknown sources such as uploaded files, web pages or sync feeds enter the index without review. | Poisoned or hidden content in untrusted sources reaches answers and actions without anyone noticing. | Which sources are accepted, how they are verified, and whether the knowledge base is audited for hidden code and altered data. |
| Retrieval logging | Queries, retrieved chunks and source identifiers are not recorded, or logs can be edited after the fact. | Without detailed, immutable records, suspicious retrieval cannot be detected, scoped or answered promptly. | Whether retrieval activity is logged with user, query, document and timestamp, and whether logs are protected against alteration. |
| Behavior drift | Answers change over time or differ from the base model because retrieved content shifts the model's behavior. | OWASP notes retrieval augmentation can subtly change base model behavior, so changes may go unnoticed. | Whether the system has an evaluation baseline, and whether outputs are monitored and re-evaluated after index or model changes. |
How the tester checks access control and tenant isolation on retrieval
The core question for this section is whether retrieval enforces the same permissions as the source system, and whether it does so at query time rather than only in the user interface. A RAG system that hides a document from a user in the front end but still returns its chunks to the retrieval call has failed the test, even if no one has noticed yet. Testers therefore check the retrieval layer directly: the vector store query path, the metadata filters applied to each search, and the service account or API key the application uses to read the index. OWASP LLM08:2025 notes that inadequate or misaligned access controls can let the model retrieve and disclose personal data, proprietary information or other sensitive content from embeddings, so the test has to show what the model can reach, not only what the chat window displays.
For tenant isolation, the tester verifies that one tenant's chunks, metadata and namespaces cannot surface for another. This means confirming how the vector database is partitioned (separate collections, namespaces, indexes or filtered shared indexes), whether the tenant identifier is derived from the authenticated session or from a value the client can supply, and whether caching, reranking or conversation memory can carry content across tenants. OWASP recommends strict logical and access partitioning of datasets between classes of users or groups. Where a buyer's design shares one index across tenants, the test should concentrate on the filter logic and its failure modes, since that is where a single misconfiguration exposes every customer at once.
Ask the provider for a role matrix that lists each identity tested, its tenant and group membership, the documents or namespaces it should reach, and the result of every retrieval attempt against each of them. Testers should use identities that are provisioned in the same way as real users, with the same SSO and group mappings, and the report should show cross-tenant results as pass or fail for each identity pair. Confirm with the provider that the test covers at least one identity per role and per tenant, that results include the returned chunk identifiers and metadata, and that any test accounts and seeded documents are removed or documented afterward. This evidence is what an internal reviewer or an enterprise customer can check against the access design.
What drives RAG test cost and duration
This table lists the scope factors that change the effort of a RAG penetration test, why each one matters, how to scope it efficiently and what to ask for in a quote. No public price list exists for RAG testing and DeployOpen does not publish prices, so quotes follow the written scope.
| Driver | Why it changes effort | How to scope efficiently | What to ask for in the quote |
|---|---|---|---|
| Knowledge bases and vector stores | Each store has its own index, access rules and ingestion path that must be checked separately | Test the stores that hold regulated or customer data first, and group stores that share configuration | Named list of stores in scope and the access model for each |
| Tenants and user roles | Cross-tenant isolation tests need paired accounts and comparisons across every role that can query | Limit to the tenant boundaries that matter to customers and the roles with different retrieval rights | Count of tenants and roles tested, and whether test tenants are provided |
| Ingestion sources | Manual upload, connectors and APIs each add a path where poisoned or hidden content can enter | Prioritize sources that accept content from outside the organization, such as customer uploads or web connectors | Each ingestion path listed, with the validation and hidden-content checks applied to it |
| Depth of embedding and inversion testing | Inversion and leakage checks need controlled data, analysis time and sometimes model access | Set a depth level that matches data sensitivity and agree on which tests stay black box | Whether inversion testing is included, the access assumed and how results are reported |
| Behavior drift baselines | Drift testing is far faster when a baseline of answers and retrieval results already exists | Ask the client for a documented baseline or agree to create a small evaluation set during the test | Whether a baseline is provided, and the effort for creating one if it is not |
| Retest scope | A retest of fixed items is smaller than a full second test, but grows if fixes change retrieval logic | Agree in advance which findings are retested and the window for retesting | Retest included or priced separately, and what counts as a completed retest |
| Environment access | Testing in staging with production-like data, logs and configuration takes less coordination than production access | Confirm early whether a non-production copy with realistic index structure is available | Environment name, access method, test accounts and the logs the tester can read |
How RAG testing differs by architecture
An internal RAG system usually serves one organization's employees and draws on sources such as wikis, shared drives, ticketing systems and policy libraries. Here the main risk is rarely a rival customer reading another customer's data. It is an employee seeing content their role should not expose, or a poisoned page in a wiki being retrieved and followed by the assistant. Ingestion and source validation therefore carry the most weight, along with permission inheritance from the source systems into the index.
- Ingestion path: Test how pages, attachments and synced documents enter the knowledge base, including hidden text, comments and tracked changes that a text extraction step may keep.
- Permission inheritance: Check whether document-level permissions from the source system survive chunking and indexing, and whether they are enforced at query time.
- Stale or orphaned content: Confirm that deleted or revoked documents are removed from the index on a defined schedule.
- Behavior drift: Compare answers to a fixed question set before and after knowledge base changes.
- Tester access: Usually a test tenant or staging copy of the knowledge base, with test accounts at each role level and the source system's own permission model documented.
Confirm with the client which source systems feed the index and who owns each one, since ingestion weaknesses often sit outside the RAG application itself.
In a multi-tenant SaaS product, several customers share a platform and, often, a vector database. Tenant isolation becomes the central check. OWASP recommends strict logical and access partitioning of datasets in the vector database between classes of users or groups, and a test should show that a query from one tenant cannot retrieve chunks, metadata or cached results belonging to another. Embedding inversion and shared indexes also matter more here, because a shared store concentrates data from many customers.
- Cross-tenant retrieval: Test whether filters are enforced at the database layer or only in application code, using accounts from separate tenants.
- Shared caches and logs: Check that semantic caches, query logs and analytics do not mix tenant data.
- Metadata filters: Review how tenant identifiers are attached to each chunk and whether user input can alter them.
- Embedding exposure: Assess whether vectors from one tenant can be inverted to recover source text, and how the provider limits access to raw vectors.
- Tester access: Two or more isolated test tenants that mirror production configuration, with explicit written permission for cross-tenant attempts.
Ask the provider how a cross-tenant test is authorized and contained, because it touches data belonging to parties outside the engagement.
A self-hosted RAG system runs in the client's own cloud account, data center or air-gapped network. The client controls the vector store, the embedding service, the model host and the network paths between them. Logging, retrieval audit trails and network exposure gain weight, because the client's security and compliance teams must review and operate those controls. Infrastructure reviews may also be needed for the hosting layer, and the cloud and Kubernetes layers may require the separate cloud testing service.
- Network exposure: Confirm the vector database, embedding endpoint and admin interfaces are reachable only from intended segments, and that nothing is exposed to the public internet by default.
- Retrieval logging: Check that detailed retrieval activity is recorded, protected from modification and retained for the period the client's policy sets.
- Model and embedding access: Review which services can call the embedding and generation endpoints, and how credentials are stored and rotated.
- Air-gap controls: In isolated networks, verify how documents and model updates are transferred in and checked before entering the knowledge base.
- Tester access: Usually a staging environment or an authorized window in production, with administrator-level documentation, network diagrams and the hosting platform's testing rules. Confirm with the client whether cloud or Kubernetes testing is needed as a separate service.
Ask the provider to state which hosting layers are excluded from the RAG test and who covers them.
Which frameworks and customer reviews ask for RAG testing
Regulators, voluntary frameworks and customer security reviews reach RAG systems from different directions, but they converge on the same questions: can the system resist attack, who can see what is retrieved, and can the operator prove it. The cards below map the references a buyer is most likely to meet to the parts of a RAG test they support. Confirm each requirement with your assessor before scoping.
EU AI Act resilience duty
Article 15(5) requires high-risk AI systems to be resilient against attempts to exploit vulnerabilities, including data poisoning, adversarial examples and confidentiality attacks. For a RAG system, that points at the ingestion path, the retrieval layer and the embeddings. A RAG test should show which poisoning and leakage paths were tried and what the system did. Whether your system is high-risk under the Act is a legal question for your counsel and assessor.
AI Act textAdversarial testing for systemic-risk models
Article 55(1) requires providers of general-purpose AI models with systemic risk to perform and document adversarial testing. Most RAG operators build on such a model rather than being its provider, so this duty usually falls on the model vendor, not on you. Ask your model provider what adversarial testing it has documented, and test the retrieval layer you control yourself.
NIST AI 600-1 generative AI profile
NIST AI 600-1 is a voluntary profile of the AI Risk Management Framework for generative AI, published on 26 July 2024. It gives a shared vocabulary for risks such as data privacy and information integrity that RAG systems expose. Many customer questionnaires use it as a reference, so map your RAG risk register and test results to its risk categories.
NIST AI 600-1 pageNIST AI 100-2 E2025 attack taxonomy
NIST AI 100-2 E2025 classifies adversarial machine learning attacks into evasion, poisoning and privacy categories across predictive and generative systems. It helps testers name what they tried. For RAG, poisoning maps to knowledge base contamination and privacy maps to embedding inversion and retrieval leakage. Use its terms in the test plan so findings align with an assessor's vocabulary.
NIST AI 100-2 pageHITRUST AI security references
HITRUST has added an Agentic AI selectable factor to its AI Security Certification and mapped its framework to the OWASP Top 10 for Agentic Applications 2026. Healthcare and other HITRUST-driven buyers may ask whether RAG tools that call agents or retrieve clinical content are covered. HITRUST issues the certification through its own process, and DeployOpen does not issue it. Confirm which HITRUST factors apply with your assessor.
HITRUST advisory HAA 2026-005Customer security review evidence
Enterprise customers often ask for proof that a RAG feature keeps one tenant's documents away from another, and that retrieval is logged. A penetration test report with tenant isolation results, retrieval log samples and a retest record answers these questions better than a policy alone. DeployOpen does not issue audit reports or attestations. Ask your customers which evidence format they accept and whether they require an independent assessor.
What you prepare before a RAG test starts
The most useful thing you can do before a RAG test starts is give the tester a role and tenant map that shows which user groups exist, which knowledge bases or vector collections each group may query, and where tenant boundaries are enforced (application layer, metadata filter, separate index or separate database). Without this map, the tester cannot tell whether a retrieved chunk that reaches the wrong user is a broken control or an intended permission. Pair the map with test accounts for each user class, including at least one account per tenant and one with no retrieval rights, so cross-tenant and access control checks can run against accounts you have approved rather than against production identities. Confirm who creates and disables these accounts and how long they stay active.
Next, supply a source inventory for the ingestion path: every system that feeds documents into the knowledge base, such as file shares, SharePoint or wiki connectors, ticketing exports, web crawlers and user uploads, with the owner of each and whether content is reviewed before indexing. This is the input the poisoning and source validation checks depend on. For the document tests, provide sample document sets built from approved synthetic content that mirror your real formats, including PDFs with embedded or hidden text, so testers can plant marked test content without exposing customer data. Ask for logging access in advance: the retrieval log location, the fields it records (user, tenant, query, retrieved document identifiers), and the retention period, so the test can verify that retrieval activity is recorded and that the logs are protected from change.
Finally, agree the operational boundaries in writing. Name a technical contact who can answer questions about the vector store and an incident contact who can stop a test, and set change freeze windows so the test does not coincide with releases or index rebuilds. Decide explicitly which production data, if any, the test may touch; many teams allow testing only against a staging index that mirrors production structure, and that decision changes both scope and cost. Confirm with your provider how embedding inversion attempts will be run and what data they may generate, since those results can contain recovered source text. Settling these points before kickoff prevents the most common delays in RAG engagements.
How retesting confirms RAG fixes hold
The retest sequence shows whether each remediated RAG weakness is actually closed, that the fix has not broken adjacent retrieval paths, and that the outcome is recorded in a form the client can hand to its own auditors and customers. It runs after the client reports fixes, not during the original test.
Confirm the client's fix for each finding
The client lists, for every finding in the original report, the change it made: a metadata filter added at retrieval, a partition change in the vector database, a document validation step at ingestion, or a logging change. The tester reads each change against the finding it claims to address before running anything. The step closes with a written retest list that maps each finding to the change, the owner and the test that will verify it.
Agree the retest scope in writing
Before retesting starts, the retest scope is agreed in writing: which findings are in, which knowledge bases, tenants, user roles and ingestion paths are covered, and what evidence the client expects back. Retests are usually narrower than the original test, but the written scope should say so explicitly. The step closes with a signed scope that both parties can point to later, so the retest result cannot be read as broader than it was.
Re-run the original test against each fix
The tester repeats the same check that produced each original finding, using the same test accounts, tenant pairs and document types where possible, so the result compares directly with the first run. Access control on retrieval, cross-tenant queries, hidden-content documents and embedding exposure are each re-tested against the changed configuration. The step closes with a pass, partial or fail result for each finding, with the request and response evidence kept.
Run regression checks on adjacent retrieval paths
A fix to one retrieval path can leave another open or break legitimate use. The tester checks paths next to the changed one: other collections that share the same embedding store, other ingestion routes, fallback or cache layers, and admin or export functions that query the same index. Where the client has an approved set of expected answers, the tester also checks that authorized users still receive the content they should. The step closes with a list of adjacent paths checked and any new behavior observed.
Verify logging and behavior monitoring still work
The tester confirms that retrieval activity for the retested paths is still written to the logs the client relies on, that entries carry enough detail to show which user and which source documents were retrieved, and that the logs cannot be silently edited by the application role. Where the client monitors answer behavior after retrieval changes, the tester checks that the monitoring still captures the test cases. The step closes with a log extract for each retested path and a note on any gap.
Record retest results in the report
The retest result is added to the original report as a dated addendum or a revised version, not a new document, so each finding keeps its history: original severity, fix applied, retest outcome and the evidence reference. Findings that remain open are stated plainly with the reason and the agreed next step. The step closes with an updated report the client can share with its auditor or customer, noting that DeployOpen does not issue audit opinions or certifications.
Agree ongoing testing or a retainer where needed
Retrieval systems change as documents, embedding models and tenants change, so a single retest may not hold for long. Ongoing support, upgrades and continuous testing are available as retainers, and the client can ask for a scope that repeats selected checks, such as tenant isolation after each ingestion change. The client should confirm in writing what a retainer covers, how often checks run and how new findings are handled. The step closes with a signed retainer scope or a decision to stop at the retest.
RAG penetration testing questions buyers ask
How much does a RAG penetration test cost and what drives the price?
The price follows from the written scope, so no fixed figure applies across all RAG systems. The main drivers are how many retrieval paths exist (chat, search, internal tools, APIs), how many knowledge bases and data classes sit behind them, whether the system is multi-tenant, and how many ingestion sources feed the vector store. Each added source, tenant boundary or permission model adds test cases and review time. Ask the provider to state the fee, the phases it covers, whether a retest is included, and which assumptions about access and test accounts it depends on. Fixed-scope engagements are agreed in writing before work starts, and DeployOpen does not publish a price list, so a quote is the reliable figure to compare.
How long does a RAG security test take to complete?
Duration depends on the same scope drivers as cost: the number of retrieval paths, tenants, knowledge bases and ingestion sources, and how much of the test runs against a staging copy rather than production. Time also depends on how quickly test accounts with the right roles are available and how quickly the client can answer questions about data classification. Ask the provider for a timeline in the written scope, with separate dates for testing, reporting and any retest, and confirm which steps depend on client input.
What does our team need to provide before a RAG test starts?
Testers need enough context to test access control realistically without touching data they should not see. Typical inputs are a description of the architecture, including the vector database, embedding model, retrieval service and the application that calls it; a list of knowledge bases and the document sources that feed them; the identity model that maps users to tenants or groups; and test accounts for each role and tenant boundary. Clients should also confirm which data classes are present, what a leak would count as, the agreed testing window, and who approves tests against production. Missing inputs usually show up as scope changes, so agree them before the engagement starts.
Can our internal security team run this RAG checklist on its own?
Internal teams can run parts of the checklist, such as reviewing which identities can query each collection, confirming that ingestion rejects unvalidated documents, and checking that retrieval events reach the logging platform. Other parts need adversarial work: building cross-tenant queries, testing whether hidden content in a document changes model output, and judging whether embedding exposure matters for the data involved. These need testers with experience of retrieval systems and time to document results carefully. A reasonable split is for the internal team to own configuration review and ongoing monitoring, and for an external provider to test the adversarial cases and produce evidence that stands apart from the team that built the system.
Does the test cover the embedding model and the vector database?
It should, and the scope should name each component explicitly. For the vector database, a test checks authentication, the partitioning of datasets between user classes and tenants, administrative interfaces, network exposure and how queries are filtered before results return to the model. For the embedding model, the test considers whether inverted embeddings could recover source text, and whether the model is self-hosted or called through a third party, since that changes data handling. Hosted services are tested within their published rules and contract terms. Ask the provider to list every component in scope and to state which ones are reviewed by configuration only and which are tested in use.
What does the RAG test report prove to an auditor or customer?
The report shows what was tested, how it was tested, what was found and what was fixed, and it does not stand in for an audit opinion. Auditors and certification bodies issue their own reports, and DeployOpen prepares systems, controls and evidence for those assessments. A useful RAG report maps each finding to the OWASP LLM08:2025 category it relates to, records the test accounts and tenant boundaries used, includes the logged evidence of retrieval activity, and ties each finding to a retest result. Ask the provider for a sample report structure before buying, and confirm with your auditor which evidence they accept.
How does a RAG penetration test differ from a prompt injection test?
A prompt injection test focuses on whether crafted input can change the model's behavior, which is one part of a RAG risk. A RAG penetration test covers the whole retrieval path: who can query which collection, whether one tenant's content can be retrieved by another, whether ingested documents are validated before they become context, how embeddings are stored and exposed, and whether retrieval is logged and monitored. Hidden instructions in a document are one case inside that wider scope. Buyers who only need the injection question answered can commission a focused prompt injection engagement, but a RAG system that serves several customers or internal groups usually needs the broader test.
How DeployOpen scopes, tests, reports and retests RAG systems
DeployOpen runs RAG security tests as fixed-scope engagements, with the checklist areas agreed in writing before work starts. Each area is tested against the retrieval path, the vector store and the knowledge base ingestion path, and results are documented so your team and your auditor can follow them.
How we scope
- Written scope names the retrieval layers, vector stores and ingestion sources included in the test.
- Scope states whether multi-tenant data sharing or per-group partitions are in the test.
- Scope lists the user roles, identity providers and test accounts we will use for each access check.
How we build
- We set up test knowledge base content and accounts in a controlled copy agreed with your team.
- Each checklist item maps to a test case covering access control, poisoning, inversion and logging.
- We confirm with you which tests touch production data and which run only on synthetic documents.
How we hand over
- The findings report ties each issue to the checklist item, the OWASP LLM08:2025 category and its evidence.
- Each finding includes a recommended fix, such as partitioning, document validation or log retention changes.
- Your team receives the test plan, raw evidence and retest criteria so results can be reviewed independently.
How we support
- After delivery, we retest agreed findings once fixes are in place and document the outcome.
- Ongoing support, upgrades and continuous testing are available as retainers for systems that change often.
- Ask us to confirm retest timing and what a retest covers before you sign the written scope.

