Skip to content
AI / LLM Write-up Intermediate

Exploiting Partial Compliance: The Redact-and-Recover Jailbreak

The Redact & Recover jailbreak exploits a model's tendency to comply with requests to redact sensitive content and then restore it in a separate step, bypassing safety filters. An attacker could obtain detailed harmful instructions, such as ricin extraction, from several frontier language models.

generalanalysis.com

Published on generalanalysis.com

Red-teaming serves as a critical feedback mechanism in the adversarial robustness pipeline. By generating novel attack vectors, adversarial testing guides iterative improvements in safety classifiers and RLHF training.

Rez Havaei, on generalanalysis.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the safety filters evaluate each request in isolation and fail to recognise that the combination of redaction and recovery reconstructs harmful content.

Impact

The jailbreak could cause several frontier language models to produce detailed harmful content, with attack success rates up to 98.5% on some benchmarks, though a simple system instruction reduced success to 0% in testing.

What the attacker needed

Access to a vulnerable LLM; ability to send multiple prompts

How it was found

  1. Ask the model to generate a response to a harmful request but with policy-violating parts replaced by placeholders like [REDACTED].
  2. If the model refuses, retry with a different prompt up to a fixed number of times.
  3. Take the redacted response and ask the model to restore the missing tokens in a new session.
  4. If the model refuses, retry the recovery prompt up to a fixed number of times.
  5. For the iterative variant, use a scorer to evaluate the recovered content and refine prompts over multiple rounds until the score exceeds a threshold.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Large language models are trained to refuse harmful requests, but they can be tricked by splitting the request into two seemingly harmless parts. First, the model is asked to produce an answer with sensitive parts replaced by placeholders like [REDACTED]. Then, in a new request, it is asked to fill in those placeholders, which it does because it sees the task as simple text repair. This two-step process bypasses the safety checks that would normally block the harmful content.

What is AI / LLM?

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.

Similar reports

View all

Same bug class and techniques, clearest first.

AI and LLM vulnerabilities

The lesson behind this report.

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.