Silverfort's new paper (arXiv:2602.16520) rewrites jailbreak defense as a procedure rather than a classification problem. Here's what production teams need to know.


Jailbreak prompts have become the primary attack surface for LLMs in production. Direct instruction hijacking, role-play escalation, encoding obfuscation, and split payloads all exploit the same weakness: single-pass classifiers miss what a multi-stage analysis pipeline catches.

Doron Shavit at Silverfort just published a paper that formalizes this. It is called RLM-JB, and it treats jailbreak detection as a bounded analysis program run by a root model that orchestrates de-obfuscation, chunking, parallel screening, and cross-chunk evidence aggregation.

The Core Problem

Standard jailbreak defenses work like a spam filter: they look at the whole message and say yes or no. That approach breaks down in tool-augmented agents because attacks are designed to hide in long contexts, camouflage their intent across multiple segments, and split the payload so no single segment looks harmful.

AutoDAN-style attacks illustrate the gap clearly. A preamble in one chunk says "ignore your instructions." A payload in a different chunk specifies the harmful action. Neither piece alone triggers a detector. Taken together, they compromise the agent.

How RLM-JB Works

The framework has four stages.

Normalization and de-obfuscation. The root model canonicalizes the input (normalizing whitespace, stripping formatting tricks) and detects high-signal encoding patterns like Base64-like spans. When it finds one, it decodes the string and carries both the original and decoded versions forward.

Coverage-guaranteeing chunking. Long inputs get split into overlapping segments. Overlap is intentional: it prevents attackers from hiding payloads in boundary zones that might fall between chunks. Each chunk gets screened independently.

Parallel chunk screening. Worker models evaluate each chunk and return a structured verdict (malicious/benign), a confidence score, and extracted signals like instruction hijacking cues or tool-manipulation patterns. Parallelization keeps latency reasonable.

Cross-chunk evidence aggregation. The root model reviews all chunk-level verdicts and links complementary indicators across segments. If one chunk has an "ignore instructions" preamble and another has an actionable payload, the aggregator connects them into a single attack hypothesis and produces a conservative final verdict with a concise explanation.

The Numbers

Evaluated on 400 AutoDAN-style adversarial test cases plus 200 benign prompts per screening backend.

Backend Recall (ASR) Precision FPR F1
DeepSeek-V3.2 92.5% 100.00% 0.0% 96.10%
GPT-4o 97.0% 99.74% 0.5% 98.35%
GPT-5.2 98.0% 98.99% 2.0% 98.49%

Recall climbs as the screening model gets stronger, but so does the false positive rate. GPT-5.2 catches the most attacks but also blocks the most benign prompts. GPT-4o lands at a practical balance point.

The comparison that matters most: baseline GPT-5.2 without the RLM-JB procedure achieves 59.57% recall and 69.71% F1. With RLM-JB, GPT-5.2 hits 98.00% recall and 98.49% F1. That is a 38.43 percentage point gain in recall and a +41.3% relative improvement in F1. The procedure is doing the heavy lifting.

Against other published defenses on the same AutoDAN corpus: Granite Guardian 3.0 posts F1 of 0.821 and Llama-Guard 2 posts F1 of 0.758. RLM-JB's 98.49% is an absolute 16-point lead over Granite Guardian and a 23-point lead over Llama-Guard.

On the InjectPrompt corpus of real-world injection payloads and their permutations, RLM-JB achieved 100% accuracy with zero false positives. That suggests the framework generalizes beyond AutoDAN-style transformations.

Why This Matters for Production Teams

Single-pass defenses are broken for tool-augmented agents. Multi-turn, stateful environments create exactly the conditions that bypass one-shot classifiers: long contexts, split payloads, and adaptive attacks optimized against static filters.

The architecture separates concerns cleanly. The root model handles orchestration and final verdict. Worker models handle parallel screening. This means you can swap screening backends based on your sensitivity/specificity requirements without rearchitecting the pipeline.

Auditable artifacts matter for incident response. Every chunk gets a verdict. Every decision has a supporting explanation. When a jailbreak attempt lands in your logs, you can trace exactly which segment triggered the detection and why.

Concept-based early filters are complementary. Lightweight triage (concept activation, pattern matching) can handle obvious cases fast. RLM-JB gets reserved for high-risk inputs that pass the first gate. This keeps latency down while preserving recall.

Gaps to Watch

The paper's own authors note the evaluation is limited to AutoDAN-style benchmarks, not a fully adaptive adversary that optimizes directly against the detector. Production teams should monitor this boundary.

Code execution is a hard requirement for the screening backend. Not all LLMs support it. Llama-4-Maverick was excluded from the quantitative comparison for this reason.

The FPR estimate uses synthetic benign prompts rather than real-world user traffic. Actual over-blocking rates in a production deployment will differ. Treat the FPR as a lower bound indicator, not a final number.

What to Implement

For teams building tool-augmented agents:

  1. Add a staging detector before the agent processes any external content. Route retrieved messages, document chunks, and third-party tool outputs through a screening layer.
  1. Chunk long inputs and screen segments in parallel. Do not rely on a single global pass. Overlapping chunks help.
  1. Normalize and de-obfuscate before screening. Base64 and other encoding tricks should be decoded and checked alongside the original.
  1. Aggregate evidence conservatively. If multiple segments contribute complementary attack signals, flag the whole sequence. Do not require every segment to be independently malicious.
  1. Expose the evidence chain. The detection verdict should list which chunks contributed, what signals were extracted, and what the final confidence score is. This matters for tuning and for incident response.

The paper is short (5 pages plus appendix) and well-structured. The reference list covers the main benchmarks and defense frameworks worth knowing if you are working in this space.

Paper: Recursive Language Models for Jailbreak Detection: A Procedural Defense for Tool-Augmented Agents (arXiv:2602.16520)

Author: Doron Shavit, Silverfort

Subjects: Cryptography and Security, Artificial Intelligence