Skip to content

Guide

LLM Pentesting Checklist: Testing an AI Application Before Launch

By Lucas Weber, CyberSec42 · Updated 28 Oct 2026

CyberSec42

An LLM pentest, often called an AI security assessment, tests an AI application the way an attacker would approach it: not just the language model, but above all everything built around it, meaning prompts, connected data, tools and agents, connectors, identities and logging. A practical LLM pentesting checklist covers seven areas: inputs and prompt injection, data leakage and permissions, tool and agent privileges, output handling, supply chain, abuse and cost, and logging. If you have tested those areas before launch and can map the findings to the OWASP lists for LLM and agentic applications, you know where your AI application actually stands.

Key points.

Scope

The model or the application around it.

Go to section

Checklist

Seven test areas, item by item.

Go to section

OWASP mapping

LLM Top 10 and Agentic Top 10.

Go to section

Web pentest vs. AI pentest

What is covered and what is not.

Go to section

The report

What each finding should contain.

Go to section

Preparation

Test accounts, test data, written scope.

Go to section

What an AI pentest covers: the model or the application?

Most companies do not train their own model. They call a provider's model through an API, give it a system prompt, connect it to their own documents and let it call tools. You usually cannot change the model itself. What you control is everything you built around it, and that is where an AI pentest focuses.

In its Top 10 for LLM Applications, the OWASP GenAI Security Project works on the assumption that a model can be fooled. The real question is therefore not whether someone can get the model to say something it should not, but what happens next: which data can it reveal, which actions can it trigger, where does its output end up? A useful scope lists every component separately:

ComponentWhat gets tested
ModelWhich model and version, through which provider and with which settings; behaviour under bypass attempts where it matters for the application
PromptsSystem prompt, templates and hidden context: what is in them, what must not leak, and does the application rely on instructions instead of controls?
RAG dataKnowledge base, vector database, document sources: who may retrieve what, and who can add content?
Tools and agentsEvery function the model may call, with its parameters, privileges and confirmation steps; how multiple agents interact
ConnectorsLinks to mailboxes, ticketing, CRM, file storage or MCP servers, through which untrusted content comes in and actions go out
IdentitiesWhose permissions the model acts with: the signed-in user, a service account or a shared API key
LoggingWhether an incident can be reconstructed, and whether the logs themselves protect sensitive data

One boundary matters: the test covers your application in your environment, under written authorisation. The model provider's infrastructure is out of scope. Check the provider's terms of use beforehand for anything that applies to testing through their API.

The checklist: seven test areas

The items below are grouped by attack surface rather than by OWASP number. The mapping to OWASP identifiers follows in the next section.

1. Inputs and prompt injection

Prompt injection remains the core risk: text that looks like an instruction redirects the model. Direct injection comes through the chat box; indirect injection comes from content the application reads on its own.

For a full test plan with test cases, see our guide on how to test for prompt injection. For the MCP variant, where poisoned tool descriptions carry the injection, see prompt injection and tool poisoning in MCP.

2. Data leakage and permissions

A model has no notion of access rights. It outputs whatever is in its context. Whether user A can see user B's documents is therefore decided by the application alone, before anything reaches the context.

3. Tool and agent privileges

Once the model can act, every successful manipulation becomes an action. For agents, this is usually where the greatest damage lies. Our overview of AI agent security covers the fundamentals.

4. Output handling

Model output is input from an untrusted source. Passed on unchecked, it recreates classic vulnerabilities through a new route.

5. Supply chain, models and plugins

6. Abuse and cost

OWASP lists unbounded resource use as a risk of its own (Unbounded Consumption). With pay-per-use models, abuse does not just create load, it creates a bill.

7. Logging and traceability

Mapping to the OWASP LLM Top 10 and Agentic Top 10

Two lists from the OWASP GenAI Security Project form the usual framework: the OWASP Top 10 for LLM Applications, 2026 edition, and the OWASP Top 10 for Agentic Applications for 2026. The first looks at the model as a component of the application, the second at the agent that plans, acts and remembers. The table shows which entries each of the seven test areas mainly covers. Each entry is explained in the linked guides.

Test areaOWASP LLM Top 10 (2026)OWASP Agentic Top 10
Inputs and prompt injectionLLM01:2026 Prompt InjectionASI01 Agent Goal Hijack
Data leakage and permissionsLLM02:2026 Sensitive Information Disclosure, LLM08:2026 Hidden Context Exposure, LLM09:2026 Vector and Embedding WeaknessesASI06 Memory & Context Poisoning
Tool and agent privilegesLLM03:2026 Excessive AgencyASI02 Tool Misuse and Exploitation, ASI03 Identity and Privilege Abuse, ASI07 Insecure Inter-Agent Communication, ASI09 Human-Agent Trust Exploitation
Output handlingLLM10:2026 Improper Output HandlingASI05 Unexpected Code Execution
Supply chain, models, pluginsLLM04:2026 Supply Chain, LLM05:2026 Data and Model PoisoningASI04 Agentic Supply Chain Vulnerabilities
Abuse and costLLM06:2026 Unbounded ConsumptionASI08 Cascading Failures, where failures propagate through agent chains
LoggingCross-cutting, no entry of its ownA precondition for detecting ASI10 Rogue Agents at all

One entry is deliberately left out of the checklist: LLM07:2026 Misinformation. Whether a model gives factually wrong answers is more a quality assurance question than an attack. It becomes relevant to a pentest where users or downstream systems rely on output without checking it.

If you also need a risk management framework: in July 2024 the US National Institute of Standards and Technology (NIST) published the Generative AI Profile (NIST AI 600-1), a companion resource to the AI Risk Management Framework (AI RMF 1.0). It lists information security as a distinct risk of generative AI and names prompt injection and data poisoning explicitly. Among its suggested actions are red-teaming and independent external evaluations. The profile is voluntary and does not replace testing, but it helps place the results within a risk management process.

What a classic web pentest covers, and what it misses

An AI application is first of all a web application with an API. Login, session management, object-level authorisation and interfaces need testing just like any other application, for example along our API pentest checklist. What a classic test does not capture is how the model behaves as part of the application.

Test subjectClassic web/API pentestAI pentest
Authentication, sessions, API object permissionsYes, core scopeAssumed or tested alongside
Injection into SQL, shell, HTMLYes, through direct inputAlso through model output as an intermediate step
Steering the model through text in inputs and documentsNoYes
Privileges and confirmations for tool callsOnly where visible as an API endpointYes, from the model's perspective as caller
Permission filtering in RAG and the vector databaseRarelyYes
Extracting the system prompt and hidden contextNoYes
Cost and loop abusePartly, as rate limitingYes, including token and agent limits

There is a methodological difference too: models do not always answer the same way. An attack that fails on the first attempt may succeed on the fifth. An AI pentest therefore repeats attacks and documents how reliably a finding occurs. For how a pentest runs in general, see penetration testing: process, duration and cost.

What the report should contain

An AI pentest report has to be readable for management and actionable for engineering. Look for these elements:

To see what such a report looks like in practice, take a look at our sample report on a tested MCP integration.

How to prepare your team

The better the preparation, the more testing time goes into real attack paths instead of access issues.

Want your AI application tested before launch?

We test AI applications, agents and MCP integrations within a scope agreed in writing: inputs and prompt injection, data leakage through RAG and context, tool and agent privileges, output handling and cost abuse, plus the web application and API around them. Every finding comes with reproducible evidence, a mapping to the OWASP identifiers and a concrete fix. Learn more about our AI pentest and MCP security service.

Request an AI pentest

CyberSec42 is an independent technical security assessment, not an accredited certification body, and does not provide legal advice. CyberSec42 is not affiliated with the OWASP Foundation or NIST.

Frequently asked questions

What is the difference between an LLM pentest and an AI security assessment?

The terms are often used interchangeably. A pentest emphasises active attack with proof for each finding. An assessment may also evaluate architecture, configuration and processes. What matters is not the label but that the scope covers the application around the model.

Does the language model itself need to be tested?

With a third-party model, usually not in isolation. The test looks at how the model behaves inside your application, with your system prompt, your data and your tools. The model provider's infrastructure is out of scope.

Is a standard web pentest enough for an AI application?

No, although it is still needed. It covers login, sessions and the API. Whether a document can steer the model, whether the knowledge base respects permissions and what tools do when things go wrong only shows up in a test that attacks the model as part of the application.

Which OWASP list applies to my application?

For any application with a language model, the OWASP Top 10 for LLM Applications 2026. Once the model calls tools on its own, plans or has memory, add the OWASP Top 10 for Agentic Applications. For MCP integrations, the OWASP MCP Top 10 comes on top.

When should the AI pentest take place?

Before launch, once features, tools and data sources are settled. Then again after significant changes, such as a new tool, a new data source or a model switch.

Can findings in AI applications be reproduced at all?

Yes, though not always on the first attempt. A good report therefore gives the exact inputs used and how often the attack succeeded across repeated runs. An attack that only works some of the time is still a finding.

Further reading

Sources