AI and LLM penetration testing: what a test covers
An AI penetration test is a security test of a system built around an AI model. The model is one part. The test also covers the application around it, the instructions it is given, the data it retrieves and the tools it can use.
What is in scope
CREST’s Security Testing of AI standard says testing also needs to consider applications, prompts and system instructions, retrieval mechanisms, data sources, memory, tools, plugins, APIs, orchestration layers and downstream systems influenced by AI outputs. That is a useful checklist for any AI test, whoever does it.
What a test is mapped to
OWASP publishes a Top 10 for LLM Applications 2025 (the list on OWASP’s site). The table is our mapping of each part of the system to the items it relates to, as a way to write down scope.
| Part of the system | What a tester looks at | OWASP LLM 2025 items |
|---|---|---|
| Inputs the model reads | Chat, uploads, web pages, emails and records that reach the model as text | LLM01 Prompt Injection |
| The application and system prompt | Hidden instructions, how model output is used or displayed, access between users | LLM07 System Prompt Leakage; LLM05 Improper Output Handling; LLM02 Sensitive Information Disclosure |
| The model and its supply chain | Hosted API, fine-tuned or open model, plug-ins, training and fine-tuning data | LLM03 Supply Chain; LLM04 Data and Model Poisoning |
| Retrieval store | Documents and vector index the model searches, and who can write to them | LLM08 Vector and Embedding Weaknesses; LLM02 Sensitive Information Disclosure |
| Tools, agents and connected services | What the model can read, send or change, and with whose permissions | LLM06 Excessive Agency |
| Spend and capacity | Limits on requests, tokens and cost per user | LLM10 Unbounded Consumption |
For systems where the model plans and acts, OWASP also publishes the Top 10 for Agentic Applications for 2026 (OWASP Top 10 for Agentic Applications for 2026, dated 9 December 2025).
What a test can and cannot show
The NCSC says “prompt injection attacks may never be totally mitigated in the way that SQL injection attacks can be”. A clean report is therefore not a promise that no instruction can ever steer the model.
On how to respond, the NCSC says to “approach it by seeking to reduce the risk and the impact; if the system’s security cannot tolerate the remaining risk, it may not be a good use case for LLMs”. So a good test spends its time on the second half: when an instruction does get through, what could it reach? That depends on the permissions, data and tools around the model, which is why prompt injection testing reports impact, not only success.
How it differs from a web application test
- The target takes instructions in plain language. A web app test checks that data cannot become code. With a model, the NCSC’s point is that instructions and data are not cleanly separated, so tests look at what each input could make the system do.
- The surface is the connections. In our view, much of the exposure sits in what the model is allowed to call or read, such as a mailbox, a database or a payment API, so a test lists those first.
- Findings are about impact. The same injected text can be harmless in one system and serious in another that gives the model more access.
- The usual web tests still apply. The application, API and cloud setup around the model are tested the normal way. See web application penetration testing and API testing.
CREST’s two AI accreditations
CREST has launched two AI accreditations in 2026. They answer different questions.
AI-Enabled Penetration Testing
The question: how does this firm use AI in its own testing?
- CREST AI-Enabled Penetration Testing assesses responsible, secure and appropriate use of AI within penetration testing services.
- CREST AI-Enabled Penetration Testing is Annex B of its Penetration Testing Accreditation Standard.
- CREST opened applications for its AI-enabled services accreditation on 28 July 2026.
Security Testing of AI
The question: can this firm test our AI system?
- CREST launched its Security Testing of AI standard and accreditation on 20 August 2026.
- CREST Security Testing of AI builds on CREST’s Penetration Testing Accreditation, which organisations must hold or apply for alongside it.
- CREST’s Security Testing of AI standard says testing also needs to consider applications, prompts and system instructions, retrieval mechanisms, data sources, memory, tools, plugins, APIs, orchestration layers and downstream systems influenced by AI outputs.
CREST AI-Enabled Penetration Testing is about how a provider uses AI in its own services; Security Testing of AI assures a provider can test AI systems. Which firms hold either changes as CREST accredits more, so we do not list holders here; confirm a firm’s status with CREST directly.
What drives the cost
No price figures are published here; there is no sourced price for AI tests yet. What moves a quote:
See what a penetration test costs for the general picture.
Which firms list AI and LLM testing
5 firms in the directory list AI or LLM testing on their own websites (3 serve the UK). That is what the firms say about themselves; it is not an accreditation and it says nothing about depth. See the list and each firm’s source.
Next steps
Sources
- OWASP: Top 10 for LLM Applications 2025
- OWASP: LLM01:2025 Prompt Injection
- OWASP: Top 10 for Agentic Applications for 2026
- NCSC: Prompt injection is not SQL injection (it may be worse)
- CREST: New CREST standard helps organisations identify providers who can test AI systems securely
- CREST: CREST launches additional accreditation to help build trust in AI-enabled cybersecurity services
Frequently asked
Is an AI penetration test just testing the model?
No. CREST’s Security Testing of AI standard says testing needs to consider more than the model: applications, prompts and system instructions, retrieval mechanisms, data sources, memory, tools, plugins, APIs, orchestration layers and downstream systems influenced by AI outputs.
Can a test prove my AI system is safe from prompt injection?
No. The NCSC says prompt injection may never be totally mitigated the way SQL injection can be, and that it remains a residual risk to manage through design, build and operation. A test shows what an injected instruction could reach in your system today and whether your safeguards held.
Do I need a firm with a CREST AI accreditation?
Treat it as one signal among several. CREST’s Security Testing of AI accreditation assesses a firm’s ability to test AI systems, and requires the firm to hold or apply for CREST Penetration Testing Accreditation alongside it. Ask any firm for its evidence of AI testing work, whether or not it holds the accreditation.
Find firms that fit your test
Answer a few questions about what needs testing and why, and see matched firms with a link to each one’s contact page.
Match with firms