Introduction
Large Language Models (LLMs) are protected by safety guardrails designed to block harmful content. However, "jailbreak" attacks aim to bypass these defenses. While many black-box jailbreaks claim high success rates, current evaluation methods often rely on simple "dictionary-based" checks (ASR-DICT), which only look for the absence of refusal keywords like "I'm sorry." This paper identifies a critical gap: bypassing a keyword filter does not guarantee a useful or actionable harmful response. Furthermore, the effectiveness of specific "scenario shifts"—contextual wrappers like adopting a persona or framing a request as fiction—varies significantly depending on the malicious intent.
Methodology: The GeneShift Approach
To address these challenges, the authors propose GeneShift, a black-box jailbreak framework that uses a Genetic Algorithm (GA) to optimize scenario shifts. GeneShift treats prompt engineering as an evolutionary process:
- Gene Design: A library of 11 transformation rules (e.g., "Persona Adoption," "Joke Pretext") serves as the genetic material.
- Initialization: A starting population of prompts is created by combining random rules with a malicious request.
- Fitness Evaluation: A "Judge LLM" evaluates the target model's response on a scale of 1 to 6, focusing on the actual detail and harmfulness of the content (ASR-GPT).
- Evolution: The algorithm performs crossover (swapping rules between successful prompts) and mutation (randomly altering rules) to iteratively improve the attack's effectiveness.
The Importance of Contextual Intent
A key finding of this research is that no single scenario shift is universally effective. The success of a jailbreak is highly dependent on the category of the malicious request. For instance, "Persona Adoption" is relatively effective for Fraud but fails for Physical Harm. Conversely, "Privilege Escalation" and "Joke Pretext" show higher success rates for Physical Harm categories.
This variability suggests that static jailbreak templates are insufficient. GeneShift's ability to dynamically evolve and combine these shifts allows it to find the specific "psychological" bypass required for different types of harmful content.
Comparative Performance
GeneShift significantly outperforms existing jailbreak methods when evaluated using the more rigorous ASR-GPT metric. While traditional methods like ArtPrompt achieve high scores under dictionary-based evaluation (83.46%), their actual success in eliciting detailed harmful content is negligible (0.77%).
GeneShift achieved a 60.00% ASR-GPT on GPT-4o mini, a substantial improvement over the best black-box baseline, DeepInception (45.00%). Furthermore, the optimized prompts demonstrated high transferability, achieving a 53.08% success rate on the more advanced GPT-4o model, proving that these discovered scenario shifts generalize across similar architectures.
Conclusion
The success of GeneShift highlights the vulnerability of current LLM guardrails to adaptive, context-aware attacks. The discrepancy between ASR-DICT and ASR-GPT metrics serves as a warning that simple keyword filtering is an inadequate defense. Future safety research must focus on developing more robust, context-sensitive mechanisms capable of identifying and mitigating complex, multi-layered adversarial prompts.
Summary updated