---
title: "LLM Application Pentesting: the OWASP LLM Top 10"
description: "LLM application pentesting against the OWASP Top 10 for LLM apps: prompt injection, insecure output and data leakage, with an attacker model in scope."
canonical: https://pentestllm.ai/llm-application-pentesting
generated: 2026-11-27T06:15:53.906Z
source: https://pentestllm.ai/llm-application-pentesting
base_url: https://api.pentestllm.ai/v1
---

LLM application pentesting

# Pentesting an LLM application

LLM application pentesting means testing the software around a model against the OWASP Top 10 for Large Language Model Applications: prompt injection, insecure output handling, excessive agency, sensitive-information disclosure and the rest. An uncensored attacker model such as `gemma-4-26b-a4b-it-cybersecurity` at `https://api.pentestllm.ai/v1` writes the injection payloads and probes a general model declines to produce, for an application you are authorized to test.

[Prices per token](https://pentestllm.ai/pricing)

[Get a key](https://app.pentestllm.ai/console) [Try it free in the browser](https://pentestllm.ai/playground)

```
from openai import OpenAI

client = OpenAI(base_url="https://api.pentestllm.ai/v1", api_key="sk-ptl-live-…")

reply = client.chat.completions.create(
    model="auto/security",
    messages=[{"role": "user", "content": "Explain this advisory and list what to check on an affected host."}],
)
print(reply.model)  # the build that answered
print(reply.choices[0].message.content)
```

## What you are actually testing

Once the evaluation is complete, [review its exported results](https://pentestllm.ai/llm-security-evaluation-report-review) with source counts and scorer outcomes preserved, before treating a result as a confirmed finding.

The model is rarely the vulnerability. The vulnerability is the application that wraps it: the prompt it builds from untrusted input, the tools it is allowed to call, the output it trusts without checking, and the data it can reach. OWASP groups these into its Top 10 for LLM Applications, and a test walks that list against the app in front of you, not against the base model in the abstract.

Prompt injection is first on the list because it is the delivery mechanism for most of the rest. If attacker text in a document or a web page can steer the model, then excessive agency becomes remote tool execution and insecure output handling becomes stored XSS. So a test starts by finding every place untrusted text reaches the prompt, then checks what the model can be made to do from there.

## The OWASP LLM Top 10, as tests

- Prompt injection (LLM01): Hide instructions in inputs the app feeds the model (documents, pages, tool output) and see if they override the system prompt.
- Sensitive information disclosure (LLM02): Probe for system prompts, keys and other users’ data the model can be coaxed into revealing.
- Insecure output handling: Check whether model output is rendered or executed without escaping: HTML, SQL, shell or markdown that reaches a sink.
- Excessive agency: Enumerate the tools and permissions the model holds, then test whether injection can trigger them.
- Data and prompt leakage: Test retrieval and memory for cross-tenant bleed and for training data surfacing in answers.
- Unbounded consumption: Drive cost and latency with crafted inputs to find denial-of-wallet and resource limits.

## Why an uncensored model as the attacker

Writing good injection payloads is itself a task a general model refuses, because the payload looks like the attack it is trained to avoid helping with. That is a problem when the target is your own application and you are the authorized tester. An abliterated or security-tuned build answers the request, so you can generate a wide set of payloads, jailbreak strings and encoding tricks to throw at the app under test.

Point your harness at `https://api.pentestllm.ai/v1` with the OpenAI or Anthropic format and use `gemma-4-26b-a4b-it-cybersecurity` or send `auto/security`, which routes to a security build per request. The model generates candidate payloads; your harness sends them to the target application and records which get through. The model never touches the target, so your test traffic and your findings stay on your side.

## Tools and frameworks to pair it with

Open tools automate much of this list. Garak runs a battery of LLM probes; PyRIT scripts attack conversations; Promptfoo runs red-team test suites in CI. A model that will write payloads makes each of them more thorough, because the bottleneck is usually how varied your attack inputs are. The payload generation runs here; the sending, scoring and reporting run in those tools. For the REST API behind the app, [API test cases from a spec](https://pentestllm.ai/api-security-testing-ai) drafts an OWASP API Top 10 checklist a tester runs under scope.

Keep every test inside written authorization for the application and its data. Testing a third party’s hosted LLM product without permission is unauthorized testing whatever the technique. The [acceptable use policy](https://pentestllm.ai/acceptable-use) applies as on every page, and the [AI red teaming page](https://pentestllm.ai/ai-red-teaming) covers testing a model’s own behaviour rather than the app around it.

## 16 security builds, priced per token

USD per million tokens, live on 2026-11-27; `auto/security` bills at the build that answers.

Detected refusals and invalid non-streamed JSON qualify for automatic refunds within the daily cap. [Verify your receipt](https://pentestllm.ai/statements/verify).

| Model | Build | Input $/M | Output $/M | Context | Wire formats |
| --- | --- | --- | --- | --- | --- |
| [Qwen3.8 27B Cybersecurity](https://pentestllm.ai/models/qwen3.8-27b-cybersecurity) qwen3.8-27b-cybersecurity | Security | $0.40 | $2.40 | 262K | openai |
| [Uncensored Qwen3.8 27b Cybersecurity](https://pentestllm.ai/models/qwen3.8-27b-cybersecurity-uncensored) qwen3.8-27b-cybersecurity-uncensored | Security | $0.40 | $2.40 | 262K | openai |
| [Gemma 4 26B A4B Cybersecurity](https://pentestllm.ai/models/gemma-4-26b-a4b-it-cybersecurity) gemma-4-26b-a4b-it-cybersecurity | Security | $0.4224 | $1.3376 | 262K | openai |
| [Gemma 4 26B A4B Cybersecurity (Uncensored)](https://pentestllm.ai/models/gemma-4-26b-a4b-it-cybersecurity-uncensored) gemma-4-26b-a4b-it-cybersecurity-uncensored | Security | $0.48 | $1.52 | 262K | openai |
| [GLM-5.3 Flash Cybersecurity](https://pentestllm.ai/models/glm-5.3-flash-cybersecurity) glm-5.3-flash-cybersecurity | Security | $0.4935 | $1.645 | 1049K | openai |
| [GLM-5.3 Flash Cybersecurity (Uncensored)](https://pentestllm.ai/models/glm-5.3-flash-cybersecurity-uncensored) glm-5.3-flash-cybersecurity-uncensored | Security | $0.5093 | $1.6975 | 1049K | openai |
| [Red Team (Flash)](https://pentestllm.ai/models/uplink-red-team-flash) uplink-red-team-flash | Security | $0.90 | $3.00 | 1000K | openai |
| [Red Team (Pro)](https://pentestllm.ai/models/uplink-red-team-pro) uplink-red-team-pro | Security | $1.50 | $6.00 | – | openai |
| [OrcaCyber MiniMax M3.1 Flash](https://pentestllm.ai/models/minimax-m3.1-flash-cybersecurity) minimax-m3.1-flash-cybersecurity | Security | $2.00 | $4.00 | 262K | openai |
| [OrcaCyber MiniMax M3.1 Flash (Uncensored)](https://pentestllm.ai/models/minimax-m3.1-flash-cybersecurity-uncensored) minimax-m3.1-flash-cybersecurity-uncensored | Security | $2.00 | $4.00 | 262K | openai |
| [OrcaCyber Qwen3.8 Flash Next (Uncensored)](https://pentestllm.ai/models/orcacyber-qwen3.8-flash-next-uncensored) orcacyber-qwen3.8-flash-next-uncensored | Security | $2.00 | $4.00 | 262K | openai |
| [OrcaCyber Qwen3.8 Flash Next](https://pentestllm.ai/models/qwen3.8-flash-next-cybersecurity) qwen3.8-flash-next-cybersecurity | Security | $2.00 | $4.00 | 262K | openai |
| [Uncensored Qwen3.8 Flash Next Cybersecurity](https://pentestllm.ai/models/qwen3.8-flash-next-cybersecurity-uncensored) qwen3.8-flash-next-cybersecurity-uncensored | Security | $2.00 | $4.00 | 262K | openai |
| [Cyber Frontier](https://pentestllm.ai/models/cyber-frontier) cyber-frontier | Security | $5.25 | $15.75 | 1049K | openai |
| [OrcaCyber Zero 1.5](https://pentestllm.ai/models/orca-zero-1.5-cybersecurity) orca-zero-1.5-cybersecurity | Security | $7.50 | $18.75 | 999K | openai |
| [OrcaCyber Zero 1.5 (Uncensored)](https://pentestllm.ai/models/orca-zero-1.5-cybersecurity-uncensored) orca-zero-1.5-cybersecurity-uncensored | Security | $7.50 | $18.75 | 999K | openai |

[Full price list and tool fees](https://pentestllm.ai/pricing) · [Every model](https://pentestllm.ai/models) · [API docs](https://pentestllm.ai/docs)

## Questions

### How do I test my LLM app for prompt injection?

Find every place untrusted text reaches the prompt, then feed in inputs that carry instructions and see if they override the system prompt or trigger a tool. Generate a varied payload set with an uncensored model, send them with a harness like Garak or Promptfoo, and record which get through.

### What is the OWASP Top 10 for LLM applications?

A list OWASP maintains of the most common risks in LLM-backed software: prompt injection, sensitive information disclosure, insecure output handling, excessive agency, data and prompt leakage, unbounded consumption and more. It is the checklist an LLM app pentest works through.

### Why use an uncensored model to pentest an LLM?

Writing injection payloads is a task general models refuse, since the payload looks like the attack. For your own authorized test that is a blocker. A security-tuned or abliterated build writes the payloads so you can test the app thoroughly. Expect reduced refusals, not zero.

### Which model should the attacker harness use?

Send auto/security to let the router pick a security build, or pin gemma-4-26b-a4b-it-cybersecurity for a fixed one. Requests go to https://api.pentestllm.ai/v1 in the OpenAI or Anthropic format, and the model only writes payloads; your harness sends them to the target.

### Is LLM application pentesting legal?

Only against an application and data you own or have written permission to test. Testing a third party’s hosted LLM product without authorization is illegal in most places whatever the method.

## Read next

[AI red teaming An attacker model for testing AI systems you are authorized to test: prompt injection, jailbreaks, leakage.](https://pentestllm.ai/ai-red-teaming) [AI pentesting What a model does inside an authorized penetration test, and the builds to run your agent on.](https://pentestllm.ai/ai-pentesting) [AI pentesting tools The AI pentesting tools in use in 2026, by category, and the model endpoint to run your own agent on.](https://pentestllm.ai/ai-pentesting-tools) [Security refusal benchmark How we measure which models refuse versus engage with authorized security requests: method and benign prompts.](https://pentestllm.ai/security-refusal-benchmark)

Facts about other products and tools on this page were read from their own pages on 21 November 2026: [OWASP Top 10 for LLM Applications](https://genai.owasp.org/llm-top-10/), [OWASP GenAI Security Project](https://genai.owasp.org/). They change; check the source before relying on a figure.

## One key, from $3

For systems you own or may test in writing: [acceptable use](https://pentestllm.ai/acceptable-use).

[Get a key](https://app.pentestllm.ai/console)
