RAG & AI Agent Security Testing: control what your AI reads and what it can do
AI agent security testing matters because search over company data and agents with tools turn text into action. We test who can read what, whether hidden instructions steer the agent, and what happens when it can send, delete or buy.
- CoversKnowledge, agents, toolsRetrievalToolsMemoryApprovals
- MethodPlanted content and tool abusePoisoningAccessAgency
- StandardsPublic guidanceOWASP LLM Top 10OWASP Agentic Top 10MITRE ATLAS
- You receiveFindings you can fixSummaryReportFixesRetest
What RAG and AI agent security testing finds
Security for AI that reads and acts
A test of the data your AI retrieves and the tools your agents can call, with the permissions and approvals around both.
Reading becomes doing
A planted line in a document can make an agent send files or change records. The more it can do, the more one trick costs.
Least privilege, always
Tight access to knowledge, narrow tool permissions and human approval for risky actions. We test each one.
Watch a planted instruction travel through an agent
Pick a mode: a normal run, a poisoned document, and the approval gate that stops it.
Normal run: the planner asks the retriever for facts, the writer drafts, and sending an email passes an approval gate.
Attack: a poisoned document carries a hidden instruction. The writer obeys it and emails files out.
Protected: the gate asks for approval and checks an allow-list, so the email is blocked and logged.
Illustration with example data, not client data.
Eight things we check
Each one ends with safe proof and a fix.
- LLM09Knowledge access control
Can users read documents that are not theirs?
- LLM01Planted instructions
Hidden text in files, pages and emails.
- LLM05Data poisoning
Bad content added to the knowledge base.
- LLM03Tool permissions
What each tool can do, and as whom.
- GatesApproval gates
Human checks before risky actions.
- LLM08Memory and context
What the agent remembers and leaks.
- ASIAgent-to-agent trust
One agent trusting another's output.
- LLM04Plugins and connectors
Third-party tools and servers.
Attacks we try on your AI
- Attack 01Poisoned document
A file with a hidden line telling the AI to email data.ShowsWhether content can give orders.
- Attack 02Cross-user retrieval
Ask for a document you should not see.ShowsWhether access control reaches the index.
- Attack 03Tool misuse
Make the agent call send_email or delete_file.ShowsWhether tools need approval.
- Attack 04Memory poisoning
Plant a false fact that the agent keeps.ShowsWhether memory can be steered.
- Attack 05Agent hijack
Change the agent's goal in the middle of a task.ShowsWhether the goal can be taken over.
- Your caseWe add attacks for your use case
Tell us what your AI can read, say and do. We test what matters most.
Shortened example inputs. Real tests are planned with you, inside agreed rules.
AI needs security too. Regulators now ask for it.
Weak AI security can bring large fines, and the rules differ by region.
Outlined: most relevant to this service
Robust and secure by design
High-risk AI must resist data poisoning, adversarial inputs and confidentiality attacks.
Chatbots must say they are AI
Users must be told when they are talking to an AI system, unless it is obvious.
Adversarial testing, documented
Providers of systemic-risk general-purpose models must document adversarial testing and protect the model.
Secure the personal data your AI touches
Security of processing applies to AI. Many breaches must be reported within 72 hours.
Security duties reach the board
Essential entities face €10M or 2%, important entities €7M or 1.4%. Managers can be held liable.
Selling in several regions?
Tell us where. We note which rules your findings touch. Technical notes, not legal advice.
Talk to usSecurity failures are fined
British Airways paid £20M, Marriott £18.4M and Capita £14M over security failings.
AI is a named priority
The UK regulator lists AI and biometrics among its current strategic priority areas.
Selling in several regions?
Tell us where. We note which rules your findings touch. Technical notes, not legal advice.
Talk to usReasonable security safeguards
Organisations that handle personal data, including through AI, must keep reasonable security safeguards.
Report incidents in 6 hours
Specified cyber incidents must be reported to CERT-In within six hours of noticing them.
Security by design for AI
India's AI Governance Guidelines call for security across the AI lifecycle. CERT-In's AI blueprint asks for continuous assessment.
Weak security and false AI claims
Unfair or deceptive practices can include poor security and misleading claims about AI.
Red-team testing is a defence
Fines run $10K to $200K per violation. You have a defence if you found the problem through adversarial testing, or follow the NIST AI RMF.
Frontier AI safety frameworks
Large frontier developers must publish safety frameworks and report critical incidents.
Protect personal data
Organisations must protect personal data with reasonable security arrangements.
Notice and safety duties
Users must be told they are using AI, and high-impact AI has safety duties.
Serious privacy breaches
Serious or repeated interference with privacy can reach the greater of three amounts.
- Guard the data your AI readsGDPR Art. 32, DPDP Act
- Resist data poisoningEU AI Act Art. 15
- Make leaders accountableNIS2 management duties
- 1FindWeak spots, before a regulator or attacker does
- 2FixClear steps your team can apply
- 3ProveA dated retest report as technical evidence
Maximum penalties and dates from public sources, checked November 2026. Fines are set case by case. This is a technical summary, not legal advice, and a test report is not a certification: your counsel decides what evidence a regulator accepts.
Sources: EU AI Act Art. 15 GDPR fines (European Commission) UK enforcement (CMS) FTC penalty notice 2026 Texas Attorney General on TRAIGA South Korea AI Basic Act (Cooley) Australia penalties (OAIC)
More on this site: GDPR DPDP Act CERT-In Compliance readiness
Six steps from scope to retest
- 1ScopeRules and authorisation
- 2MapData, agents, tools
- 3AttackPlanted content, tool abuse
- 4ProveEvidence for each finding
- 5ReportRatings and fixes
- 6RetestConfirm each fix
Built on recognised guidance
Public references shape the method and the report.
- OWASP LLM Top 10Top 10 for LLM Applications 2026
The ten risks every finding is tagged to.
- OWASP Agentic Top 10Top 10 for Agentic Applications 2026
Risks of agents that plan, remember and use tools.
ASI01ASI02ASI03ASI06 - MITRE ATLASAdversary tactics against AI systems
Attack paths are tagged to ATLAS tactics and techniques.
- NIST AI RMFAI Risk Management Framework
Risk language for the report: govern, map, measure, manage.
Referenced as technical guidance, not as a certification, and no endorsement is implied. Product and provider names belong to their owners.
What you receive
- Scope & rules
- Executive summary
- Technical report
- Risk ratings
- Proof of concept
- Fix guidance
- Scoped retest
- Completion summary
A clean result is reported as it is. Retests cover reported findings only and are not unlimited.
What we need from you, and when to test
- Written authorisation
From the system owner
- A test environment
A staging copy where possible
- Two test users
Different roles, for isolation tests
- Architecture notes
Model, tools, data sources, guardrails
- Test window and rules
And what is off limits
- A technical contact
During the test
- Before an AI feature launches
- After adding tools or data sources
- After a model or provider change
- After an incident or a jailbreak report
- When a customer or auditor asks
Architecture notes on data sources, agents and tool permissions save the most time. See the differences.
Testing stays inside agreed rules. Test accounts and test data only, no denial-of-service, and no real customer data read or kept. Request volumes are agreed and small. We test your AI application, not your model provider's systems.
RAG & AI Agent Security frequently asked questions
What is RAG security testing?
RAG means your AI answers from your own documents. Testing checks who can retrieve which document, whether hidden text in a document can steer the AI, and whether bad content can be added to the knowledge base.
Can hidden text in a document really control an AI?
Yes. This is indirect prompt injection, and OWASP ranks prompt injection first in its 2026 list. If the AI reads text it cannot tell from an order, an attacker can plant that text in a file, page or email.
What is excessive agency?
It means an AI agent can do more than it needs to: send email, delete files, spend money or change records without a human check. We test each tool for the damage a tricked agent could do, and whether approval gates work.
Do you test our vector database and connectors?
Yes, as far as they affect security: access control on the index, who can add content, and what plugins and connected tools can reach. Hosted services are tested only inside the rules their owners allow.
What access do you need?
Written authorisation, a test environment, test users with different roles, test documents, and notes on the agents, tools and permissions. We do not need real company documents.
Do you also test the AI model?
We test your application around the model. For jailbreaks and guardrails see AI Red Teaming & Jailbreak Testing.
What do we receive at the end?
An executive summary and a technical report with each finding, evidence, risk rating and fix guidance, then a scoped retest of the reported findings within the agreed window.
How long does it take, and what does it cost?
It depends on the data sources, agents and tools in scope, and the depth of testing. We confirm the timeline and a quote at scoping, before you commit. See the pricing page.