Red teaming
Red teaming is adversarial testing: you attack your own system the way a malicious user would, to find failures before others do.
For AI it means jailbreak and injection attempts, data-extraction probes and abuse of tools. Good findings become permanent regression cases in an automated suite that runs in CI.
A one-off exercise finds today’s holes. A suite of attacks that runs on every change protects against regressions. Score outcomes, not wording: did any unauthorised action happen, did any secret leak, is the tool log clean.
Common mistake. Judging a red-team run by whether the model refused. A refusal in words can still be followed by a harmful tool call.
In practice. Define harm in terms of tool calls and data access, replay known attacks against every release, and add new ones from each incident.