The LMVD-ID is an internal research identifier, not an official CVE identifier.
Attention-Based LLM Jailbreak
Large Language Models (LLMs) are vulnerable to attention-based jailbreak attacks. Attackers can craft prompts that strategically divert the LLM's attention away from sensitive words, causing the model to overlook…
Paper-evaluated models(5)
Claude 3 Haiku, GPT-4, Llama 2 13B Chat +2 more
- Claude 3 Haiku
- GPT-4
- Llama 2 13B Chat
- Llama 2 7B Chat
- Llama 3 8B
Description
Large Language Models (LLMs) are vulnerable to attention-based jailbreak attacks. Attackers can craft prompts that strategically divert the LLM's attention away from sensitive words, causing the model to overlook malicious intent and generate harmful content. This occurs by leveraging the LLM's attention mechanism to focus on benign parts of the prompt while embedding harmful queries within a seemingly harmless context. The success of the attack is correlated with specific attention distribution metrics: Attention Intensity on Sensitive Words (AttnSensWords), Attention-based Contextual Dependency Score (AttnDepScore), and Attention Dispersion Entropy (AttnEntropy).
Examples
Specific examples demonstrating successful attention-based jailbreaks are detailed in the research paper "Feint and Attack: Attention-Based Strategies for Jailbreaking and Protecting LLMs". See arXiv:2410.16327 (opens in a new tab) for details and examples. The paper includes concrete examples of prompts that successfully manipulate the attention mechanism and evade safety filters, along with the corresponding attention weight distributions.
Impact
Successful exploitation of this vulnerability allows attackers to bypass safety mechanisms in LLMs and induce the generation of harmful content, including but not limited to: instructions for illegal activities, hate speech, disinformation campaigns, and malware creation. The impact is determined by the specific harmful outputs generated.
Affected Systems
All LLMs using attention mechanisms are potentially vulnerable. This includes various open-source and closed-source models, with the vulnerability's exploitability influenced by the specific model's safety training and robustness.
Mitigation Steps
- Attention Weight Monitoring: Implement mechanisms to monitor the attention weights assigned to sensitive words during prompt processing. Identify and flag prompts where attention is disproportionately shifted to benign contexts while neglecting potentially harmful keywords.
- Risk Score Integration: Develop a risk scoring system that leverages metrics such as AttnSensWords, AttnDepScore, and AttnEntropy to assess the potential harmfulness of input prompts before processing.
- Prompt Sanitization/Calibration: Implement techniques to sanitize or recalibrate prompts identified as high-risk by the scoring system. This could involve adding safety warnings or re-framing the prompts to reduce the focus on potentially harmful aspects.
- Defense Mechanism Improvement: Continuously improve the defense mechanism by using machine learning to adapt to increasingly sophisticated attention-based attacks. Retrain models with adversarial examples which are generated based on the above metrics.
Research context and confidence
- Evidence and verification
- Paper-reported; independent reproduction is not documented.
- Primary research source linked.
- Severity
- Not rated by this catalog.
- Source and publication type
- arXiv · Research preprint.
- Peer-review status is not provided by this source.
- Author and publication status
- Author metadata is not stored; see the primary paper.
- Threat model and attacker access
- Black-box model, service, or application access.
- Related deployment categories
- No related deployment category is classified.
- Taxonomy labels only; paper-specific deployment prerequisites are not inferred.
- Affected systems
- All LLMs using attention mechanisms are potentially vulnerable. This includes various open-source and closed-source models, with the vulnerability's exploitability influenced by the specific model's safety training and…
Research Paper
Feint and Attack: Attention-Based Strategies for Jailbreaking and Protecting LLMs
Primary source: arXiv. Findings are reported by the cited research and have not been independently verified.
View PaperEvidence
This entry is based on a primary research source. Its findings are paper-reported; independent reproduction and verification are not claimed.
https://arxiv.org/abs/2410.16327Related research
- Agentic Red-Teaming Uncovers Novel Jailbreaks
Published June 1, 2025 · model-layer, prompt-layer, jailbreak
- Template and Suffix Optimization
Published November 1, 2025 · model-layer, prompt-layer, injection
- LLM Self-Introspection Jailbreak
Published May 1, 2025 · jailbreak, blackbox, prompt-layer