TECHNOLOGIES: AI AGENT

AI Agent Penetration Testing

Last updated:

An AI agent acts for a user, so every tool it can call carries that user’s authority or more. We test what each tool can reach and who can steer it. EJN Labs is a CREST-accredited UK company providing AI agent penetration testing, from £6,100 for a 5-day single-application scope, quoted within 24 hours.

  • Unlimited retesting
  • Unlimited pre-retesting
  • No hidden fees
Accredited & recognised
Cyber Essentials certified Cyber Essentials Plus certified IASME certifying body ISO 27001 certified ISO 9001 certified Crown Commercial Service supplier UK Cyber Security Council member
CREST
Approved Provider
10
AI Agent Test Areas
FREE
Retest Until Closed
24h
Scope to Active Test
CLIENT REFERENCE
“I would highly recommend EJN Labs to any organisation seeking reliable, detailed, and well-managed penetration testing services, particularly for government or enterprise-level projects.”
SquareOneImran SaghirProject Lead, SquareOneRead the SquareOne case study →
CLIENT REFERENCE
“There wasn’t another company we could find that could deliver what we needed in the timeframe we needed. The client loved it, and we got instant ROI from the engagement.”
CelloriDan WilcocksonFounder, CelloriRead the Cellori case study →
See all case studies →
WHY IT MATTERS
Mediation

An agent decides which tool to call, but your systems must decide whether the call is allowed. We test whether every action is checked downstream, not left to the model’s judgement.

How an AI agent decides what it is allowed to do

An agent is an application that plans and acts. OWASP’s entry for Excessive Agency describes the weakness that matters most: damaging actions performed in response to unexpected, ambiguous or manipulated model output, whatever caused it. It names three root causes, excessive functionality, excessive permissions and excessive autonomy, and says the fix for the last is to enforce authorisation in downstream systems rather than rely on the model to decide whether an action is allowed. A review starts by listing every tool the agent can call and the identity each one uses.

The trigger can arrive through text the agent reads. OWASP’s prompt injection entry separates direct injection, where a user’s own prompt changes the model’s behaviour, from indirect injection, where content from an external source such as a website or file does. It also states that retrieval augmented generation and fine-tuning do not fully mitigate it, and that the impact depends on the agency the model has been given. The same AI penetration testing approach covers both, applied to an agent that can take actions.

OWASP also publishes a Top 10 for Agentic Applications, released in December 2025, for AI agents that plan, act and make decisions across workflows. Agent frameworks give you controls to use, such as human approval steps and tool guardrails in the OpenAI Agents SDK, but a control only helps if it sits on the path the agent actually takes. We test that it does.

SCOPE

What we test in an AI agent penetration test

AG-01

Tool Inventory and Excessive Functionality

OWASP lists excessive functionality as an agent holding extensions it does not need, including a tool trialled in development and never removed, or a tool that does more than the task requires. We list every tool, function and connector the agent can call and compare each with the job the agent is meant to do.

AG-02

Tool Credentials and Downstream Permissions

OWASP’s examples of excessive permissions include a read-only tool that connects with an identity that can also update and delete, and a per-user tool that uses a generic privileged account. We record the credential behind each tool and test what it can do on the downstream system when the model asks for something outside the task.

AG-03

Acting as the User, Not as the Agent

OWASP’s guidance is to run extensions in the user’s context, with the minimum scope the user has authorised, so an action on a user’s behalf is checked against that user. We sign in as two ordinary users and test whether one user’s request can make the agent read or change the other’s data.

AG-04

Direct Prompt Injection Through User Input

In direct injection a user’s own prompt changes how the model behaves, intentionally or not. We test the chat or task input with crafted instructions aimed at the agent’s tools, checking whether the model can be talked into a call, an argument or a data request the user’s role should not allow.

AG-05

Indirect Injection Through Pages, Files and Retrieved Content

In indirect injection the model reads content from an external source, such as a website or file, and that content alters its behaviour. We place instructions in every source the agent reads, including documents, web pages, tickets and retrieval results, and test whether the agent follows them and what it can be made to do.

AG-06

Approval Steps and Tool Guardrails

OWASP recommends human approval for high-impact actions, and frameworks such as the OpenAI Agents SDK let a tool require approval and attach input and output guardrails to function tools. We test whether the action that runs is the action that was approved, whether every route to a sensitive tool passes the check, and whether a guardrail can be skipped through a handoff or a second agent.

AG-07

Open-Ended Tools: Shell, URL Fetch and Code Execution

OWASP advises avoiding open-ended extensions such as running a shell command or fetching a URL, because the scope for unwanted actions is very large. Where your agent has one, we test what it will run or fetch when an attacker steers the arguments, including internal addresses and commands outside the intended one.

AG-08

Output Handling in Your Application

OWASP’s Improper Output Handling covers model output passed downstream without validation, which can lead to XSS, CSRF, SSRF, privilege escalation or remote code execution. We follow the agent’s output into the page, the database, the API calls and any interpreter, and test whether injected content is encoded and validated for each context.

AG-09

System Prompt, Context and Memory Leakage

OWASP states the system prompt should not be treated as a secret or as a security control, and that it should not hold credentials or connection strings. We try to extract the prompt, search it for secrets and authorisation logic, and test whether another user’s data in context, retrieval results or stored memory can be made to appear in a response.

AG-10

Loops, Cost Limits and Audit Logging

OWASP lists Denial of Wallet under Unbounded Consumption, and recommends logging extension activity and rate limiting to reduce the damage of unwanted actions. We test whether a request can drive the agent into repeated tool calls or unbounded usage, and whether the logs would show which tool ran, for which user and why.

OUR PROCESS

AI Agent Penetration Testing: From Scope to Attestation

01

Scope and Access

We agree the agent, its tools and the data it reads, and get test accounts for each user role plus a view of the tool list, credentials and configuration.

02

Tool and Trust Mapping

We map every tool, the identity behind it, every source of content the agent reads and every place its output is used.

03

Manual Testing

A CREST-certified tester manually tests injection, tool abuse, approvals and cross-user access with real accounts, chaining findings where they compound.

04

Attestation and Retest

You get a technical report with CVSS scores and reproduction steps, a walkthrough call, a free retest once fixes are deployed, and an attestation letter for auditors.

CREDENTIALS

Verified Accreditations Auditors Accept

Every credential below is independently verifiable. UK procurement teams, FCA supervisors, ISO 27001 / SOC 2 auditors, and cyber insurance underwriters all recognise these standards.

GET YOUR QUOTE

Get a CREST AI Agent pen test quote in 24 hours

A fixed-price quote back in one business day, from a named CREST assessor. No sales pipeline, no chasing.

  • CREST and IASME accredited. Testing your auditors and clients already recognise.
  • Fast-track testing within 24 hours where required. Free retest of every fix included.
  • Live findings via your client portal, not a four-week PDF.
  • Fixed price from £3,500 for a single-role, single-app scope, agreed up front. Most engagements run £5,000 and up. No day-rate surprises.
What clients say
There wasn’t another company we could find that could deliver what we needed in the timeframe we needed. The client loved it, and we got instant ROI from the engagement.
CelloriDan WilcocksonFounder, Cellori

Under NDA Further named references available on a scoping call.

What happens next
  1. We reply within one business day with a fixed-price quote from a named CREST assessor.
  2. You approve the scope and we book a start date, usually within 24 hours.
  3. Live findings land in your client portal as we test, with a free retest of every fix.
Accredited & recognised
CREST member Cyber Essentials certified Cyber Essentials Plus certified IASME certifying body ISO 27001 certified ISO 9001 certified UK Cyber Security Council Crown Commercial Service supplier

Get your fixed pen test quote in 24 hours

⚡24h reply ✓CREST tester ↻Free retests

or book a 20-min scoping call first

We reply within one business day. Your data stays with us. No newsletter signup.

COMPLIANCE READY

Reports Mapped to Every Framework

Findings are written so your team can reference the report against each framework without translation work.

ISO 27001:2022

Annex A.8.8 management of technical vulnerabilities plus A.5.15-5.18 and A.8.2-8.5 access control validation.

SOC 2 Type I & II

CC6 logical access, CC7 system operations, CC8 change management evidence.

PCI DSS

Requirement 11.4 application penetration testing across cardholder data environments, including ecommerce penetration testing for online retail platforms.

FCA SYSC

SYSC 4.1.1R, 6.1.1R, 13 mapped to each finding for FCA-regulated firms.

UK GDPR

Article 32 effectiveness testing, customer-data security controls, ICO-acceptable evidence.

Cyber Essentials Plus

Direct certification through our IASME body status, single-vendor delivery.

PRICING

Transparent AI Agent Penetration Testing Pricing

EJN Labs AI Agent Penetration Testing prices start at £6,100. Pricing depends on the number of roles, integrations and environments in scope. See our pricing page for how we quote.

✦ ALWAYS · ON EVERY TIER · NO EXCEPTIONS ✦
✓Free retests, no time limit
✓Free rescheduling
✓No cancellation fees
✓24-hour scope to active testing
✓Live findings to client portal
✓Executive + technical report
✓60-min walkthrough call
✓Letter of attestation
CHATBOT / RAG
£6,100–£12,100
Depends on AI system complexity

Single LLM-powered chatbot, basic RAG (≤100 documents), no agent tools. Around 5 to 7 working days from kickoff to report.

Get a fixed quote
ENTERPRISE AI
£25,100+
Depends on AI system complexity

Production AI platform, multi-agent orchestration, regulated AI use case (FCA, NHS), custom-trained models. Around 12 to 18 working days from kickoff to report.

Get a fixed quote

Full UK pen test cost guide

WHY EJN LABS

What You Get From AI Agent Penetration Testing

Six concrete differentiators competitors don’t all match.

CREST-Certified Testers, Verifiable

Every test by a CREST-certified pen tester (CRT, CCT APP, CCT INF where applicable). Verify our company status at crest-approved.org.

24-Hour Startup, Where Required

From signed scope to active testing in a single business day for incident response, audit deadlines, or regulator-driven timelines.

Live Findings, Not 4-Week PDFs

Critical issues reported during testing through your client portal. Your team remediates while testing continues.

Audit-Ready Reports

Executive summary plus full technical report with CVSS scores and explicit framework mappings (ISO 27001, SOC 2, PCI DSS, FCA SYSC).

Free Retests, Standard

Verify remediation of every finding before close-out. Letter of attestation for audit submission included. Most competitors charge £1,500-£3,000 per retest.

UK-Based CREST Testers

Every engagement performed by vetted, UK-based CREST-certified testers, matched to your needs, security clearance, and compliance scope.

FAQ

Frequently Asked

What access do you need to test our AI agent?

We need an account for each user role the agent serves, a second ordinary user so we can test one user against another, and a list of the tools the agent can call with the credential each one uses. Read access to the agent’s configuration, prompts and logs lets us confirm what we find without guessing.

Will testing change or delete live data?

That is your choice, and we agree it before testing starts. An agent with write tools can act on what it is told, so we prefer a test environment with realistic data and tool credentials of the same strength as production. We do not run destructive actions or export real customer data without written agreement.

How long does an AI agent penetration test take?

A single agent with a defined set of tools sits in our 5-day single-application scope, with the report typically landing around 5 to 7 working days after the testing ends. Several agents, many tools or agents that call one another move into a larger scope with more testing days.

Do you test the model itself?

No. We test your application: the agent’s tools, the permissions behind them, how it handles untrusted content, and what it does with its own output. Attacks on the model’s training or weights are outside this test, and we never target the model provider’s platform.

Does it matter which framework or platform the agent is built on?

It changes what we look at, not whether we test. A framework may provide approval steps or guardrails, and we test whether they are configured on every path. The same checks on tools, identity and output apply whether you use a framework or your own code.

Do model providers place rules on customer penetration testing?

Providers set their own usage and testing terms, and they differ. We confirm the current terms for your model provider and any connected service with you during scoping, and test to them exactly. Our testing is limited to your own application, at a volume agreed in advance.

What is out of scope for an AI agent penetration test?

We never test a model provider’s own platform or infrastructure. We test what you build and configure: the agent code, tools, prompts, retrieval sources, memory and the systems the tools connect to. A connected system such as a SaaS product or identity provider is scoped and quoted separately.

Is EJN Labs CREST accredited?

Yes. EJN Labs is a CREST-accredited company, and every AI Agent engagement is carried out by UK-based, CREST-certified testers. Your report and attestation letter are recognised by auditors and insurers accordingly.

EXPLORE EVERY SERVICE

20+ CREST-accredited testing services in one place

Web, mobile, API, cloud, AI, infrastructure, red team. Pick the test that fits your environment.

Penetration testing services
READY TO START

Get a fixed price for your AI agent

An AI agent acts for a user, so every tool it can call carries that user’s authority or more. We test what each tool can reach and who can steer it. EJN Labs is a CREST-accredited UK company providing AI agent penetration testing, from £6,100 for a 5-day single-application scope, quoted within 24 hours.