12 guides
Guides: hands-on AI security testing
Hands-on security tests for AI systems: real commands, real tools and what they print, run against a lab on your own machine.
Testing the OWASP Top 10 for LLM Applications 2026
10 of 10 parts published
One guide per risk. Each guide is a lesson: it explains the risk and shows how to test for it, with real commands and tools and what they print, on examples made for the guide.
The lab
Troy. The lab that goes with the series: ten hard levels, one for each risk, solved flag by flag against a local model served by Ollama. It runs on your own machine and listens on 127.0.0.1 only. The guides teach the methods on their own examples; they do not walk through the lab's levels. Troy on GitHub
Overview
OWASP Top 10 for LLM Applications 2026: a pentest guide
A practical penetration testing guide to the ten risks in OWASP's 2026 list for LLM applications: what to test, how to test it safely, what evidence to keep and which fix to retest.
23 min read
Lab setup
Set up the lab: Ollama, a local model and Troy
Ollama, a small local model and Troy on your own machine: every command with its output, and a tour of the lab's board.
- Ollama
- Python
- git
8 min read
LLM01:2026Prompt InjectionApplication
LLM01 Prompt Injection: direct, indirect and through tools
A support assistant that can send email, attacked through the user's message and through customer feedback. Nine payload styles counted over 20 runs each, a scanner run, and two fixes measured.
- curl
- Python
- garak
25 min read
LLM02:2026Sensitive Information DisclosureData and retrieval
LLM02 Sensitive Information Disclosure: three places to look
An order assistant that holds three customers' records and a key in its prompt. Leaks in the answer, in the rest of the response and in the log, counted over 20 runs, and two fixes measured.
- curl
- Python
24 min read
LLM03:2026Excessive AgencyApplication
LLM03 Excessive Agency: tools, permissions and approval
A refund assistant with three tools: the inventory, nine requests counted over 20 runs each in the shop's database, and limits in the prompt measured against limits in the tools.
- curl
- Python
26 min read
LLM04:2026Supply ChainInfrastructure
LLM04 Supply Chain: testing model files and dependencies
Download integrity, model files that run code when they load, vulnerable dependencies and an SBOM.
- picklescan
- modelscan
- fickling
- pip-audit
- CycloneDX
12 min read
LLM05:2026Data and Model PoisoningData and retrieval
LLM05 Data and Model Poisoning: one document, every user
A help centre whose knowledge base anyone can write to: four kinds of poisoned text counted over 30 answers each, labels in the prompt measured against review before retrieval, and a model file with one changed line.
- curl
- Python
24 min read
LLM06:2026Unbounded ConsumptionInfrastructure
LLM06 Unbounded Consumption: measuring what one request can cost
A public chat with an order tracker: what one long answer, one large message, one long conversation and one loop cost in tokens, model calls and seconds, and what another customer waits meanwhile, with a prompt fix measured against limits in code.
- curl
- Python
- Ollama
20 min read
LLM07:2026MisinformationModel
LLM07 Misinformation: testing for answers that are not true
A policy assistant asked 35 questions of six kinds, 10 runs each: invented answers, accepted false assumptions, omissions and claimed actions, counted, with two fixes measured in wrong answers and in missing ones.
- curl
- Python
- garak
30 min read
LLM08:2026Hidden Context ExposureApplication
LLM08 Hidden Context Exposure: what a system prompt gives away
A sales assistant with a discount code, a tool list and a token in its prompt: 15 requests counted over 10 runs each with a canary and a coverage measure, a filter measured against moving the secrets out.
- curl
- Python
22 min read
LLM09:2026Vector and Embedding WeaknessesData and retrieval
LLM09 Vector and Embedding Weaknesses: testing a shared index
A help search that two shops share: the other shop's name in the request, similarity scores as an oracle, an export without a login and one poisoned tip, with a patched API measured against scope inside the search.
- curl
- Python
- Ollama
22 min read
LLM10:2026Improper Output HandlingApplication
LLM10 Improper Output Handling: when the page trusts the model
A page that shows a model-written digest of customer reviews: mark-up, an image request and a link from one review, counted over 10 page loads each in a real browser, and an instruction measured against encoding in the page.
- curl
- Python
- Chrome
19 min read
Layer testedApplicationData and retrievalModelInfrastructure
Need this tested on your system?
AI red teaming and penetration testing of LLM applications, with reproducible evidence and a retest.