The LMVD-ID is an internal research identifier, not an official CVE identifier.
Context-Coherent LLM Jailbreak
A context-coherent jailbreak attack (CCJA) allows bypassing safety mechanisms in aligned large language models (LLMs) by optimizing perturbations in the continuous word embedding space of a masked language model (MLM)…
Paper-evaluated models(7)
Guanaco 13B, Llama 2 7B Chat, Llama 3 8B Instruct +4 more
- Guanaco 13B
- Llama 2 7B Chat
- Llama 3 8B Instruct
- Mistral 7B Instruct v0.2
- Mistral 7B Instruct v0.3
- Vicuna 13B v1.5
- Vicuna 7B v1.5
Description
A context-coherent jailbreak attack (CCJA) allows bypassing safety mechanisms in aligned large language models (LLMs) by optimizing perturbations in the continuous word embedding space of a masked language model (MLM). The attack leverages the MLM's ability to reconstruct text from hidden states to generate semantically coherent yet malicious prompts that induce the target LLM to produce unsafe outputs, even with strong safety alignment. The attack's effectiveness is enhanced by using a seed prompt to generate an instruction-following prefix, which guides the LLM towards affirmative responses to harmful queries.
Examples
See the paper for detailed examples and experimental results (See arXiv:2502.11379 (opens in a new tab)). Specific examples are not readily reproducible without access to the authors' code and the trained MLM/LLM models used in their experiments.
Impact
Successful exploitation of this vulnerability could lead to the generation of unsafe content by the affected LLM, including but not limited to: hate speech, violent or harmful instructions, dissemination of misinformation, and evasion of safety filters. The generation of such content can have serious reputational damage, legal repercussions, and the potential for real-world harm depending on the application context. The attack also demonstrates that vulnerabilities in open-source LLMs can be leveraged to compromise closed-source models.
Affected Systems
Large language models (LLMs), particularly those that utilize masked language models (MLMs) for their underlying architecture, are vulnerable. The severity of the impact depends on the model's safety alignment and the application context. Open-source LLMs are particularly vulnerable due to the accessibility of model parameters.
Mitigation Steps
- Improve LLM safety mechanisms through enhanced parameter regularization or adversarial training techniques.
- Develop defense mechanisms that are robust against context-coherent attacks, such as those leveraging semantic similarity checks or prompt perturbation techniques.
- Implement more robust input sanitization and filtering methods to identify and block malicious prompts even when they are semantically coherent.
- Limit access to LLM model parameters, especially in open-source deployments.
- Regularly audit and update safety mechanisms in response to new attacks and vulnerabilities.
Research context and confidence
- Evidence and verification
- Paper-reported; independent reproduction is not documented.
- Primary research source linked.
- Severity
- Not rated by this catalog.
- Source and publication type
- arXiv · Research preprint.
- Peer-review status is not provided by this source.
- Author and publication status
- Author metadata is not stored; see the primary paper.
- Threat model and attacker access
- White-box access to model or deployment internals.
- Related deployment categories
- No related deployment category is classified.
- Taxonomy labels only; paper-specific deployment prerequisites are not inferred.
- Affected systems
- Large language models (LLMs), particularly those that utilize masked language models (MLMs) for their underlying architecture, are vulnerable. The severity of the impact depends on the model's safety alignment and the…
Research Paper
CCJA: Context-Coherent Jailbreak Attack for Aligned Large Language Models
Primary source: arXiv. Findings are reported by the cited research and have not been independently verified.
View PaperEvidence
This entry is based on a primary research source. Its findings are paper-reported; independent reproduction and verification are not claimed.
https://arxiv.org/abs/2502.11379Related research
- Untargeted Gradient Jailbreak
Published October 1, 2025 · model-layer, prompt-layer, injection
- Concept-Based Jailbreak Defense
Published February 1, 2025 · model-layer, jailbreak, whitebox
- Embedding-Translated Adversarial Suffixes
Published February 1, 2024 · model-layer, jailbreak, injection