Skip to content
Find the flaws before an attacker does

AI & LLM Penetration Testing

AI penetration testing is a hands-on security assessment of AI- and LLM-powered systems that simulates real attacks — prompt injection, jailbreaks, system-prompt and training-data exfiltration, and model denial-of-service — mapped to the OWASP LLM Top 10. Berghem manually tests your models, agents and RAG pipelines, then delivers prioritized, exploit-proven remediation.

10/10OWASP LLM categories
4Systematic phases
4 wksFrom kickoff to report
74%BR companies running LLM in production
$2.4MAverage AI incident cost
21Promptware incidents 2025–26
57%Attackers maintain persistence
Methodology · 4 phases

LLM Penetration Testing Methodology

Four phases that walk your models, agents and RAG pipelines through the OWASP LLM Top 10 — LLM01 to LLM10 — producing reproducible evidence at every step.

Need to validate detection and response as well? See Red Team for AI, the full adversarial campaign that chains the flaws found in the pentest all the way to the attacker's objective.

01
Reconnaissance

Map the model's surface

Endpoints, system prompts, plugins, RAG, and data flow — documented before the first test.

outputsurface_map.json
02
OWASP LLM Top 10

Test the ten categories

Prompt injection, output handling, data poisoning, model DoS — systematic and reproducible coverage.

outputfindings.md · 10/10
03
Infrastructure

Audit the stack that supports the model

Gateways, model serving, vector DBs, secrets, and isolation — where most critical flaws live.

outputstack_audit.log
04
AI-VRM classification

Translate findings into decisions

Severity, exploitability, and business impact in a matrix that prioritizes what to fix first.

outputrisk_matrix.csv
Full coverage

What does the OWASP LLM Top 10 cover?

Each category is exercised with real techniques observed in 2025–26 incidents, with reproducible PoC and AI-VRM risk classification.

LLM01

Prompt Injection

Direct and indirect attacks that manipulate behavior, bypass guardrails, or trigger unintended actions.

directindirectrag
LLM02

Insecure Output Handling

Validation flaws leading to XSS, SSRF, code execution, or escalation in downstream systems.

xssssrfrce
LLM03

Training Poisoning

Manipulation of pre-training, fine-tuning, or embedding data to introduce biases or backdoors.

poisoningbackdoor
LLM04

Model Denial of Service

Intensive operations that degrade performance, inflate costs, or disrupt service.

doscost
LLM05

Supply Chain

Pre-trained models, datasets, plugins, and third-party extensions that introduce vulnerabilities.

3rd-partyplugins
LLM06

Sensitive Data Disclosure

Exposure of PII, secrets, or system prompts via responses or side channels.

piileaksystem-prompt
LLM07

Insecure Plugin Design

Tool integrations that allow unauthorized actions or code execution.

toolsauthz
LLM08

Excessive Agency

Systems with permissions or autonomy beyond the intended scope — exploitable for arbitrary actions.

autonomyscope
LLM09

Overreliance

Trusting LLM output without validation — misinformation, vulnerabilities, incorrect decisions.

trustreview
LLM10

Model Theft

Unauthorized extraction, replication, or exfiltration of proprietary models and weights.

extractionip
From kickoff to executive scorecard

What You Receive

No generic report. Every deliverable is addressed to the right audience — from the board to the engineer.

01
Executive

Board summary

Business impact analysis, top risks, and financial exposure — in 2 pages, C-suite language.

formatoboard_summary.pdf
02
Technical

Findings with PoC

Each vulnerability with reproducible proof-of-concept, request/response logs, and CVSS+AI-VRM classification.

formatofindings_full.md
03
Risk

AI-VRM Matrix

Severity × exploitability × impact, with P0/P1/P2 prioritization and suggested SLA per category.

formatorisk_matrix.csv
04
Remediation

30/60/90 Plan

Concrete actions per finding, with owner, effort, and window. Includes a readout workshop with your team.

formatoremediation_plan.xlsx
Context and comparisons

AI pentest: context, comparisons and related services

AI Attack Techniques We Test

We reproduce the techniques seen in real 2025–26 incidents against your models, agents and RAG pipelines — not a checklist scan.

Direct & indirect prompt injection — Overriding instructions through user input or through poisoned content the model retrieves from documents, tools or RAG sources.

Jailbreaks & guardrail bypass — Role-play, encoding and multi-turn techniques that defeat safety filters and system-prompt constraints.

System-prompt & training-data exfiltration — Extracting hidden instructions, secrets and memorized data from responses and side channels.

Model denial-of-service — Resource-exhaustion and cost-amplification prompts that degrade availability or inflate inference bills.

Insecure output handling & tool abuse — Chaining model output into XSS, SSRF or code execution in downstream systems and plugin integrations.

Excessive agency & RAG poisoning — Abusing over-permissioned agents and poisoned knowledge bases to trigger unintended, high-impact actions.

Traditional pentest vs AI pentest

A traditional pentest and an AI pentest share the adversarial method but diverge in target, failure classes and success criteria. The table below summarizes the differences that change how you plan, run and repeat the test.

DimensionTraditional pentestAI pentest
TargetWeb applications, APIs, networks and infrastructureModels and LLMs, RAG pipelines, tool-using agents and the stack that serves them
Failure classesOWASP Top 10 web: SQL injection, XSS, broken access control, SSRFOWASP LLM Top 10: prompt injection, jailbreak, data leakage, excessive agency
ToolingScanners, proxies, exploits and deterministic fuzzersPrompt payloads, jailbreak harnesses, embedding analysis and semantic fuzzing
Non-deterministic criterionDeterministic behavior: the flaw reproduces identically every runThe same input can yield different responses, requiring sampling and repetition to confirm the flaw
Retest frequencyAfter fixes and significant release changesOn every change of model, system prompt, RAG knowledge base or agent tool set

Manual pentest vs automated AI red teaming

Automated tools scale coverage of known patterns; manual testing finds the business-logic and chained flaws that matter. Berghem combines both, led by humans.

DimensionBerghem manual pentestAutomated AI red teaming
CoverageDeep, context-aware testing of your specific models, agents and data flowsBroad, fast scanning of known prompt-injection and jailbreak patterns
Business-logic & chained flawsFound — testers chain weaknesses to a real objectiveRarely found — limited to predefined signatures
False positivesTriaged and validated by handHigher — needs human review
Exploit proofReproducible proof-of-concept per findingOften flags without a working exploit
Remediation guidancePrioritized, tailored 30/60/90 planGeneric recommendations
Compliance evidenceMapped to OWASP LLM Top 10 and AI governance frameworksPartial, tooling-dependent

How AI pentesting supports AI governance

Findings are mapped to the frameworks your auditors and regulators expect, so a pentest doubles as evidence for your AI governance program.

EU AI Act — Evidence of adversarial testing and risk management for high-risk AI systems placed on the EU market — supported in Europe through Berilo.

ISO/IEC 42001 — Demonstrable controls for the AI management system, including testing, monitoring and continual improvement of AI risks.

NIST AI RMF — Coverage of the Measure and Manage functions with concrete, exploit-proven evidence of AI risks and mitigations.

AI pentest vs AI Red Team

An AI pentest pursues breadth: systematic, reproducible coverage of the ten OWASP LLM Top 10 categories across the whole system surface, with a prioritized list of vulnerabilities. An AI Red Team pursues depth: a business-goal-driven adversarial campaign that chains flaws to final impact and measures whether the defense detects and responds to the attack.

The two complement each other — use the pentest to map where you are vulnerable and the AI Red Team to validate that your detection and response controls hold under a real, chained attack.

Pentesting with AI: Berghem Agents

Berghem also applies artificial intelligence to its own offensive process, combining human operators with autonomous security agents.

The Berghem Agents automate reconnaissance, payload generation and mutation, and finding triage to widen pentest coverage — always under the supervision of human specialists who validate every vulnerability and discard false positives. This lets us exercise more attack variations in less time, without giving up the reproducible proof of concept and prioritized remediation plan that define a Berghem AI pentest.

FAQ

AI/LLM pentest — frequently asked questions

What is AI penetration testing?
AI penetration testing is offensive security testing of artificial-intelligence systems — chatbots, assistants, agents and LLM-powered applications. Berghem simulates a real attacker against the model, the RAG pipeline, the plugins and the infrastructure, covering the ten OWASP LLM Top 10 categories, and delivers reproducible evidence with a prioritized remediation plan.
How is it different from traditional application pentesting?
Traditional application pentesting targets deterministic code paths, injection and access-control flaws. AI/LLM pentesting adds the model layer: prompt injection, jailbreaks, system-prompt and training-data exfiltration, RAG poisoning, excessive agency and model denial-of-service. It tests non-deterministic behaviour and the model's tools and data flows, mapped to the OWASP LLM Top 10 rather than only the OWASP Top 10 for web.
How long does an AI pentest take and what does it cost?
A typical engagement runs about four weeks from kickoff to final report, covering reconnaissance, the ten OWASP LLM categories, supporting infrastructure and AI-VRM risk classification. Cost depends on scope — the number of models, agents, integrations and environments in scope — and is quoted as a fixed price after a short scoping call, so there are no surprises.
What standards does the assessment follow?
Tests are structured by the OWASP LLM Top 10 for coverage and use CVSS alongside an AI-VRM risk matrix for scoring. Findings are prioritized P0/P1/P2 so your team fixes the highest-impact, most-exploitable issues first.
What do we receive at the end?
You receive a two-page executive summary, technical findings with reproducible proof of concept, an AI-VRM risk matrix, and a 30/60/90 remediation plan with owners and effort, plus a readout workshop with your engineering team.
What is the difference between an AI/LLM pentest and AI Red Team?
An AI/LLM pentest gives systematic, reproducible OWASP LLM Top 10 coverage across the whole stack. An AI Red Team is an adversarial emulation driven by a specific objective. They complement each other — pentest for breadth, Red Team for depth.

Ready to test your AI systems before attackers do?

Schedule an AI/LLM pentest and get a full view of your attack surface — from prompt injection to model theft.

Request AI pentest