The LMVD-ID is an internal research identifier, not an official CVE identifier.
Attention-Guided Jailbreak
Large Language Models (LLMs) are vulnerable to jailbreaking attacks that manipulate attention scores to redirect the model's focus away from safety protocols. The AttnGCG attack method increases the attention score on…
Paper-evaluated models(9)
Gemini 1.5 Flash, Gemini Pro, Gemini 1.5 Pro Latest +6 more
- Gemini 1.5 Flash
- Gemini Pro
- Gemini 1.5 Pro Latest
- GPT-3.5 Turbo
- GPT-4
- Llama 2 7B Chat
- Mixtral 8x7B Instruct
- Vicuna 13B
- Vicuna 7B
Description
Large Language Models (LLMs) are vulnerable to jailbreaking attacks that manipulate attention scores to redirect the model's focus away from safety protocols. The AttnGCG attack method increases the attention score on adversarial suffixes within the input prompt, causing the model to prioritize the malicious content over safety guidelines, leading to the generation of harmful outputs.
Examples
See https://github.com/UCSC-VLAA/AttnGCG-attack (opens in a new tab) for code and examples. Specific examples are included in Appendix C.5 of the referenced paper.
Impact
Successful exploitation allows attackers to bypass LLM safety mechanisms and elicit harmful or undesirable outputs, including but not limited to: generation of hate speech, creation of malicious code, dissemination of misinformation, and elicitation of personal information. The impact varies based on the specific LLM and the attacker's goal.
Affected Systems
Various transformer-based LLMs, including Llama, Gemma, Mistral, GPT-3.5, GPT-4, and Gemini series. The vulnerability's impact may vary across different LLM versions and implementations.
Mitigation Steps
- Improved attention mechanism design: Explore alternative attention mechanisms less susceptible to manipulation.
- Robust safety training: Enhance safety training data and methods to better handle attention-based attacks.
- Input sanitization: Implement more robust input validation and filtering techniques to detect and neutralize adversarial suffixes.
- Input monitoring and response analysis: Monitor model inputs for anomalous attention patterns and analyze outputs for potential malicious content. Real-time detection and blocking systems could be implemented using external tools.
- Red teaming and adversarial training: Regularly test LLMs against adversarial attacks, including attention-based methods, to identify vulnerabilities and improve model resilience.
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
- Both white-box and black-box research contexts are tagged; consult the primary paper for target-specific access.
- Related deployment categories
- No related deployment category is classified.
- Taxonomy labels only; paper-specific deployment prerequisites are not inferred.
- Affected systems
- Various transformer-based LLMs, including Llama, Gemma, Mistral, GPT-3.5, GPT-4, and Gemini series. The vulnerability's impact may vary across different LLM versions and implementations.
Research Paper
AttnGCG: Enhancing jailbreaking attacks on LLMs with attention manipulation
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.09040Related research
- AutoDAN: Interpretable LLM Jailbreak
Published October 1, 2023 · model-layer, injection, jailbreak
- Amplified Adversarial Suffix Generation
Published April 1, 2024 · prompt-layer, jailbreak, model-layer
- LLM Causal Neuron Attack
Published December 1, 2023 · model-layer, jailbreak, extraction