A USENIX Security 2025 paper claimed 0% attack success rate for its jailbreak defense. A new paper from Worcester Polytechnic Institute just broke that defense at 46.2% ASR, then rebuilt it with a better architecture that hits 0.99 AUROC and survives adaptive attacks at only 7% ASR.

The paper is "Revisiting JBShield: Breaking and Rebuilding Representation-Level Jailbreak Defenses" by Kemal Derya and Berk Sunar (arXiv:2605.03095, May 2026). It is the most methodical jailbreak defense evaluation published this year, and its conclusions are uncomfortable for anyone relying on representation-level defenses.

Here is what happened, why it matters, and what the replacement looks like.

What JBShield Claims

JBShield (Zhang et al., USENIX Security 2025) detects jailbreak attacks using two concept signals at a single layer of the model. A "toxic concept" score and a "jailbreak concept" score are computed via cosine similarity between hidden-state representations and calibrated concept directions. The defense fires only when both scores exceed their respective thresholds. It is an AND-gate: toxic AND jailbreak must both be high.

In JBShield's original evaluation, this AND-gate achieved 0% ASR against GCG-based attacks on Llama-3-8B. Zero percent. The paper presented this as strong evidence that representation-level concept detection is a reliable defense.

The Worcester Polytechnic team disagreed. Not with the 0% result itself, but with the threat model that produced it.

How JB-GCG Breaks It

The attack, JB-GCG, modifies the standard GCG objective with two terms:

  1. Refusal-direction suppression. The original GCG attack optimizes adversarial suffixes to make the model produce harmful output. JB-GCG adds a cosine-similarity term that pushes the adversarial suffix's hidden-state representation away from the refusal direction identified by Arditi et al. (2024). This suppresses the model's natural refusal mechanism.
  1. Toxic-concept regularization. JB-GCG simultaneously drives the toxic concept score below JBShield's detection threshold. Since JBShield requires both toxic AND jailbreak concepts to be elevated, pushing the toxic concept below threshold breaks the AND-gate. The jailbreak concept remains active, but the defense never triggers because one of its two required signals is absent.

The results across five JBShield configurations on Llama-3-8B:

  • Average ASR: 46.2%
  • Peak ASR: 53.4% (against JBShield-D)
  • Against JBShield-M (the full pipeline): up to 30.7%

The attack persists across multiple JBShield recalibrations (N=10 to N=50). This is not a calibration issue. The vulnerability is structural.

Why the AND-Gate Fails

The AND-gate is elegant in theory and fragile in practice. It assumes that jailbreak inputs will elevate both concept scores simultaneously. But an adaptive attacker who knows the defense structure can optimize for exactly one score to drop below threshold while the other stays high.

JBShield inspects representations at a single frozen layer. This is a critical limitation. When the toxic concept is suppressed at that layer, the defense has no other vantage point. There is no redundancy, no cross-layer consistency check, no mechanism to verify whether the representation at layer N is consistent with the representation at layers N-1 or N+1.

The Worcester Polytechnic team discovered something more fundamental in their analysis. Jailbreak representations occupy a distinctive region in refusal-direction fingerprint space that neither harmless nor harmful prompts inhabit. This "interstitial zone" is invisible to a single-layer detector because it only looks at one slice of the model's computation. A multi-layer view reveals that adversarial prompts produce layer-inconsistent refusal-direction profiles. Harmful prompts show consistent refusal-direction alignment across layers. Jailbreak prompts show alignment at some layers and suppression at others. The pattern is a fingerprint of the attack.

RTV: The Replacement Architecture

The paper proposes Representation Trajectory Verification (RTV). The name is deliberate. "Trajectory" captures the key architectural difference: RTV does not look at a single layer. It traces the refusal direction across multiple layers and multiple token positions, building a multi-dimensional fingerprint of how the model processes an input through its full forward pass.

RTV works in three steps:

  1. Compute refusal-direction cosine similarity at each layer and token position. For a given input, RTV measures how aligned the hidden-state representations are with the refusal direction at every layer, not just one. This produces a vector of cosine similarities, not a single scalar.
  1. Construct a fingerprint from these similarities. The fingerprint is a 15-dimensional vector capturing the refusal-direction profile across the model's computation path. Harmless inputs produce one fingerprint shape. Harmful inputs produce another. Jailbreak inputs produce a third shape that is distinct from both.
  1. Apply Mahalanobis distance as the outlier score. Rather than thresholding a single score, RTV computes the Mahalanobis distance between the input's fingerprint and the distribution of known harmless fingerprints. This is a well-established technique from out-of-distribution detection. Inputs that are far from the harmless distribution are flagged.

The calibration data requirement is minimal. RTV needs only harmless and harmful prompts. No jailbreak examples are required. This is a practical advantage over methods that need adversarial examples for training.

The results:

  • AUROC against JB-GCG: 0.99
  • Best adaptive attack against RTV: 7% ASR at 13x computational cost
  • The 13x cost matters. An attacker who spends 13 times the compute of the baseline attack still only achieves a 7% success rate. The evasion is bounded by a fundamental tension: the attacker must simultaneously suppress the refusal direction (to jailbreak the model) and preserve the fingerprint of harmless inputs (to evade detection). These objectives conflict.

Why Multi-Layer Beats Single-Layer

The paper's central claim is precise: single-layer concept similarity is insufficient for jailbreak detection. Multi-layer representation consistency is more reliable.

The reasoning is straightforward. A single-layer detector sees one moment in the model's computation. An adaptive attacker can optimize the representation at that specific layer. But optimizing representations across multiple layers simultaneously is harder because the model's computation at each layer depends on the layers before it. Changing the representation at layer 20 without producing detectable inconsistencies at layers 18, 19, 21, and 22 requires solving a constrained optimization problem that is fundamentally more difficult than attacking a single checkpoint.

Prior Mahalanobis-based safety detectors (Hua et al., 2025; Feng et al., 2026; Li et al., 2026) operated on raw hidden states at a single layer and token position. RTV differs in two ways: it uses refusal-direction cosine similarities rather than raw activations, and it aggregates across multiple layers and positions rather than collapsing to a single point. This is not just adding more dimensions. The refusal-direction fingerprint captures a mechanistically grounded signal (the same signal that GCG targets for suppression) and distributes it across the model's computation path.

Bailey et al. (2026) showed that Mahalanobis scoring over raw LLM activations can be bypassed by obfuscated activation attacks. RTV does not claim immunity to this class. The paper explicitly evaluates under full white-box knowledge of the defense. The 7% ASR at 13x cost is the result of that evaluation. The robustness does not come from the dimensionality of the fingerprint. It comes from the structural tension between refusing and evading, which is a property of the attack task, not the detector.

Practical Implications

For teams deploying representation-level defenses, the paper carries three direct lessons:

Single-layer detection is a known-broken architecture. JBShield's 0% ASR was an artifact of the threat model, not a property of the defense. Any defense that inspects a single layer or relies on a single score can be targeted by an adaptive attacker who optimizes for that checkpoint. Audit your defenses for single-point-of-failure structures.

Multi-layer fingerprints raise the cost of evasion. RTV's 0.99 AUROC and 7% adaptive ASR are strong numbers, but the real metric is the cost ratio. If an attacker must spend 13x more compute for a 7% success rate, the defense is raising the cost of attacks beyond the point where most adversaries will bother. This is the correct framing for defense evaluation: not "can this be broken?" but "how much does it cost to break?"

Calibration with harmless and harmful data is sufficient. RTV does not require adversarial examples for calibration. If you can collect normal harmless inputs and known harmful inputs, you can deploy RTV. This lowers the barrier to adoption compared to methods that need specific attack samples.

The Bigger Picture

JBShield was a USENIX Security paper with a 0% ASR claim. JB-GCG broke it to 46.2%. RTV rebuilt it to 0.99 AUROC with 7% adaptive ASR.

The cycle is instructive. Every time a defense claims 0% ASR, an adaptive evaluation reveals structural weaknesses. RTV does not claim 0% ASR. It claims 0.99 AUROC and 7% adaptive ASR at 13x cost. Those are honest numbers backed by white-box evaluation.

The field is learning to evaluate defenses under realistic threat models. That is progress. The alternative, claiming invulnerability under constrained evaluation, is how we got 0% ASR claims that break at 46%.


Citations

  • Derya, K. & Sunar, B. "Revisiting JBShield: Breaking and Rebuilding Representation-Level Jailbreak Defenses." arXiv:2605.03095, May 2026. https://arxiv.org/abs/2605.03095
  • Zhang et al. "JBShield: Defending Large Language Models from Jailbreak Attacks through Activated Concept Analysis and Manipulation." USENIX Security 2025. https://arxiv.org/abs/2502.07557
  • Arditi, A. et al. "Refusal in LLMs is mediated by a single direction." 2024. https://arxiv.org/abs/2406.19382
  • Bailey, L. et al. "Obfuscated activation attacks bypass Mahalanobis-based OOD detection." 2026.
  • Hua, W. et al. "Mahalanobis distance for LLM safety detection." 2025.
  • NISPLab/JBShield GitHub repository. https://github.com/NISPLab/JBShield (220 stars)

Suggested Title

JBShield Broken at 46%: Why Single-Layer Jailbreak Defenses Fail

Word Count

~1,350

Fact-Check Notes

  • 46.2% average ASR and 53.4% peak ASR confirmed from arXiv:2605.03095 abstract and Section 1
  • 30.7% ASR against JBShield-M confirmed from the paper
  • 0.99 AUROC for RTV confirmed from the paper
  • 7% adaptive ASR at 13x computational cost confirmed from Section 7.4
  • JBShield's original 0% ASR claim confirmed from Zhang et al. (USENIX Security 2025)
  • The code for RTV is not yet publicly available ("code will be available after the reviews")
  • Bailey et al. (2026) finding on Mahalanobis bypass confirmed as prior work cited in the paper