AI GLOSSARY · SAFETY, ETHICS AND GOVERNANCE
Red teaming
Definition
Red teaming is adversarial evaluation that actively searches for weaknesses or harmful behavior in a system. Human testers, automated methods or both may be used before or after deployment; a bounded exercise cannot establish universal safety.
Also called: AI red teaming, red team AI, LLM red teaming, red-team testing, adversarial testing.
In plain language
Red teaming means hiring or assigning people to attack your own system on purpose. For an AI assistant, testers try to trick it into giving dangerous advice, leaking private data or ignoring its rules, then report what worked so the builders can fix it. It is like asking a locksmith to try to pick your door before a burglar does. OpenAI describes using people, AI models, or both for this. The main limitation is coverage: a team can only try the attacks it thinks of, so a clean result does not prove the system is safe. Anthropic notes there are no standardised practices, which makes results hard to compare between systems.
Technical definition
Red teaming runs structured adversarial probes against a model or an application built on it. Anthropic describes several forms: domain-specific expert testing, automated model-driven testing in which one model generates attacks on another, multimodal testing, and open-ended crowdsourced testing. OpenAI describes manual, automated and external red teaming, and says automated methods can generate many example attacks, though earlier ones often repeated known strategies. Findings are turned into fixes or into repeatable evaluations. Anthropic names turning qualitative findings into scalable quantitative evaluations as a major open challenge.
Worked examples in this catalogue
Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.
Skill by Skill Almanac · Illustrative, not executed
threat-model-stride-worksheet 38/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- What you see
- A walk through a feature using a STRIDE threat-modelling worksheet, taking assets, actors, trust boundaries and data flows as inputs.
- Why it exercises the concept
- Red teaming works best when testers know what is worth attacking. A threat model lists the assets and entry points that a red team then probes.
Skill by Skill Almanac · Illustrative, not executed
skill-safety-audit 57/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- What you see
- Scans a third-party agent skill folder and returns a JSON risk table with evidence lines before you install it.
- Why it exercises the concept
- It is a small, defensive version of the same habit: look for ways something could go wrong before trusting it.
Skill by Skill Almanac · Illustrative, not executed
code-risky-pattern-scan 42/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- What you see
- A read-only scan of a source-code folder for nine risky code patterns, such as eval or exec, shell=True and string-built SQL.
- Why it exercises the concept
- A coding agent's output can contain these patterns. Scanning for them is one concrete check to run on what an agent wrote.
How it shows up when you use agents
An agent that can run commands, read files and call tools has more ways to go wrong than a chat window. Red teaming for agents means testing those routes: can a web page or document trick it into acting (prompt injection), can a user talk it out of its rules (jailbreak), and what is the worst thing its tools allow? Testing can take place before or after deployment. Define an authorized scope before probing an application or its tools.
What breaks when it is misunderstood: a single clean test run is read as proof of safety. OpenAI describes red teaming as a way to find problems, not a certificate that none remain.
Next actions:
- Write down what the agent can touch, then try to make it misuse each item. A STRIDE worksheet gives a structure.
- Audit third-party skills before installing them with Skill safety audit.
- Keep guardrails and permission prompts on while testing, and rerun the attacks after each change.
Worked example (illustrative)
In a hypothetical authorized test, a tester places an instruction in a document that an assistant is asked to summarize, then observes whether it attempts an out-of-scope action. Finding a failure can produce a regression case. Not finding one only describes that exercise; it does not prove that all documents and tool combinations are safe. No real target was attacked for this illustration.
Common confusions
- Red teaming versus penetration testing. Penetration testing targets software and networks. AI red teaming can also include behavioral evaluation of models, such as probing harmful outputs, alongside conventional security assessment.
- Red teaming versus evaluation. Red teaming is a form of evaluation that searches adversarially for failures. A fixed regression suite answers a different question by repeating selected cases. Anthropic describes turning red-team findings into repeatable evaluations as a hard problem.
- Myth. Automated attacks make human testers unnecessary. OpenAI describes using manual, automated and external approaches together.
Related terms
Show all 15 related terms
Terms that mention Red teaming
More in Safety, ethics and governance
Sources
- Advancing red teaming with people and AI, OpenAI (accessed 2026-11-23)
- Challenges in red teaming AI systems, Anthropic (accessed 2026-11-23)
Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-24. Wikipedia is never the only source.
Review record
Last verified
Drafted by Claude (original draft) and Codex (automated revisions); sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-24. Last verified .
Change log (6)
- : Independent automated factual/example review completed. Cached US query estimate aligned to receipt; no traffic promise. Final technical gate recorded separately; publication disabled. Relevant topic demand only; definition intent unconfirmed.
- : Corrected specific source-led trust review findings; affected-claim independent re-review pending.
- : First version.
- : Verifier pass: attributed to OpenAI only; labelled pen-testing contrast as general use.
- : Trust and evaluation scope corrections; independent exact-version review pending.
- : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.