Esta nota todavía no está traducida, así que se muestra la fuente en inglés.
Red teaming AI systems
Mechanism: attacker goal → reproducible trace → severity → regression
impact, exploitability = 4, 3
print("priority", impact * exploitability)
Run with python3; expected output is priority 12. Test the assembled system—identity, data, retrieval, tools, UI, and operations—record state changes, fix the earliest control gap, then retain the attack as a regression fixture.
Sources
- MITRE ATLAS — adversarial-ML tactics and techniques.
- OWASP LLM Top 10 — application threat taxonomy.
- NIST AI RMF — risk and testing framework.
Red teaming is adversarial evaluation. The goal is not to prove the system is safe; it is to find plausible ways it fails before users or attackers do.
What to attack
- Direct jailbreaks and policy bypass attempts.
- Indirect prompt injection through retrieved documents, webpages, emails, and tool output.
- Data leakage through retrieval, logs, memory, and citations.
- Tool misuse: wrong destination, invalid arguments, excessive permissions.
- Insecure output handling: generated HTML, SQL, code, commands, links.
- Cost and loop attacks that trigger unbounded consumption.
- Social engineering through model-generated persuasion.
Red-team workflow
- Define assets, attacker goals, and allowed test scope.
- Build attack cases for each trust boundary.
- Run tests against the full product, not only the base model.
- Capture prompts, retrieved context, tool calls, outputs, and guardrail decisions.
- Triage failures by impact and exploitability.
- Add fixed failures to regression tests.
Measure outcomes
| Metric | Meaning |
|---|---|
| Attack success rate | percent of cases that achieve the adversary goal |
| Guardrail catch rate | percent blocked or routed safely |
| False positive rate | legitimate requests blocked |
| Time to detection | whether monitoring catches the issue |
| Regression rate | whether fixed attacks come back later |
Pitfall
Red teams that only write scary prompts miss product failures. Include retrieval, tools, permissions, UI, logs, and human handoffs in the exercise.
Connects to: regression testing · threat modeling · agent failure modes