The LMVD-ID is an internal research identifier, not an official CVE identifier.
Attention-Based Jailbreak
A vulnerability in large language models (LLMs) allows attackers to bypass safety-alignment mechanisms by manipulating the model's internal attention weights. The attack, termed "Attention Eclipse," modifies the…
Paper-evaluated models(6)
GPT-3.5 Turbo, GPT-4o Mini, Llama 2 13B Chat +3 more
- GPT-3.5 Turbo
- GPT-4o Mini
- Llama 2 13B Chat
- Llama 2 70B Chat
- Llama 2 7B Chat
- Vicuna 13B
Description
A vulnerability in large language models (LLMs) allows attackers to bypass safety-alignment mechanisms by manipulating the model's internal attention weights. The attack, termed "Attention Eclipse," modifies the attention scores between specific tokens within a prompt, either amplifying or suppressing attention to selectively strengthen or weaken the influence of certain parts of the prompt on the model's output. This allows injection of malicious content while appearing benign to the model's safety filters.
Examples
See arXiv:2502.15334 (opens in a new tab) for detailed examples and experimental results showing how the Attention Eclipse attack increases the success rate of existing jailbreak techniques (GCG, AutoDAN, ReNeLLM) across multiple LLMs (Llama2-7B, Llama2-13B, Llama2-70B, Vicuna-13B). Specific examples of manipulated prompts and resulting outputs are provided in the paper's appendix.
Impact
Successful exploitation of this vulnerability can lead to LLMs generating harmful outputs, including but not limited to: hate speech, instructions for illegal activities, misinformation, and malicious code. The attack significantly increases the success rate of existing jailbreaks and reduces their generation time and computational cost. The attack demonstrates transferability across different models, potentially impacting a wide range of LLMs.
Affected Systems
Large language models utilising transformer architectures with self-attention mechanisms, including but not limited to Llama 2 and Vicuna. The vulnerability is particularly relevant to models with white-box access (where internal model parameters are accessible).
Mitigation Steps
- Implement robust attention-based defenses that detect and mitigate attempts to manipulate attention weights.
- Develop more sophisticated alignment mechanisms that are less susceptible to manipulation of attention patterns.
- Employ adversarial training techniques to improve the robustness of LLMs against attention-based attacks.
- Regularly audit and update safety filters to account for emerging attack strategies.
- Restrict white-box access to model internals whenever possible.
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
- White-box access to model or deployment internals.
- Related deployment categories
- No related deployment category is classified.
- Taxonomy labels only; paper-specific deployment prerequisites are not inferred.
- Affected systems
- Large language models utilising transformer architectures with self-attention mechanisms, including but not limited to Llama 2 and Vicuna. The vulnerability is particularly relevant to models with white-box access…
Research Paper
Attention Eclipse: Manipulating Attention to Bypass LLM Safety-Alignment
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/2502.15334Related research
- Diverse Jailbreak Optimization
Published March 1, 2024 · model-layer, jailbreak, whitebox
- Embedding-Translated Adversarial Suffixes
Published February 1, 2024 · model-layer, jailbreak, injection
- Template and Suffix Optimization
Published November 1, 2025 · model-layer, prompt-layer, injection