Skip to main content
LLM Security Database
Skip to research details
Back to research findings
LMVD-ID: 746bf136
Paper published February 1, 2025
Entry analyzed March 4, 2025
Paper-reported evidence
Confidence: Source-linked

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

One-Shot LLM Steering Attack

Large Language Models (LLMs) are vulnerable to one-shot steering vector optimization attacks. By applying gradient descent to a single training example, an attacker can generate steering vectors that induce or suppress…

BibTeX citation

Paper-evaluated models(5)

Gemma 2 2B, Gemma 2 2B IT, Llama 13B +2 more
  • Gemma 2 2B
  • Gemma 2 2B IT
  • Llama 13B
  • Llama 2 13B
  • Llama 3.1 8B Instruct

Description

Large Language Models (LLMs) are vulnerable to one-shot steering vector optimization attacks. By applying gradient descent to a single training example, an attacker can generate steering vectors that induce or suppress specific behaviors across multiple inputs, even those unseen during the optimization process. This allows malicious actors to manipulate the model's output in a generalized way, bypassing safety mechanisms designed to prevent harmful responses.

Examples

See https://github.com/jacobdunefsky/one-shot-steering-repro (opens in a new tab). Specific examples include generating steering vectors that:

  • Achieve a 96.9% success rate in bypassing safety restrictions on harmful prompts in the Harmbench dataset.
  • Induce harmful behavior in an alignment-faking model on benign prompts.
  • Suppress harmful behavior in an alignment-faking model on malicious prompts.

Impact

Successful exploitation can lead to:

  • Bypass of safety filters and generation of harmful, unethical, or illegal content.
  • Evasion of fact-checking mechanisms and dissemination of misinformation.
  • Manipulation of the model to perform actions or provide information that benefits the attacker.

Affected Systems

LLMs utilizing internal activation vectors susceptible to gradient-based optimization. This includes, but is not limited to, models based on the LLaMA architecture, and instruction-tuned models such as Gemma-2-2B-it.

Mitigation Steps

  • Develop and implement robust defenses against gradient-based attacks.
  • Explore alternative training methodologies that reduce susceptibility to single-example manipulation.
  • Regularly audit model behavior for unexpected and undesirable responses.
  • Employ techniques to improve model robustness to adversarial examples.

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
LLMs utilizing internal activation vectors susceptible to gradient-based optimization. This includes, but is not limited to, models based on the LLaMA architecture, and instruction-tuned models such as Gemma-2-2B-it.

Research Paper

Investigating Generalization of One-shot LLM Steering Vectors

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