2084AI Security Observatory

NewspeakAI Security2084-A-0016

AI red teaming: attacking your own AI before others do

AI red teaming is structured adversarial testing of an AI model or system to find harmful, insecure or wrong behaviour before release and after it. The EU AI Act now requires a form of it for the most capable models.

AI red teaming (红队测试) is structured adversarial testing of an AI model or system, carried out to find flaws before attackers or ordinary users do. NIST defines it as "a structured testing exercise used to probe an AI system to find flaws and vulnerabilities such as inaccurate, harmful, or discriminatory outputs", usually in a controlled environment and in collaboration with the developers (NIST AI 600-1). The name comes from traditional security, where a red team plays the attacker; for AI the scope is wider, covering both security failures and harmful or false output.

How it works

Red teamers try to make a system misbehave: bypass its safeguards with jailbreaks, hijack it through prompt injection, extract data, or get it to produce dangerous or misleading content. NIST's profile lists targets including abuse to attack other systems, prompt injection and classic machine-learning attacks such as data poisoning and model extraction. It also notes that the quality of results depends on the team, and that general-public, expert and mixed teams suit different purposes.

Microsoft's AI Red Team, drawing on work across more than 100 generative AI products, published eight lessons in January 2025. Among them: understand what the system can do and where it is deployed; attacking a system does not require computing gradients, so attackers need no access to model internals; red teaming is not the same as safety benchmarking; automation widens coverage but humans remain essential; and securing AI is an ongoing effort with no finish line (Microsoft, arXiv).

Documented examples

One of the best-known public exercises took place at the DEF CON 31 hacker conference in 2023. According to organiser AI Village, about 2,200 attendees tested models from providers including Anthropic, Google, Hugging Face, NVIDIA, OpenAI and Stability, with support from the White House Office of Science and Technology Policy, and findings were to be disclosed in a CVE-like process six months later (AI Village).

Red teaming has also moved into law. Article 55 of the EU AI Act requires providers of general-purpose AI models with systemic risk to evaluate them with standardised, state-of-the-art protocols and tools, which includes carrying out and documenting adversarial testing to identify and mitigate systemic risks (European Commission).

How to use it

For organisations deploying AI, OWASP's GenAI Red Teaming Guide, published in January 2025, suggests covering four areas: model evaluation, implementation testing, infrastructure assessment and runtime behaviour (OWASP). In practice:

  • Scope the exercise to the system's real capabilities and context of use.
  • Test the whole application, including tools, data access and integrations, not only the model.
  • Combine automated tooling with people who know security and the domain.
  • Fix what you find, retest, and repeat after every significant change.

Mitigation

Before deploying an AI system, scope red teaming to what the system can do and where it will be used, and test the whole application, including its tools, data access and integrations, not just the model. Combine automated attack tooling with people who have security and domain expertise. Record findings, fix them, retest, and repeat after every significant model, prompt or integration change. Do not treat a passed benchmark as a substitute.

References

  1. United StatesNational Institute of Standards and Technology · Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile (NIST AI 600-1) Official & standards · Accessed 2026-11-21
  2. Microsoft AI Red Team (Bullwinkel et al.) · Lessons From Red Teaming 100 Generative AI Products (arXiv:2501.07238) AI security source · Accessed 2026-11-21
  3. AI Village · Generative Red Team Recap AI security source · Accessed 2026-11-21
  4. European UnionEuropean Commission · AI Act Service Desk: Article 55, Obligations of providers of general-purpose AI models with systemic risk Official & standards · Accessed 2026-11-21
  5. OWASP Gen AI Security Project · GenAI Red Teaming Guide Official & standards · Accessed 2026-11-21

Disclosure

Written by Anthropic's Claude. Anthropic develops AI models, red-teams them, and was one of the model providers in the DEF CON 31 exercise described here. The entry does not assess any individual provider's testing.