Safety, Security & Responsible AI·Question 37 of 70Advanced

Design a red-teaming programme for an LLM product: manual vs automated, pre-launch vs continuous, and how findings feed back.

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Red teaming is adversarial testing to find harms before attackers/users do. A credible programme has four parts.

Full worked answer with diagram

Red teaming is adversarial testing to find harms before attackers/users do. A credible programme has four parts.

Scope from harms, not features. Enumerate the worst-case outcomes for this product (data exfil, unsafe advice, brand harm, biased decisions, cost abuse) using OWASP LLM Top 10 and your threat model as a checklist. Untargeted probing wastes effort.

Manual red teaming. Humans - security engineers plus domain experts (a medical expert for a health product, a lawyer for legal) plus creative adversarial thinkers - probe for jailbreaks, injections, and domain-specific failure modes. Humans find the novel, contextual, socially-engineered attacks automation misses. Diverse backgrounds matter because harms are population-specific.

Automated red teaming. Tooling for scale and regression: adversarial scanners (garak, Microsoft PyRIT), attacker-LLM loops (one model generates attacks against the target), and known-attack corpora (GCG suffixes, many-shot templates, jailbreak datasets). Cheap, repeatable, catches regressions, but only finds variations of known attacks - it complements, doesn't replace, humans.

Timing. Pre-launch is a gate: don't ship until the critical categories are exercised and the criticals are fixed. But models and apps drift - a provider model update, a new tool, a prompt tweak, a new jailbreak-of-the-week can all reopen holes - so red teaming is continuous: re-run the automated suite in CI on every change, do periodic fresh manual campaigns, and monitor production traffic for novel attacks (which become new test cases).

Feedback loop (the part that makes it worth anything). Every confirmed finding becomes: (1) a regression eval in the automated suite so it can't silently return, (2) a fix (guardrail, prompt, architecture, or provider escalation), and (3) a tracked metric - attack success rate by category over time. A red-team finding that isn't turned into a permanent test is a finding you'll rediscover in an incident.

Worth sketching. The arrow back into the automated suite is the part programmes skip, and drawing the loop closed is the whole signal here.

flowchart LR
    A["Harms list from the threat model"] --> B["Manual campaigns<br/>security plus domain experts"]
    A --> C["Automated suite in CI<br/>garak, PyRIT, known corpora"]
    D["Production traffic"] --> E["Novel attack observed"]
    B --> F["Confirmed finding"]
    C --> F
    E --> F
    F --> G["Fix: guardrail, scope or architecture"]
    F --> H["Regression eval"]
    H --> C

What a good answer covers

  • Red teaming is adversarial testing to find harms before attackers/users do
  • A credible programme has four parts
  • Enumerate the worst-case outcomes for this product (data exfil, unsafe advice, brand harm, biased…
  • Humans - security engineers plus domain experts (a medical expert for a health product, a lawyer for…
  • Humans find the novel, contextual, socially-engineered attacks automation misses

Key terms: Scope from harms, not features · Manual red teaming · Automated red teaming · garak · PyRIT · Timing · models and apps drift · continuous · regression eval

Interviewer follow-ups to expect

  1. Why isn't automated red teaming enough on its own?

  2. What triggers a re-test after launch?

  3. How exactly does a finding become a regression eval, and why is that step non-negotiable?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep