In this article
  1. Before you start
  2. Why interviewers ask this
  3. Red-teaming an LLM feature from first principles
  4. The Staff-level answer
  5. The rubric
  6. Three variants of this question
  7. Common mistakes
  8. Follow-up questions
  9. Sources

Before you start

This page is one step of the LLM evaluation learning path.

Why interviewers ask this

Red-teaming questions separate candidates who test a model from candidates who test a product. The question is reported by candidates in loops for LLM feature and evaluation roles. Microsoft's team reports that, as of October 2024, it had run over 80 operations covering more than 100 products (Bullwinkel et al., 2025), so the practice is routine in industry.

A weak answer lists jailbreak prompts. A strong answer starts from harms, treats the feature as a system with retrieval, tools and filters, and says how success is measured. A Staff-level answer adds the limits. Red-teaming finds risk; it does not prove safety. Researchers also report no consensus on its scope, structure or assessment criteria (Feffer et al., 2024), so an interviewer will credit a candidate who states their own definitions.

Red-teaming an LLM feature from first principles

Red-teaming
Red-teaming is a structured, adversarial test in which people emulate real attackers or ordinary users against a whole system to find failures before release, then record each failure with its cause and impact so the team that builds the product can fix it and test again.
Attack success rate
The attack success rate (ASR) is the number of attack attempts that produce the harmful outcome divided by the number of attempts, a fraction between zero and one, measured on one fixed set of attacks so that results before and after a fix can be compared directly.
Break-fix cycle
A break-fix cycle is a repeated loop of red-teaming and mitigation in which each round attacks the system, the product team fixes what broke, and the same attacks run again until the system resists a wide range of attacks. Because a fix can create a new weakness, the loop repeats rather than happening once.

In plain words

Think of a shop owner who pays a locksmith to break in before opening day. The locksmith tries the windows and the back alley, not only the front lock. The locksmith also notices how a confused customer could get locked in. Both matter: a determined burglar and an ordinary visitor who wanders into the wrong room can each cause damage, so the test covers bad intent and honest accidents. The analogy breaks in one place. A lock either opens or it does not. A language model may refuse an attack nine times and comply on the tenth, so you must count outcomes.

Precisely, red-teaming an LLM feature means running realistic attacks against the end-to-end system, counting successes, and retesting fixes.

Step 1: Scope the harms and write a threat model

Red-teaming starts from the harm you fear, not from an attack technique. Bullwinkel et al. (2025) report that starting from downstream impact makes findings more likely to tie to real risk. Ask what the feature can do and where it is used.

A threat model is a short written list of who attacks, how, through which weakness and with what impact. The parts are the system, the actor (a scammer or a typical user), the technique, the weakness and the impact. Impacts are security harms, such as data leaks (see privacy in machine learning (ML) systems), or safety harms, such as bias and unfair outputs.

Example: an assistant that summarizes a user's email. A scammer sends a cross-prompt injection attack (XPIA), which is an email with buried text telling the assistant to ignore its instructions and output a malicious link. The weakness is that the model cannot reliably separate instructions from data; the impact is a malicious link or leaked data. The Open Worldwide Application Security Project (OWASP) Top 10 for LLM Applications is a checklist of categories to cover.

Step 2: Attack the whole system, by hand and with automated attack sets

Attacking the system means testing every input channel and component, not only the model's text box. Bullwinkel et al. (2025) report a vision-language model that refused a direct text request but often complied when the same instruction was overlaid on an image, so each modality needs its own tests. They also report that simple handcrafted attacks often work as well as gradient-based ones, which need model access commercial systems rarely give.

Humans find new categories of harm and judge specialist domains. Automated attack sets add coverage; the paper describes PyRIT (the Python Risk Identification Toolkit), Microsoft's open-source framework with prompt datasets, prompt converters and automated attack strategies. An LLM judge can score outputs, but the paper calls judges less reliable in specialist fields such as medicine, so experts check those.

For scale, Anthropic released 38,961 human red-team attacks and found that models trained with reinforcement learning from human feedback (RLHF) became harder to red-team as they grew, while other model types showed a flat trend (Ganguli et al., 2022).

Step 3: Repeat each attack to estimate how often it works

Repeating each attack many times estimates how often it works, because a language model can fail on one run and pass on the next. Bullwinkel et al. (2025) say testing at scale helps account for non-determinism, and their image case study sent each prompt 50 times.

A worked example, with illustrative counts: 20 attack variants against the email assistant, each run 50 times, is 1,000 model calls.1 One variant succeeds 7 times in 50 (illustrative), so its attack success rate is 0.14, with a Wilson 95% interval of about 0.07 to 0.26.1 A Wilson interval is a range, computed from the counts, in which the true rate plausibly lies.

Rare failures hide. At a true failure rate of 0.02, 50 runs find at least one hit with probability 0.636. It takes 149 runs to reach 0.95.1 Zero hits in 50 runs still leaves an upper bound of about 0.07, so "no hit" is not "safe".1

More runs of one attack make a rare failure likely to showBar chart of the chance of at least one successful attack when the true failure rate is 0.02: 0.1829 at 10 runs, 0.6358 at 50 runs, 0.9507 at 149 runs and 0.9977 at 300 runs.Chance of at least one hit00.511050149300Runs of one attack0.18290.63580.95070.9977Diagram: Interview Clozo, CC BY 4.0 ·interview.clozo.ai/blog/how-do-you-do-red-teaming-on-llm-features.html
A rare failure needs many repeated runs before it is likely to show up even once.CC BY 4.0 — source: How do you do red-teaming on LLM features?
Text description of the diagram
  • At a true failure rate of 0.02, 50 runs find at least one hit with probability 0.636.
  • It takes 149 runs to reach 0.95.

Step 4: Fix, retest on the same attacks and keep them as a regression set

After testing, the product team fixes what broke and the red team reruns the same attacks. In Microsoft's setup the red team only identifies risk, while product teams are resourced to build the mitigations (Bullwinkel et al., 2025). Each fix is retested on the same attack set, and the attacks that once worked become a permanent regression set; see golden sets and regression testing.

Counts decide whether a fix worked. If the variant drops from 7 hits to 1 in 50 (illustrative), the rate falls from 0.14 to 0.02, but the intervals, 0.07 to 0.26 and about 0.004 to 0.105, overlap, so 50 runs are too few to show the improvement clearly. With 200 runs each (28 and 4 hits, illustrative), the intervals are 0.10 to 0.195 and 0.008 to 0.050, and they separate.1

Mitigations can add new risk, which is why the cycle repeats. Plan controls outside the model too: limited permissions and guardrails.

Red-teaming loops through scope, attack, measure and fixFlow of four stages: scope the harms and actors, attack the whole system, repeat each attack and measure how often it works, then fix and retest on the same attack set.Scope harmsstart fromimpactAttack thesystemhand andautomatedRepeat andmeasurerate withintervalFix andretestsame attacksetDiagram: Interview Clozo, CC BY 4.0 ·interview.clozo.ai/blog/how-do-you-do-red-teaming-on-llm-features.html

Red-teaming is a loop: each fix is retested on the same attacks that found the problem.CC BY 4.0 — source: How do you do red-teaming on LLM features?
Step-by-step description
  1. Start from the harm you fear and who could cause it.
  2. Try attacks by hand and with automated sets.
  3. Run each attack many times to get a success rate.
  4. Fix, then rerun the same attacks.
  • Red-teaming starts from the harm you fear, not from an attack technique.
  • Each fix is retested on the same attack set.

Knowing it is half the job. Saying it is the other half.

Interview Clozo is an AI interview copilot for real interview rounds: it hears the question and puts a strong answer on your screen, and you say it in your own words. See the features or how it works.

Start Free Trial →

The Staff-level answer

Interviewer asks

How do you do red-teaming on LLM features?

A strong answer

I treat red-teaming as testing the whole feature, not the model. I list what the feature can do and which harms matter in its context, such as leaking a user's data or sending a malicious link, and I work backwards to attack paths: a booby-trapped email, a crafted document, an ordinary user's odd request. I attack by hand for new ideas and with automated attack sets for coverage.

Because the model is non-deterministic, I run each attack many times and report a success rate with an interval. I rate each finding by impact and measured success rate so the worst get fixed first, and I use attacker-model tools to scale up multi-turn attacks. The product team fixes, I rerun the same attacks, and I say plainly that passing lowers risk without proving safety.

What makes it Staff-level: it names the unit under test, the measurement and the limit, not just a list of attacks. Say the scope first, then the measurement, then the limit.

The rubric

A strong answer scopes by harm and counts repeated runs, and a Staff answer adds the regression set and the honest limit.
DimensionWeak answerStrong answerStaff answer
ScopeTries jailbreak prompts on the modelTests the whole feature: retrieval, tools, filters, every input channelStarts from harms and actors, benign users included
MethodOne tool or one clever promptHand attacks plus automated attack setsHumans pick risks and judge specialist domains; automation, including attacker-model tools, widens coverage
Measurement"It worked once"Attack success rate over repeated runsReports an interval and sizes runs for rare failures
FixingLists findings and stopsProduct team fixes; red team retestsRanks findings by impact and success rate; keeps attacks as a regression set; repeats the break-fix cycle
LimitsClaims the feature is now safeSays residual risk remainsNotes disagreement on scope and does not treat red-teaming as a panacea

Three variants of this question

What is red teaming for an LLM application, and how do you structure it before launch?

Define it as realistic adversarial testing of the end-to-end application, then give the four steps: scope harms and write a threat model, attack by hand and with automation, repeat and measure, fix and retest. Agree before testing who owns each fix.

How would you red-team a feature that uses retrieval and tools?

Treat every retrieved document and tool result as an attacker-controlled input channel and test each one, since text the model reads can carry instructions. Check what the tools can do if the model is steered, because the impact depends on the permissions behind them.

How would you red-team with only API access to a hosted model?

Use black-box attacks: handcrafted prompts, multi-turn conversations and converted encodings, which need no model internals. Gradient-based methods need model access that commercial systems rarely give, and simple attacks often work as well.

Common mistakes

  • "I would test the model with a list of jailbreak prompts." (wrong) That ignores retrieval, tools, filters and databases. (right) "I test the end-to-end feature and every input channel."
  • "The attack worked once, so I have a finding; it failed once, so it is safe." (wrong) One run says nothing about likelihood. (right) "I run each attack many times and report a rate with an interval."
  • "Only malicious users matter." (wrong) Benign users can trigger harm by accident. (right) "I model both adversarial and ordinary actors."
  • "The automated scanner passed, so we are done." (wrong) Automation extends coverage but does not replace human judgment. (right) "Humans prioritize risks and review specialist domains."
  • "We fixed it, so the risk is gone." (wrong) Mitigations reduce risk and can add new weaknesses. (right) "I retest on the same attacks and keep them as regression tests."

Follow-up questions

How is red-teaming different from running a safety benchmark?

A benchmark compares models on a fixed dataset; red-teaming is human-heavy, probes context-specific risks and can find new categories of harm. Bullwinkel et al. (2025) call them distinct but complementary, so use both.

How do you rate the severity of a finding and decide what to fix first?

Rate each finding by the impact of the harm, how easily an attacker or ordinary user reaches it and the measured attack success rate, then fix high-impact, high-rate findings first. Repeated runs make a finding reproducible, which makes it easier to rate than one odd output.

How do you know when to stop red-teaming?

Agree exit criteria before testing, such as an attack success rate below a threshold on the regression set for every high-impact harm. No result proves completeness, so continue to monitor after launch.

Does passing a red team mean the feature is safe?

No. The goal is to raise the cost of attack, and a single round can miss things. Feffer et al. (2024) argue that treating red-teaming "as a panacea for every possible risk" would "verge on security theater" (Feffer et al., 2024).

What is a multi-turn attack, and how do you automate red-teaming with an attacker model?

A multi-turn attack spreads a harmful request over several conversation turns that each look harmless, so a check on single messages can miss it. Attacker-model tools, such as the automated attack strategies in PyRIT, use one model to write and adapt attacks against another, which scales testing, while humans still choose the harms and judge specialist cases.

Does NIST require red-teaming?

No. The National Institute of Standards and Technology (NIST) generative AI (GAI) profile (NIST AI 600-1, July 2024) lists action 5.1-005: "Conduct adversarial role-playing exercises, GAI red-teaming, or chaos testing to identify anomalous or unforeseen failure modes" (NIST, 2024). The profile is a companion to the AI Risk Management Framework, which NIST describes as voluntary, so it suggests red-teaming but does not require it.

Key takeaways
  • Red-teaming an LLM feature tests the end-to-end system, not only the model.
  • Start from the harm you fear and the actors, benign users included, then work back to attacks.
  • Run each attack many times; report an attack success rate with an interval.
  • Fix, retest on the same attacks and keep them as a regression set.
  • Passing lowers risk; it does not prove safety.

Sources

  1. Lessons From Red Teaming 100 Generative AI Products (arXiv 2501.07238) — arXiv (Bullwinkel et al., Microsoft), 13 Jan 2025
  2. Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learned (arXiv 2209.07858) — arXiv (Ganguli et al., Anthropic), 1 Nov 2022
  3. Artificial Intelligence Risk Management Framework: Generative AI Profile (NIST AI 600-1) — NIST, 26 Jul 2024
  4. OWASP Top 10 for LLM Applications 2025 — OWASP GenAI Security Project, 1 Nov 2024
  5. Red-Teaming for Generative AI: Silver Bullet or Security Theater? (arXiv 2401.15897) — arXiv (Feffer et al.), 29 Jan 2024