How would you run red-teaming before launching an LLM feature, and how do jailbreaks differ from prompt injection?
Answer
Model answer, written in a candidate's voice
In short
- Jailbreak = user coaxes the model past its own policies; injection = third-party content hijacks the application’s instructions and privileges
- Product-specific threat model: data leakage, harmful advice, brand risk; actors include malicious users, external content sources, insiders, automated attackers
- Manual expert red team + automated attack generation + known attack libraries/benchmarks; multilingual, encoded, multi-turn attacks
- Findings logged by category and severity; root-cause fixes with guardrails, access controls, monitoring
- Regression suite re-run after every change; attack-success rate tracked over time and before/after fixes
In full
I’d start by separating the two failure modes: a jailbreak is a user coaxing the model past its own safety policies, while prompt injection is third-party content—web pages, emails, docs, tool outputs—hijacking the application’s instructions and privileges. Then I’d write a product-specific threat model for the feature—data leakage, harmful advice, brand/reputation risk, and abuse—and name actors such as malicious users, external content sources, insiders, and automated attackers. Testing would combine a manual expert red team with automated attack generation and known attack libraries/benchmarks, covering multilingual, encoded, and multi-turn attacks rather than only single-turn English prompts. Findings would be logged by category and severity, fixed at the root cause with guardrails, access controls, and monitoring, and each fix would be added to a regression suite re-run after every model, prompt, tool, or retrieval change. I’d track attack-success rate over time and before/after each fix, and only launch when the residual risk is understood and accepted by product, safety, and legal/compliance owners.
What a strong answer covers
- Jailbreak: user coaxes the model past its own policies; injection: third-party content hijacks the application’s instructions and privileges
- Product-specific threat model (data leakage, harmful advice, brand risk) and actors
- Manual expert red team + automated attack generation + known attack libraries; multilingual, encoded and multi-turn attacks
- Findings by category and severity; fixes; regression suite re-run after every change; attack-success rate tracked
Common mistakes
- One-off exercise with no regression suite
- single-turn English prompts only