Needle-in-Haystack Jailbreak
A safety bypass vulnerability, dubbed "Ninja" (Needle-in-a-haystack jailbreak), exists in long-context Large Language Models (LLMs). The vulnerability exploits a degradation in safety alignment that occurs when a harmful goal is embedded within a massive, benign context window. Unlike traditional adversarial attacks that use unintelligible strings or "many-shot" attacks that use harmful examples, this method utilizes thematically relevant but innocuous text (the "haystack"). The attack…
Evaluated models: GPT-4o, Llama 3.1 8B Instruct, Gemini 2.0 Flash+2 more
- GPT-4o
- Llama 3.1 8B Instruct
- Gemini 2.0 Flash
- Mistral 7B v0.3
- Qwen 2.5 7B Instruct