Security
Red teaming
Attack your own system on purpose, systematically, before someone else does.
What it is and why it exists
Manual and automated adversarial testing: injection and jailbreak suites, domain-specific misuse cases, data-leak probes, tool-misuse attempts. Findings become regression tests.
Quick prototype
Try “ignore previous instructions” once.
In production, at scale
Threat model first, automated attack suites in CI (promptfoo, garak, PyRIT), periodic human red-team exercises, attack success rate tracked per release, and findings turned into eval cases.
Vendors and tools
| promptfoo red teaming | Automated attack generation |
|---|---|
| garak | LLM vulnerability scanner |
| Microsoft PyRIT | Red-teaming toolkit |
On AWS: Bedrock Evaluations and Guardrails testing; AWS security reviews for GenAI workloads.
How it fails
- One-off exercise never repeated after the next prompt change
What the interviewer asks next
What does a red-team finding turn into?
A reproducible test case in the eval suite, a control or design change, and a metric (attack success rate) that must not regress.