mlsanityData to 7 Oct 2026

Jailbreaking Leaves a Trace: Understanding and Detecting Jailbreak Attacks from Internal Representations of Large Language Models

arXiv 2602.11495 ↗First posted 12 Feb 2026cs.CR cs.CLcited by 3

On the map: LLM safety and security → Jailbreaking

Abstract (arXiv)

Jailbreaking large language models (LLMs) has emerged as a critical security challenge with the widespread deployment of conversational AI systems. Adversarial users exploit these models through carefully crafted prompts to elicit restricted or unsafe outputs, a phenomenon commonly referred to as Jailbreaking. Despite numerous proposed defense mechanisms, attackers continue to develop adaptive prompting strategies, and existing models remain vulnerable. This motivates approaches that examine the internal behavior of LLMs rather than relying solely on prompt-level defenses. In this work, we study jailbreaking from both security and interpretability perspectives by analyzing how internal representations differ between jailbreak and benign prompts. We conduct a systematic layer-wise analysis across multiple open-source models, including GPT-J, LLaMA, Mistral, and the state-space model Mamba, and identify consistent latent-space patterns associated with harmful inputs. We then propose a tensor-based latent representation framework that captures structure in hidden activations and enables lightweight jailbreak detection without model fine-tuning or auxiliary LLM-based detectors. We further demonstrate that the latent signals can be used to actively disrupt jailbreak execution at inference time. On an abliterated LLaMA-3.1-8B model, selectively bypassing high-susceptibility layers blocks 78% of jailbreak attempts while preserving benign behavior on 94% of benign prompts. This intervention operates entirely at inference time and introduces minimal overhead, providing a scalable foundation for achieving stronger coverage by incorporating additional attack distributions or more refined susceptibility thresholds. Our results provide evidence that jailbreak behavior is rooted in identifiable internal structures and suggest a complementary, architecture-agnostic direction for improving LLM security.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 24 of its 40 references that are in the map. First posted on arXiv 12 Feb 2026.

Builds on

24 of 40 references.

Closest ancestors · 13

Same direction, newest first

  1. 2025CoCoTen: Detecting Adversarial Inputs to Large Language Models through Latent Space Features of Contextual Co-occurrence Tensors5 Aug
  2. 2025Single-pass Detection of Jailbreaking Input in Large Language Models21 Feb
  3. 2024SelfDefend: LLMs Can Defend Themselves against Jailbreaking in a Practical Manner8 Jun
  4. 2024Defensive Prompt Patch: A Robust and Interpretable Defense of LLMs against Jailbreak Attacks30 May
  5. 2024WordGame: Efficient & Effective LLM Jailbreak via Simultaneous Obfuscation in Query and Response22 May
  6. 2024Eraser: Jailbreaking Defense in Large Language Models via Unlearning Harmful Knowledge8 Apr
  7. 2024AutoDefense: Multi-Agent LLM Defense against Jailbreak Attacks2 Mar
  8. 2024Defending LLMs against Jailbreaking Attacks via Backtranslation26 Feb
  9. 2024ASETF: A Novel Method for Jailbreak Attack on LLMs through Translate Suffix Embeddings25 Feb
  10. 2023Jailbreaking Black Box Large Language Models in Twenty Queries12 Oct
  11. 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Prompts19 Sep
  12. 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul
1 more
  1. 2023Jailbroken: How Does LLM Safety Training Fail?5 Jul

Other references · 11

  1. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  2. 2024Length-Controlled AlpacaEval: A Simple Way to Debias Automatic Evaluatorscited by 865
  3. 2022Improving alignment of dialogue agents via targeted human judgementscited by 527
  4. 2024LLMs-as-Judges: A Comprehensive Survey on LLM-based Evaluation Methodscited by 451
  5. 2024LayerSkip: Enabling Early Exit Inference and Self-Speculative Decodingcited by 302
  6. 2023Shadow Alignment: The Ease of Subverting Safely-Aligned Language Modelscited by 284
  7. 2016Tensor Decomposition for Signal Processing and Machine Learningcited by 223
  8. 2025Adaptive Layer-skipping in Pre-trained LLMscited by 24
  9. 2024GPT-generated Text Detection: Benchmark Dataset and Tensor-based Detection Methodcited by 8
  10. 2025Learning to Skip the Middle Layers of Transformerscited by 8
  11. 2025Comparative Analysis of LLM Abliteration Methods: A Cross-Architecture Evaluationcited by 8

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Do Internal Layers of LLMs Reveal Patterns for Jailbreak Detection?
  2. 2024Understanding Jailbreak Success: A Study of Latent Space Dynamics in Large Language Models
  3. 2025LatentBreak: Jailbreaking Large Language Models through Latent Space Feedback
  4. 2024Jailbreak Attacks and Defenses Against Large Language Models: A Survey
  5. 2024Defending against Jailbreak through Early Exit Generation of Large Language Models
  6. 2024Deciphering the Chaos: Enhancing Jailbreak Attacks via Adversarial Prompt Translation
  7. 2026The Art of the Jailbreak: Formulating Jailbreak Attacks for LLM Security Beyond Binary Scoring
  8. 2024Defending Large Language Models Against Jailbreak Attacks via Layer-specific Editing