Abstract
Jailbreaking Large Language Models (LLMs) typically involves either computationally expensive white-box attacks or iterative black-box prompting. This paper introduces Reverse Embedded Defense Attack (REDA), a model-agnostic, one-step jailbreaking technique. By framing malicious requests as defensive tasks—specifically, asking the model to generate countermeasures against harmful acts—REDA achieves near-perfect success rates. Evaluation across major models like GPT-3.5 and Llama-3.1 shows an average Attack Success Rate (ASR) exceeding 96% with a single query, highlighting significant vulnerabilities in current semantic safety filters.
Introduction
The security of Large Language Models (LLMs) is a critical area of research, characterized by a continuous cycle of attack and defense. Current jailbreaking methods often rely on overtly adversarial prompts that are easily flagged by safety training. White-box attacks require internal model access, while black-box methods often necessitate hundreds of iterations to bypass filters.
The researchers identify a gap in these approaches: their adversarial nature is too transparent. To address this, they developed REDA, a method that aligns the attack's "intent" with the model's own defensive goals, making it stealthy and highly efficient.
Methodology
The REDA mechanism is built upon three core components designed to bypass safety filters by recontextualizing harmful requests.
Reverse Attack Perspective (RAP)
Instead of a direct request for harmful content, RAP employs a role-play scenario where the LLM acts as a security consultant. The prompt asks for "countermeasures" against a specific crime. Crucially, it instructs the model to first describe the "procedural steps" of the crime to better understand the threat. This places the harmful content in an auxiliary, seemingly legitimate role.
Example-Guided Enhancement (EGE)
REDA utilizes In-Context Learning (ICL) by providing the model with examples of successful defensive reports. This primes the model to follow the specific template and increases its confidence in performing the task without triggering refusal heuristics.
Request Intent Mitigation (RIM)
The authors discovered that declarative statements are less likely to trigger safety filters than interrogative ones. REDA transforms jailbreak targets (e.g., "How do I rob a bank?") into simple statements (e.g., "rob a bank"), mimicking the informational data found in pre-training sets.
Datasets and Evaluation
The study utilized two primary datasets:
- REDA Dataset: A new collection of 260 QA pairs across 13 categories (e.g., Cyber Sabotage, Financial Crimes) used for the EGE component.
- Evaluation Dataset: A benchmark of 120 harmful questions used to test effectiveness against various models.
Results
REDA was tested against seven major models, including GPT-3.5, Llama-3.1-8B, and Qwen-2.
- Attack Success Rate (ASR): The method achieved an average ASR of over 96%. Success rates on closed-source models were particularly high, reaching 98.33% for GPT-3.5 and 99.17% for Spark-API.
- Efficiency: The Average Query Count (AQC) was 1.0, meaning the attack succeeded on the first attempt in almost every case.
- Transferability: Prompts showed a 96.20% transfer success rate across different models, significantly outperforming existing state-of-the-art methods like GCG.
Discussion and Limitations
The success of REDA suggests that current safety alignments are brittle and can be bypassed through structural prompt engineering. By co-opting the model's defensive goals, attackers can bypass filters that look for adversarial intent.
However, the study has limitations. It is currently restricted to English-language prompts, and the evaluation of "harmfulness" remains somewhat subjective despite the use of automated classifiers. Future research will focus on multilingual environments and specialized domains like law or medicine to further validate the generalizability of this threat.
Summary updated