Skip to main content
LLM Security Database
Skip to research details
Back to research findings
LMVD-ID: 364e7b04
Paper published December 1, 2024
Entry analyzed December 28, 2024
Paper-reported evidence
Confidence: Source-linked

The LMVD-ID is an internal research identifier, not an official CVE identifier.

Targeted Model Editing Jailbreak

A white-box attack, Targeted Model Editing (TME), allows bypassing safety filters in large language models (LLMs) by minimally altering internal model structures, specifically the MLP layers, without modifying inputs…

BibTeX citation

Paper-evaluated models(4)

  • Gemma 2 9B IT
  • Llama 2 7B Chat
  • Llama 3 8B Instruct
  • Mistral 7B Instruct

Description

A white-box attack, Targeted Model Editing (TME), allows bypassing safety filters in large language models (LLMs) by minimally altering internal model structures, specifically the MLP layers, without modifying inputs. The attack identifies and removes safety-critical transformations (SCTs) in model matrices, enabling the LLM to respond to malicious queries with harmful outputs.

Examples

See the paper's repository https://sites.google.com/view/d-llm (opens in a new tab) for code and dataset. The paper includes examples of malicious prompts and the resulting harmful responses from the attacked LLMs.

Impact

Successful exploitation allows attackers to circumvent LLM safety mechanisms and elicit harmful or undesired responses to unmodified malicious prompts. This compromises the intended safety and reliability of the LLM, potentially leading to the generation of illegal, unethical, or harmful content. The attack is stealthy as it doesn't require modifications to the input prompts.

Affected Systems

Open-source LLMs using a decoder-only architecture, including but not limited to Llama-2-7b-chat, Llama-3-8b-Instruct, gemma-2-9b-it, and Mistral-7b-Instruct. Potentially affects any LLM vulnerable to manipulation of internal MLP layer matrices.

Mitigation Steps

  • Investigate and implement model architectures more resistant to model editing attacks, such as Mixture of Experts (MoE) models.
  • Develop more robust safety mechanisms that are less susceptible to removal or alteration through targeted model modifications.
  • Regularly audit LLMs for signs of unauthorized modifications or tampering.
  • Strengthen access control to prevent unauthorized access to model parameters.

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
Open-source LLMs using a decoder-only architecture, including but not limited to Llama-2-7b-chat, Llama-3-8b-Instruct, gemma-2-9b-it, and Mistral-7b-Instruct. Potentially affects any LLM vulnerable to manipulation of…

Research Paper

Model-Editing-Based Jailbreak against Safety-aligned Large Language Models

Primary source: arXiv. Findings are reported by the cited research and have not been independently verified.

View Paper

Evidence

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/2412.08201