The LMVD-ID is an internal research identifier, not an official CVE identifier.
Direct Parameter Jailbreak
A vulnerability exists in large language models (LLMs) where a small subset of parameters can be directly edited to significantly alter the model's behavior, such as inducing or suppressing toxicity, jailbreaking…
Paper-evaluated models(4)
- Code Llama 7B
- Llama 2 7B
- Llama 2 7B Chat
- Mistral 7B
Description
A vulnerability exists in large language models (LLMs) where a small subset of parameters can be directly edited to significantly alter the model's behavior, such as inducing or suppressing toxicity, jailbreaking susceptibility, or altering sentiment expression. This manipulation is achieved through training a linear classifier ("behavior probe") to identify parameters strongly correlated with the target behavior and then modifying those parameters, bypassing standard retraining methods.
Examples
See https://github.com/lucywang720/model-surgery (opens in a new tab). The repository contains code and data demonstrating the modification of LLaMA2-7B and other models to reduce toxicity, increase resistance to jailbreaking prompts, and shift sentiment expression. Specific examples of altered outputs for various prompts are included in the Appendix of the research paper.
Impact
An attacker with knowledge of the model's architecture and access to a subset of its parameters could:
- Inject malicious behavior into the LLM, causing it to generate toxic, harmful, or biased content.
- Circumvent safety measures designed to prevent jailbreaking attempts.
- Manipulate the sentiment or overall tone of the LLM's responses.
- Potentially create models that exhibit unintended or undesirable behaviors not present in the original model.
Affected Systems
Large language models (LLMs) using transformer architectures, including but not limited to LLaMA 2, CodeLLaMA, and Mistral, are vulnerable. The vulnerability's severity depends on the model's size, architecture, and the attacker's level of access to its parameters.
Mitigation Steps
- Parameter Protection: Implement robust access controls and encryption to prevent unauthorized access to the LLM's parameters. This includes controlling both read and write access.
- Regular Audits: Conduct comprehensive audits of the LLM's parameters to detect any unauthorized modifications or anomalies.
- Parameter Integrity Checks: Develop methods to regularly verify the integrity of the model’s parameters, comparing them against a known good baseline. This could involve cryptographic hashes or similar techniques.
- Defense Mechanisms: Explore and implement defensive techniques to counter parameter manipulation, possibly employing techniques such as parameter obfuscation or watermarking.
- Robust Model Training: Develop more robust training methods that make the models less susceptible to simple parameter-based modifications. This may require moving beyond the current linear-separability characteristics.
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) using transformer architectures, including but not limited to LLaMA 2, CodeLLaMA, and Mistral, are vulnerable. The vulnerability's severity depends on the model's size, architecture, and…
Research Paper
Model Surgery: Modulating LLM's Behavior Via Simple Parameter Editing
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/2407.08770Related research
- LLM Censorship Vector Control
Published April 1, 2025 · model-layer, extraction, jailbreak
- Attention-Guided Jailbreak
Published October 1, 2024 · model-layer, jailbreak, whitebox
- Parametric Model Unalignment
Published October 1, 2023 · model-layer, jailbreak, poisoning