SpyBara
Go Premium

guides/red-teaming.md 2026-07-27 17:02 UTC to 2026-07-28 23:01 UTC

3 added, 1 removed.

2026
Fri 31 05:58 Thu 30 23:58 Wed 29 22:58 Tue 28 23:01 Mon 27 17:02 Sat 25 05:59 Fri 24 19:01 Thu 23 03:02 Wed 22 20:02 Tue 21 15:00 Mon 20 21:59 Sat 18 22:00 Fri 17 19:58 Thu 16 17:00 Wed 15 16:58 Tue 14 21:58 Mon 13 21:58 Sat 11 07:01 Fri 10 23:02 Thu 9 17:03 Wed 8 22:02 Mon 6 22:58 Sat 4 16:59

Red teaming

For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.

Red teaming uses adversarial test cases to help uncover unsafe, insecure, or policy-violating behavior before deployment. It complements evals by focusing on misuse cases, failure modes, and high-risk interactions that ordinary quality testing may not expose.

Important: Only submit to OpenAI Red Teaming code or other assets that you own or are expressly authorized to test. Do not use OpenAI Red Teaming to analyze or report vulnerabilities in open-source or any third-party code without OpenAI's express written permission.

Use Promptfoo for open-source red teaming

Promptfoo is an open-source framework for evaluating prompts, agents, and AI applications. Its red teaming workflows help you generate adversarial test cases, inspect target behavior, and use the results to improve your system.

For the broader open-source methodology, see Promptfoo’s LLM red teaming guide.

Enterprise availability

OpenAI Red Teaming is available for enterprise customers that need a managed offering for red teaming AI applications and agents. Enterprise workflows can support broader coordination, review, and reporting needs than a standalone local workflow.

Red teaming and evals

Use evals to measure whether an AI system behaves as intended. Use red teaming to probe how that system behaves under adversarial, abusive, or unexpected inputs. Mature evaluation programs often use both.