Skip to main content

CyberNexora

Rag and ai agent security

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.

  • Covers
    Knowledge, agents, tools
    RetrievalToolsMemoryApprovals
  • Method
    Planted content and tool abuse
    PoisoningAccessAgency
  • Standards
    Public guidance
    OWASP LLM Top 10OWASP Agentic Top 10MITRE ATLAS
  • You receive
    Findings you can fix
    SummaryReportFixesRetest
What it is

What RAG and AI agent security testing finds

What

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.

Why

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.

How

Least privilege, always

Tight access to knowledge, narrow tool permissions and human approval for risky actions. We test each one.

See it live

Watch a planted instruction travel through an agent

Pick a mode: a normal run, a poisoned document, and the approval gate that stops it.

safe traffic attack guard
workflow: research-agentActiveUserasks a questionPlanner agentplans next stepWriter agentdrafts, sendsApproval gateallow-listApproval gateno approvalsend_emailtoolRetrieverfinds passagesDocuments1 file poisoned!hidden instructionobeys itfiles sent outneeds approval: blockedworkflow: research-agentActiveUserasks a questionPlanner agentplans next stepWriter agentdrafts, sendsApproval gateallow-listApproval gateno approvalsend_emailtoolRetrieverfinds passagesDocuments1 file poisoned!hidden instructionobeys itfiles sent outneeds approval: blocked

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.

What we test

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 run

Attacks we try on your AI

  • Attack 01Poisoned documentA file with a hidden line telling the AI to email data.

    ShowsWhether content can give orders.

  • Attack 02Cross-user retrievalAsk for a document you should not see.

    ShowsWhether access control reaches the index.

  • Attack 03Tool misuseMake the agent call send_email or delete_file.

    ShowsWhether tools need approval.

  • Attack 04Memory poisoningPlant a false fact that the agent keeps.

    ShowsWhether memory can be steered.

  • Attack 05Agent hijackChange 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.

Cyber law

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

EU
EU AI Act, Art. 15High-risk rules from 2 Dec 2027

Robust and secure by design

High-risk AI must resist data poisoning, adversarial inputs and confidentiality attacks.

€15M or 3%maximum fine for provider duties. Banned practices reach €35M or 7%.
EU AI Act, Art. 50In force since 2 Aug 2026

Chatbots must say they are AI

Users must be told when they are talking to an AI system, unless it is obvious.

€15M or 3%maximum fine for transparency duties.
EU AI Act, Art. 55Applies since 2 Aug 2025

Adversarial testing, documented

Providers of systemic-risk general-purpose models must document adversarial testing and protect the model.

€15M or 3%maximum fine for general-purpose model duties.
GDPR, Art. 32In force

Secure the personal data your AI touches

Security of processing applies to AI. Many breaches must be reported within 72 hours.

€20M or 4%of worldwide turnover, whichever is higher.
NIS2In force

Security duties reach the board

Essential entities face €10M or 2%, important entities €7M or 1.4%. Managers can be held liable.

€10M or 2%maximum fine for essential entities.

Selling in several regions?

Tell us where. We note which rules your findings touch. Technical notes, not legal advice.

Talk to us
UK
UK GDPR + DUA Act 2025In force

Security failures are fined

British Airways paid £20M, Marriott £18.4M and Capita £14M over security failings.

£17.5M or 4%maximum fine, whichever is higher.
ICO strategyCurrent

AI is a named priority

The UK regulator lists AI and biometrics among its current strategic priority areas.

Priorityarea for ICO enforcement attention.

Selling in several regions?

Tell us where. We note which rules your findings touch. Technical notes, not legal advice.

Talk to us
India
DPDP Act 2023Security duties from 13 May 2027

Reasonable security safeguards

Organisations that handle personal data, including through AI, must keep reasonable security safeguards.

₹250 croremaximum penalty for failing to keep them.
CERT-In DirectionsIn force since 2022

Report incidents in 6 hours

Specified cyber incidents must be reported to CERT-In within six hours of noticing them.

6 hoursto report a cyber incident.
MeitY + CERT-In guidanceIssued 2025 to 2026

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.

By designguidance, not a fine. The direction is clear.
USA
FTC Act, Section 5In force

Weak security and false AI claims

Unfair or deceptive practices can include poor security and misleading claims about AI.

$53,088per violation, the civil penalty cap for rule and order violations.
Texas TRAIGAIn force since 1 Jan 2026

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.

$200,000per uncurable violation, plus up to $40,000 a day.
California SB 53In force since 1 Jan 2026

Frontier AI safety frameworks

Large frontier developers must publish safety frameworks and report critical incidents.

$1Mper violation for large frontier developers.
Asia-Pacific
Singapore PDPAIn force

Protect personal data

Organisations must protect personal data with reasonable security arrangements.

S$1M or 10%of Singapore turnover, whichever is higher.
South Korea AI Basic ActIn force since 22 Jan 2026

Notice and safety duties

Users must be told they are using AI, and high-impact AI has safety duties.

₩30Mmaximum fine, after a grace period of at least one year.
Australia Privacy ActIn force

Serious privacy breaches

Serious or repeated interference with privacy can reach the greater of three amounts.

A$50Mor 3x the benefit, or 30% of adjusted turnover.
What this means for you
  • Guard the data your AI readsGDPR Art. 32, DPDP Act
  • Resist data poisoningEU AI Act Art. 15
  • Make leaders accountableNIS2 management duties
How testing helps
  1. 1FindWeak spots, before a regulator or attacker does
  2. 2FixClear steps your team can apply
  3. 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

How it runs

Six steps from scope to retest

  1. 1ScopeRules and authorisation
  2. 2MapData, agents, tools
  3. 3AttackPlanted content, tool abuse
  4. 4ProveEvidence for each finding
  5. 5ReportRatings and fixes
  6. 6RetestConfirm each fix
Standards

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.

Deliverables

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.

Before we start

What we need from you, and when to test

What we need from you
  • 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

When to 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
ChangeTestFixRetestRepeatper change
Test again after any big change. Each test runs in an agreed window.

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.

Questions

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.