The LMVD-ID is an internal research identifier, not an official CVE identifier.
Few-Shot LLM Jailbreak
A vulnerability in aligned Large Language Models (LLMs) allows circumvention of safety mechanisms through improved few-shot jailbreaking techniques. The attack leverages injection of special system tokens (e.g…
Paper-evaluated models(7)
GPT-4, Llama 2 7B, Llama 3 8B +4 more
- GPT-4
- Llama 2 7B
- Llama 3 8B
- Mistral 7B
- OpenChat 3.5
- Qwen 1.5 7B Chat
- Starling LM 7B
Description
A vulnerability in aligned Large Language Models (LLMs) allows circumvention of safety mechanisms through improved few-shot jailbreaking techniques. The attack leverages injection of special system tokens (e.g., [/INST]) into few-shot demonstrations and demo-level random search to optimize the probability of generating harmful responses. This bypasses defenses that rely on perplexity filtering and input perturbation.
Examples
See https://github.com/sail-sg/I-FSJ (opens in a new tab)
Impact
Successful exploitation allows attackers to elicit harmful or toxic content from the LLM, bypassing its safety alignment. The impact depends on the LLM's deployment and its intended use; it could range from generating inappropriate content to enabling malicious activities.
Affected Systems
Various open-source and closed-source aligned LLMs, including but not limited to Llama-2-7B, Llama-3-8B, OpenChat-3.5, Starling-LM, and Qwen1.5-7B-Chat. The vulnerability is particularly effective against models with limited context windows.
Mitigation Steps
- Implement robust input validation and filtering techniques that go beyond simple perplexity checks.
- Develop and deploy more sophisticated defenses such as those utilizing multiple layers of safety checks and incorporating techniques resilient to few-shot adversarial attacks.
- Regularly update and retrain LLMs with improved safety datasets and techniques designed to mitigate the specific vulnerabilities highlighted in this research.
- Investigate and implement mechanisms to detect and counteract the injection of specific system tokens used in the attack.
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
- Various open-source and closed-source aligned LLMs, including but not limited to Llama-2-7B, Llama-3-8B, OpenChat-3.5, Starling-LM, and Qwen1.5-7B-Chat. The vulnerability is particularly effective against models with…
Research Paper
Improved few-shot jailbreaking can circumvent aligned language models and their defenses
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/2406.01288Related research
- Template and Suffix Optimization
Published November 1, 2025 · model-layer, prompt-layer, injection
- Concurrent Task Jailbreak
Published October 1, 2025 · model-layer, prompt-layer, injection
- Adversarial LLM Jailbreak
Published February 1, 2025 · prompt-layer, jailbreak, blackbox