Abstract
Large Language Models (LLMs) are increasingly integrated into various applications, necessitating robust safety guardrails. However, current safety training often suffers from "mismatched generalization," where models learn technical details during pre-training but are only trained to refuse specific harmful labels. This paper introduces SemanticCamo, a novel jailbreaking framework that exploits this gap by camouflaging malicious intent behind abstract linguistic attributes. By requesting semantic features rather than direct instructions, SemanticCamo achieves high attack success rates across state-of-the-art models.
Introduction
Despite extensive safety alignment via Reinforcement Learning from Human Feedback (RLHF), LLMs remain susceptible to jailbreak attacks. Traditional attacks often rely on adversarial suffixes or role-playing scenarios. SemanticCamo takes a different approach by leveraging the model's own descriptive knowledge. The core insight is that while a model might be trained to refuse the prompt "How do I build a bomb?", it remains capable of describing the "composition," "function," and "materials" associated with such an object.
Methodology: The SemanticCamo Framework
SemanticCamo employs a four-step pipeline to bypass safety filters by translating harmful queries into benign-looking semantic requests.
- Extracting Unsafe Semantics: The framework first identifies the core unsafe components of a query (e.g., "hacking strategy").
- Adjusting Semantics: An iterative "verbal reinforcement learning" loop, utilizing the Reflexion framework, refines these terms. The goal is to find a balance: the term must be descriptive enough to elicit useful information but abstract enough to avoid triggering keyword-based safety filters.
- Semantic Camouflage: Instead of querying the target model directly about the adjusted term, the attacker prompts the model to generate a "dictionary" of semantic features (e.g., part of speech, composition, historical context, and function).
- Constructing Payloads: These features are then embedded into a "safe" template. The final prompt asks the model to perform an action based on these abstract attributes, effectively reconstructing the original harmful intent without ever using the forbidden labels.
Experimental Results
The researchers evaluated SemanticCamo using benchmarks like AdvBench and a Hazard Taxonomy based on Llama-3 guidelines. The results demonstrate significant vulnerabilities in current state-of-the-art models:
- Attack Success Rate (ASR): The framework achieved an average ASR of 80.35% across six major models.
- Model Performance: Even highly aligned models like Claude-3.5-Sonnet were compromised in 66.73% of trials. GPT-4o and Llama-3-70B showed even higher vulnerability, with success rates exceeding 84%.
- Defense Evasion: SemanticCamo proved resilient against standard defenses. Methods like OpenAI’s Moderation API, GradSafe, and Perplexity filters were largely ineffective because the generated prompts are semantically coherent and lack typical adversarial noise.
Discussion and Key Insights
The success of SemanticCamo highlights several critical issues in AI safety:
- Instruction-Following vs. Safety: The model's inherent drive to follow complex instructions can override safety constraints when the task is framed as a technical or semantic analysis.
- Contextual Sensitivity: By creating a "safe" technical context, the attack lowers the model's internal threshold for refusing content.
- Knowledge Vulnerability: The extensive pre-training that makes LLMs useful also provides the very information needed to execute harmful tasks, provided the "label" is bypassed.
Conclusion
SemanticCamo demonstrates that current safety training is insufficient against attacks that operate at the semantic level. Future safety research must move beyond keyword and intent detection toward a more holistic "semantic-level" alignment that recognizes harmful concepts regardless of their linguistic presentation.
Summary updated