AI red teaming
Attacking your own AI application to find unsafe or insecure behaviour before others do.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkOverview
AI red teaming is deliberately attacking an AI system you are responsible for, using adversarial inputs to find where it can be made to leak data, ignore its instructions, misuse its tools or produce harmful content. Chatbots and agents now read untrusted web pages, documents and tool results, so the attack surface is far wider than a chat box, and the OWASP Top 10 for LLM Applications gives a starting list of what to test.
Practitioners start from what the application can do and who could abuse it, then generate attacks for that purpose: direct and indirect prompt injection, jailbreaks, requests for other users' data, tool calls with dangerous arguments. Tools such as promptfoo, garak and PyRIT produce and score attacks at scale, and people confirm each finding by hand, fix it, and keep the attack as a regression test that runs on every change.
What you will practise
- Write a threat list for one application: its data, its tools and who might abuse them
- Generate prompt injection and jailbreak attacks for that application with a red-team tool
- Confirm each reported failure by hand before you count it as a finding
- Plant an instruction in a document or web page the agent reads and check whether it obeys
- Keep confirmed attacks as regression tests and re-run them after every prompt or model change
Workflow recipes
- Red-team your chatbot for prompt injection
Generate attacks for its purpose, confirm each failure by hand, apply mitigations and re-run.
Articles
- OWASP Top 10 for LLM applications, explained with examples
The 2026 OWASP Top 10 for LLM applications in plain language, with an agent-era example and a practical fix for each risk, plus what changed from 2025.
Tools for this skill
Key terms
Words you will meet while learning this, defined in the glossary.
- Jailbreak
A prompt crafted to get a model to bypass its safety training and produce content it would normally refuse to write, often by role-play.
- Red-teaming
Deliberately attacking an AI system to find harmful, insecure or embarrassing behaviour before real users or attackers can find it.