RAG penetration testing: what is tested, how it is scoped and what you get

A RAG penetration test checks retrieval access control, tenant isolation, ingestion and embeddings against OWASP LLM08:2025. Here is what is covered, what changes cost and what you receive.

On this page

What a RAG penetration test covers and why buyers commission one

A RAG penetration test checks how documents are ingested, embedded, stored and retrieved, and whether each user sees only the content they are permitted to see. Buyers usually commission one because a launch is approaching, a customer's security review asks how an AI feature handles their data, an insurer or internal policy requires testing of AI systems, or a compliance program needs evidence that retrieval is controlled. The test covers the whole retrieval path, not the language model on its own, because most of the risk sits in the data the model is given and in the permissions around that data.

Retrieval-augmented generation, as the OWASP framing describes it, is a model adaptation technique that combines a pre-trained language model with external knowledge sources, using vector mechanisms and embeddings to find relevant material at query time. OWASP's Vector and Embedding Weaknesses entry, LLM08:2025, addresses weaknesses in how vectors and embeddings are generated, stored or retrieved, which can be used to inject harmful content, manipulate outputs or reach sensitive information. OWASP lists five common risk examples: unauthorized access and data leakage, cross-context leaks in multi-tenant setups, embedding inversion, data poisoning and behavior alteration. Each one points to a different part of the pipeline, so a useful test has to reach the vector store, the ingestion job, the retrieval logic and the application that displays the answer.

Before commissioning a test, confirm with your team which of these paths reach production: who can add or change documents, whether the vector store enforces permissions at query time or only at the application layer, and whether tenants or user groups share one index. The answers decide which controls the tester must verify, such as permission-aware retrieval, validation of knowledge sources and retrieval logs that cannot be altered. The tester's written scope should name these components explicitly, so the report can show which controls held and which did not.

Scoping a RAG test: which layers and which decisions change the work

A RAG penetration test covers more than the language model. The components in scope and the decisions made before testing begins determine how much work the test involves and what the findings can prove. Agree each item in writing before the first test step.

Vector store and access controls

The vector database holds embeddings and, usually, the source text or metadata attached to them. Testing checks whether retrieval enforces permissions per user, group or tenant, or whether the application filters results after retrieval. Confirm which permission features your specific vector store supports and whether they are enabled in your deployment. The result should show which identities can query, read, write or delete vectors, and which controls were verified.

OWASP LLM08:2025

Embedding generation

Testing covers the service or model that turns documents and queries into vectors, including where it runs, which version is pinned and who can change it. Embeddings can carry information about the source text, so the test assesses whether stored vectors could expose sensitive content if the store is read directly. Ask the provider to state whether embedding inversion is tested and with which data.

Ingestion pipeline and source connectors

This layer covers how documents reach the knowledge base: upload forms, file shares, wikis, ticketing systems and sync jobs. Testing checks who can add or change content, whether sources are validated before indexing, and whether instructions hidden in documents can reach the model. Each connector's credentials and scope should be listed in the scope document, since a connector often reads more than the users who consume its output.

Retrieval layer and the calling application

The retrieval layer selects chunks for each query, and the application or API passes them to the model and returns the answer. Testing checks whether a user can influence retrieval to surface content they should not see, and whether the application displays citations or source text that bypass the user's own permissions. Include the API routes and admin functions that call retrieval, because findings here often sit outside the model itself.

Logs and retrieval records

OWASP lists detailed, immutable logs of retrieval activity as an expected control. Testing confirms whether retrieval events record the user, tenant, query, documents returned and time, and whether those logs can be altered by application users. Ask the client to supply log access for the test team so findings can be checked against the record, and confirm retention periods with the operations team.

Tenant sharing and knowledge sources

Whether tenants or user groups share one vector database is the decision with the largest effect on scope. Shared stores require cross-tenant tests with at least two separate identities per tenant, and the test plan must name each knowledge source in or out. Each source adds ingestion paths, data classes and owners who must approve testing against it.

Test accounts, roles and test data

The client should provide named test accounts for each role that can query or change content, plus an account for each tenant if sharing applies. Rules of engagement should state which data may be used, whether production documents are allowed, how poisoned test documents are removed afterward and who may approve exceptions. Ask the provider to confirm in writing how test records and any personal data are handled and deleted at the end of the engagement.

How a RAG penetration test runs, phase by phase

The sequence turns an agreed scope into evidence on whether retrieval respects access rules, whether the ingestion path can be abused, and what a client must fix before a retest confirms the changes.

  1. Agree scope and rules of engagement

    Before any testing, the provider and client agree in writing which knowledge bases, vector stores, retrieval APIs, ingestion sources and user groups are in scope, along with test accounts, permitted techniques, data handling rules and the points of contact for urgent issues. Scoping decisions such as whether tenants share one vector database change the test plan, so they are settled here. The step is complete when the signed scope names every component and every permitted test type, and the client has confirmed that a live knowledge base holding production data may be queried.

  2. Review architecture and data flow

    The tester maps how a document travels from source to chunking, embedding, vector storage, retrieval and prompt assembly, and where each stage reads or writes identity and permission metadata. The review also records which models generate embeddings, which component decides what is returned to the model, and where retrieval events are logged. The output is a data flow diagram with trust boundaries marked, plus a list of the controls the client claims to have, which the later tests will check rather than assume.

  3. Test access control on retrieval

    Using the agreed test accounts across roles, groups and tenants, the tester checks whether the retrieval layer applies the same permissions as the source system. The aim is to confirm that a user only receives chunks they are entitled to see, including when a query is phrased to reach content from another group. Each result is recorded with the account, query category, returned sources and the expected outcome. The step closes when every role boundary in scope has a documented pass or fail result.

  4. Test the ingestion path and source validation

    The tester examines how documents enter the knowledge base, including who can add or update sources, whether uploads are validated, and whether external content is screened before it is embedded. Tests use benign, clearly marked sample documents that carry instructions aimed at the model, to see whether retrieved text can change behavior or outputs (indirect prompt injection). Knowledge base poisoning is assessed through controlled additions in a non-production copy where the client agrees. The output lists each ingestion route, whether validation applied and what the model did with the test content.

  5. Analyze embeddings and leakage

    The tester reviews what the vector store holds beyond the text, such as metadata, source paths, tenant identifiers and raw embeddings, and whether an API returns more than the application displays. Leakage checks look at whether chunks, sources or system prompt content appear in answers, error messages and logs when they should not. Embedding inversion is assessed as a risk category, with the provider stating what it could and could not test within the agreed scope. The step ends with a list of exposed fields and a judgment on each leakage path.

  6. Check logging and retrieval behavior

    The tester verifies that retrieval activity is recorded in a detailed, tamper-resistant log with enough context to reconstruct who retrieved what and when, and that access to those logs is restricted. Where the client's expected behavior is documented, the tester also checks whether answers drift when the knowledge base changes, which shows whether monitoring would catch a changed or poisoned source. Findings here are measured against controls the client has described, so the report can show which controls were tested and which were absent.

  7. Report findings and prepare the retest

    The provider delivers a written report that maps each finding to the affected component, the OWASP LLM08:2025 risk category, the evidence collected and a reproducible description written for defenders, with no working exploit material. Each finding carries a severity rating and a recommended fix, and the report states what was out of scope or could not be tested. The client's engineering team uses it to plan remediation, and the step closes when the report is accepted and a retest window is agreed.

  8. Retest fixes and close the engagement

    After the client reports fixes, the tester repeats the tests that failed against the same scope and test accounts, and confirms whether each fix works and does not break intended retrieval. Results are added to the report as a retest addendum with the status of every original finding. The engagement closes when all findings are marked fixed, accepted as risk by the client in writing, or still open, and the client holds a final report it can share with auditors or customers.

Where the trust boundaries sit in a RAG request flow

The flow starts with a user request that passes authentication before it reaches the application, which builds the query and calls the retrieval layer. The retrieval layer asks the embedding model to vectorize the query and then searches a vector store whose tenant partitions must keep one group's embeddings away from another's queries. Retrieved passages go to the LLM, and the answer returns to the user. Ingestion from source systems runs on a separate path into the same store. Testers check each boundary crossing, and the logging points on retrieval and answers, where the evidence of who saw what should exist.

Trust boundaries in a RAG request and ingestion path, with logging points.

Which RAG weaknesses the test looks for and why they matter

This table maps the weakness categories a RAG penetration test examines to what each looks like in the target system and what it costs the business. Read each row as a question to put to your provider: is this category in scope, and what evidence will the report give you for it?

Weakness categoryWhat it looks like in a RAG systemBusiness impact
Unauthorized access and data leakage at retrievalThe retriever returns chunks from documents the requesting user is not entitled to read, because the vector store filters on nothing or filters after generation.Confidential documents reach users outside their role, which can trigger breach notification duties and contract breaches.
Cross-context leaks in multi-tenant setupsSeveral customers or business units share one vector index, and queries from one tenant surface embeddings that belong to another tenant.One customer's data appears in another customer's answers, a damaging incident for SaaS vendors and a scoping question for every shared index.
Embedding inversionStored vectors are treated as harmless, so a party with read access to the store could approximate the source text the vectors were built from.Sensitive source content may be recoverable from supposedly anonymous vectors, which affects data protection assessments and backup handling.
Data poisoning through ingested contentUntrusted documents, web pages or uploads enter the knowledge base without validation, and their text steers later answers or carries hidden instructions.Answers become unreliable or attacker-controlled, and the organization may act on false guidance that the system presented as sourced.
Behavior alterationRetrieved content changes how the model answers, for example by overriding system rules, shifting tone or suppressing known caveats after an index update.Outputs drift from approved policy without a visible code change, which complicates change control and model risk reviews.
Missing retrieval loggingThe system does not record which documents were retrieved for which user and query, or the logs can be edited by the application team.Incidents cannot be scoped or reconstructed, and assessors find no evidence that access to knowledge sources is monitored.

How RAG testing differs for single-tenant, multi-tenant and air-gapped deployments

A single-tenant internal assistant serves one organization's employees, usually over a document set such as policies, wikis, tickets or contracts. The main question is not whether one customer can see another's data, but whether employees can retrieve content they were never entitled to see in their source systems. Document-level permissions often do not survive ingestion into a vector store, so a test has to compare what a user can open in the source repository with what the assistant returns for the same user.

  • Permission inheritance: Check whether source ACLs are copied, re-computed or ignored when chunks are indexed, and whether group changes and departures are reflected in retrieval.
  • Ingestion sources: Confirm which connectors feed the index, such as file shares, wikis or email, and whether any source writes untrusted content that can later be retrieved.
  • Sensitivity of the corpus: Identify whether HR, legal or finance material is indexed, since this sets the impact of a retrieval failure.
  • Test environment: Usually a staging copy of the index with test accounts at several privilege levels, so that access comparisons can be made without touching production records.
  • Evidence: A permission matrix showing which roles can retrieve which document classes, with retrieval logs for the test accounts.

Before the test, ask the provider to confirm which identities the retriever uses and whether it runs with a service account that bypasses user permissions.

What drives the cost and duration of a RAG penetration test

This table lists the scoping decisions that change the effort of a RAG penetration test, who is paid for each piece of work, and whether it is one-time or recurring. Read it as a checklist for comparing quotes: a provider that cannot state how each driver was counted is leaving you unable to compare offers. No prices or durations are given because DeployOpen does not publish a price list and a quote follows from the written scope.

Cost driverWhy it changes effortWhat to ask for in a quote
Knowledge sources and ingestion pathsEach source (wiki, ticketing, file shares, web crawl, email) and each ingestion route adds document parsing, sanitization and indirect prompt injection scenarios to test.A list of every source and ingestion path in scope, with the ones excluded and the reason.
Tenants and user rolesShared vector databases need cross-tenant retrieval tests for each tenant pair and role, so effort grows with the number of groups that share an index.The tenant model (separate indexes, namespaces or shared index), the roles to test and the test accounts provided.
Vector store and access control configurationPermission-aware filtering, metadata filters, index isolation and admin interfaces each need separate checks, and each managed or self-hosted product differs.The vector store product and version, deployment model, and whether admin consoles and backups are in scope.
Embedding analysis depthA configuration review is a fraction of the work of testing embedding inversion or membership-style leakage, which needs controlled data and analysis time.Whether embedding inversion and leakage analysis is included, and the test data and models needed for it.
Application and API layersChat interfaces, retrieval APIs, connectors and admin APIs around the pipeline add web and API testing on top of the RAG-specific work.Which endpoints, front ends and integrations are in scope, and whether they are covered by a separate test.
Test environment availabilityA production-like copy with representative (or synthetic) documents and tenants lets testers run ingestion and poisoning scenarios without risk to live data, which saves setup and retest time.Who provides the environment, when it is available, and what data may be used. Confirm that no live customer data is needed.
Retest and remediation verificationRetesting after fixes is usually priced separately from the first test and depends on how many findings change access control or ingestion logic.Whether one retest round is included, what counts as a retest, and how long the retest window is open.
Reporting and evidence needsMapping findings to OWASP LLM08:2025, logging checks and control evidence for an auditor or customer adds report and review work.The report format, whether control mapping is included, and whether a findings walkthrough is part of the fee.
One-time versus recurring workThe initial test is one-time. Re-testing after major architecture changes, new knowledge sources or new tenants is recurring and should be scoped as a separate item or a retainer.Separate line items for the initial test, each retest and any continuous testing, with the trigger that starts each one.

Which frameworks and customers expect this testing

Most RAG penetration tests are commissioned because someone outside the engineering team asks for evidence. Under the EU AI Act, Article 15(5) expects high-risk AI systems to resist attempts to exploit vulnerabilities, including data poisoning and confidentiality attacks against the knowledge base and retrieved content. Article 55(1) goes further for general-purpose AI models with systemic risk, requiring documented adversarial testing. Whether your system falls under either article is a legal classification question, so confirm it with counsel before you write the scope. Regulators and auditors will also ask how you know retrieval respects permissions, which is where a tester's findings become useful evidence.

Two NIST publications are common reference points in these reviews. NIST AI 600-1, the Generative AI Profile of the AI Risk Management Framework, was published on 26 July 2024 for voluntary use and frames trustworthiness risks for generative systems. NIST AI 100-2 E2025, Adversarial Machine Learning: A Taxonomy and Terminology of Attacks and Mitigations (March 2025), gives the vocabulary for poisoning, evasion and privacy attacks that a test report should use consistently. Map each finding to the taxonomy so the report reads the same way to a security team and to a compliance lead.

Customer security reviews are often the sharper driver. An enterprise buyer may ask whether tenant data can surface in another customer's answers, or whether retrieval logs exist. The tester checks the controls OWASP names as mitigations for LLM08: permission-aware vector stores, validation of knowledge sources, classification of combined data, and detailed immutable logs of retrieval activity. Each one becomes a test case with a recorded result, which is the evidence customers request. DeployOpen prepares this evidence and the answers to the questionnaire, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies make those determinations, so ask your auditor early which artifacts they will accept.

What you receive and whether it satisfies an auditor or customer

A RAG penetration test is judged by the report it produces, so the report should show what was scoped, how retrieval was tested and what changed after fixes. The cards below cover the sections a buyer should expect, and the limits of what a report can prove to an auditor or customer.

Scope and architecture record

The report should open with the agreed scope: which vector store, embedding model, ingestion jobs, retrieval service, LLM endpoint and user interfaces were in the test, and which were excluded. It should include an architecture diagram showing where documents enter, where embeddings are stored and how tenant or group identifiers travel with each query. Ask whether the record names the knowledge base sources and tenant model under test, since a test of a single-tenant index answers different questions than a shared multi-tenant index.

Method mapped to LLM08:2025

Each test area should map to OWASP LLM08:2025 Vector and Embedding Weaknesses and to the related categories in the OWASP LLM Top 10, such as sensitive information disclosure and data poisoning. The method section should explain which controls were checked, such as permission-aware retrieval, source validation and retrieval logging, and what evidence showed each control held or failed. A method that lists tools without linking them to these categories gives an auditor little to verify.

LLM08:2025 text

Findings with severity and evidence

Each finding should state the weakness, the affected component, the severity rating and the evidence that supports it, such as the retrieved chunks, the query path and the user role used. Severity should follow a scale the client agreed before testing, and the report should say how it was assigned. Ask whether evidence is reproducible by the client's own team without exposing customer data in the report itself.

Affected components and fixes

Findings should point to specific components, such as the ingestion pipeline, the retriever's filter logic, the vector store's access policy or the prompt template that places retrieved text into context. Each fix should be stated as a change the client can make, with an owner and a priority. Ask for fixes that name configuration keys, access rules or code paths, not general advice to improve security.

Retest results

A retest confirms whether the fixes changed the behavior that was tested, and the report should record each finding as fixed, partly fixed or still open with the retest date. Retesting should use the same queries, tenant pairs and document sets as the original test so results can be compared. Confirm whether retest is included in the quote or priced separately, since a finding closed on paper without a retest carries less weight with a reviewer.

Executive summary and limits

The executive summary gives leadership the scope, the overall risk picture, the open findings and the retest status in plain language. A customer or auditor letter from the provider describes the work and results, but it is not an attestation. The independent auditor or certification body decides whether the evidence is sufficient for the framework in question, so ask the auditor early which evidence format and retention period they expect.

What you prepare before the test starts

Before a RAG penetration test begins, the client should assemble an architecture diagram that shows every component on the retrieval path: the document sources, the ingestion and chunking jobs, the embedding model and service, the vector store, the retrieval service, the reranker if one exists, the prompt assembly layer and the model endpoint. The diagram should mark where each tenant's data enters and where tenant identity is checked, because those points decide which tests are run. Alongside it, prepare a register of knowledge sources with an accountable owner for each one, covering the file shares, wiki spaces, ticketing exports, CRM records and web crawls that feed the index, along with the owner's name, the sensitivity classification and how often the source is refreshed. Testers use this register to decide which sources can be seeded with test content and which must stay out of scope.

Next, agree on the test tenants and accounts. Provide at least two tenants in the test environment, each with a stated role set such as end user, tenant administrator, knowledge base editor and platform operator, so testers can check whether retrieval respects permissions for each role and each tenant boundary. Confirm in writing whether the test runs against production, a staging copy or a dedicated environment. Where production data is involved, agree sanitization rules: which fields are masked, whether synthetic documents will be used for ingestion tests, and how test artifacts and any embeddings created during testing will be deleted afterward. Confirm which logging the client can grant access to, including retrieval logs, ingestion job logs and model request logs, since the test depends on checking whether retrievals are recorded in a way that can be reviewed.

Finally, name the people who make decisions during the test. Identify a technical contact who can explain the retrieval design, a platform owner who can approve changes to the test environment, and a business owner who signs off scope. Record any change freeze windows so testers do not work during a release or an index rebuild, and agree an escalation path for critical findings, such as a confirmed cross-tenant disclosure, before the test starts. The escalation path should name who is called, the expected response window the client sets internally, and whether testing pauses until the client confirms containment. Confirm these details with your own security and platform teams, since the required response times depend on your internal policies.

What to check in a RAG testing provider before you sign

A RAG penetration test is only as useful as the boundaries it actually exercises. The cards below cover the questions that separate a test of retrieval and tenant isolation from a prompt-only exercise, and the contract and evidence points to settle before work starts.

Tests retrieval, not only prompts

Ask whether the provider tests the retrieval layer directly: what the vector store returns for each identity, which chunks reach the model, and what the model is shown before it answers. A provider that only submits prompts and reviews answers misses the retrieval path, where LLM08:2025 weaknesses sit. Ask them to describe how they confirm which documents were retrieved for each test query, and how that evidence appears in the report.

LLM08:2025 text

Tenant boundaries in scope

If several customers, business units or user groups share one vector database, the tenant model is a scoping decision, not a detail. Confirm that the written scope names each tenant or group, the identities used to test them, and whether the provider will attempt to retrieve one group's embeddings while authenticated as another. Ask who supplies the test accounts and whether test tenants hold realistic but non-production data.

Mapping to LLM08 and the OWASP LLM Top 10

Ask how each finding is mapped to LLM08:2025 and to the related entries in the wider OWASP LLM Top 10, such as LLM01 Prompt Injection for poisoned documents and LLM02 Sensitive Information Disclosure for leaked chunks. A good report links each finding to the component, the control that failed and the expected control from OWASP's mitigation list. Vague category labels make remediation and audit follow-up harder.

Handling of sensitive knowledge base data

Knowledge bases often contain contracts, health records or source code. Ask where test data is stored, who can access it, how long extracts are kept, and whether the provider will test on a copy of the knowledge base or on production. Confirm that retrieved content quoted in the report is minimized and redacted, and that the provider deletes working copies at close. These terms belong in the contract, not in the kickoff email.

Written, fixed scope and retest terms

Most engagements should have a written scope that lists the systems, tenants, ingestion sources, identities and out-of-scope items, with deliverables and timelines agreed before work starts. Check whether the quote states what happens if scope changes and whether a retest of fixed findings is included or priced separately. Ask for the retest window and whether the retest checks the same retrieval paths that produced the original findings.

Experience with self-hosted vector stores

Ask for evidence that the provider has tested the vector store you run, whether that is a database extension, a standalone server or a managed service in your own cloud account. Ask how they check access control, index configuration, backup copies of embeddings and logs of retrieval activity, which OWASP lists as expected controls. Request a sample report structure so you can see how findings, evidence and fixes are presented before you commit.

Common questions about RAG penetration testing cost, time and effort

What drives the cost of a RAG penetration test?

The cost follows the written scope, so the main drivers are how many layers are in scope, how many tenants or user groups share the retrieval system, and how many ingestion sources feed the knowledge base. A test of a single internal assistant over one document store is usually a smaller effort than a multi-tenant platform that pulls from email, ticketing and file shares. Other factors include whether the tester must cover the vector store configuration and cloud access, how much of the LLM application and its agent or tool calls is included, and whether the team needs a controlled test corpus built for the engagement. Ask any provider to state each layer as a separate line item in the quote, the test environment assumptions, and what is excluded. DeployOpen does not publish a price list, and a quote follows from the written scope.

How long does a RAG penetration test take?

Duration depends on the same scope decisions that set cost, plus the time needed to get access and a stable test environment. The main variables are the number of tenants to test for cross-tenant leakage, the number of ingestion paths to review, whether a production-like copy of the vector store is available, and how many findings need a fix and a retest. Delays most often come from waiting for test accounts with the right group memberships, agreeing rules for test documents that will be ingested, and resolving access to logging. Ask the provider for a timeline tied to named phases and dependencies, and confirm in writing which parts are fixed and which depend on your responses. No duration figure is given here because none has been supplied for this service.

What does our team need to provide before testing starts?

Your team needs to provide the scope inputs that a tester cannot infer safely: a diagram of the RAG pipeline, the list of knowledge sources and how each is ingested, the vector database and its hosting model, the identity provider and the group or tenant model, and the retrieval logging you already keep. You will also need test accounts for each user group or tenant in scope, a non-production environment or an agreed test corpus, and a named contact who can approve tests that write data to the knowledge base. Agree in advance which tests may insert documents, and who will monitor the environment while they run. Written rules of engagement and a data handling agreement should be in place before any test begins.

Can our own team run a RAG penetration test without an outside provider?

Internal teams can test parts of a RAG system, such as checking access controls on a sample of documents or reviewing configuration, but an independent penetration test is usually commissioned from outside when a customer, regulator or auditor expects a tester who was not part of building the system. Self-testing is useful between formal tests, for example to confirm that a permission change in the identity provider reaches the retrieval layer. The gap is independence, repeatable coverage of cross-tenant and poisoning scenarios, and a report written for a third party. Decide early which parts your team will run and which an external tester will own, and record that split in the scope.

Does a RAG penetration test also cover the language model?

A RAG test covers the retrieval path: how documents are ingested, embedded, stored, filtered and returned into the model's context, along with the access rules that decide what a user can retrieve. It also covers whether retrieved content can alter model behavior, such as through indirect prompt injection in ingested documents. Testing the model's own behavior, such as jailbreaks, system prompt exposure or unsafe output handling, is a separate LLM application test. Many engagements include both, and the scope should name which OWASP LLM categories and which layers of the application are covered so that the boundary is clear in the report.

What happens at retest, and is it included?

Retesting checks whether the fixes for reported findings work as described, and whether the change introduced a new weakness. Whether retest rounds are included in the quote, and how many there are, should be stated in the written scope, so ask for this explicitly. Retest effort usually depends on how many findings were fixed, whether the fix touches the identity or filtering layer, and whether the environment must be rebuilt. Ask the provider to state the retest window, what evidence it needs from you, and how the updated report will mark each finding as closed, open or accepted.

Will the report satisfy a customer's security review or an auditor?

A report can support a customer security review or an audit, but it does not certify your system and does not replace the assessment itself. Independent auditors and certification bodies issue audit reports and attestations, and a penetration test is evidence they may review. To make the report useful, ask for findings tied to the specific scope, reproduction steps written at a defensive level, a mapping to OWASP LLM08:2025 and related categories, evidence of the tested tenant boundaries, and a retest record. Confirm with your auditor or customer which format they accept before the engagement starts, because requirements differ between reviewers.

How DeployOpen scopes, tests, reports and retests RAG systems

DeployOpen tests RAG systems as part of its security testing for AI systems and agents, covering the vector store, embeddings, retrieval path and knowledge base ingestion. Each engagement starts from a written scope that sets which layers, tenants and data sources are in the test, and ends with a findings report and a retest of the fixes.

How we scope

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before testing starts.
  • We confirm whether users share one vector database across tenants or groups, since that choice changes the cross-context tests.
  • We record which knowledge sources, ingestion paths and retrieval permissions are in the written scope.

How we build

  • We test retrieval access control by comparing what each test identity can retrieve against the permissions the client has defined.
  • We test ingestion for poisoned or instruction-bearing documents and check how retrieved content reaches the model.
  • We review embedding handling, retrieval logging and source validation against the controls OWASP LLM08:2025 lists as expected.

How we hand over

  • You receive a findings report that maps each finding to the affected retrieval, ingestion or logging component.
  • Each finding includes the weakness category, the evidence observed, the affected scope and a recommended fix.
  • The report is written so your security, compliance and engineering teams can review it, though it is not an audit report.

How we support

  • After fixes are made, we retest the affected retrieval and ingestion paths and report whether each finding is closed.
  • Ongoing support, upgrades and continuous testing are available as retainers for RAG systems that change over time.
  • Questions about scope changes are handled in writing, so any added tenants or knowledge sources are priced and planned before work begins.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.