Prefill-Based LLM Jailbreak
Large Language Models (LLMs) with user-controlled response prefilling features are vulnerable to a novel jailbreak attack. By manipulating the prefilled text, attackers can influence the model's subsequent token generation, bypassing safety mechanisms and eliciting harmful or unintended outputs. Two attack vectors are demonstrated: Static Prefilling (SP), using a fixed prefill string, and Optimized Prefilling (OP), iteratively optimizing the prefill string for maximum impact. The vulnerability…
Evaluated models: Claude 3.5 Sonnet, Claude 3.7 Sonnet, DeepSeek V3+3 more
- Claude 3.5 Sonnet
- Claude 3.7 Sonnet
- DeepSeek V3
- Gemini 2.0 Flash
- Gemini 2.0 Pro
- GPT-3.5 Turbo