Skip to main content
LLM Security Database
Skip to research details
Back to research findings
LMVD-ID: 69d473a8
Paper published December 1, 2024
Entry analyzed January 26, 2025
Paper-reported evidence
Confidence: Source-linked

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

Alignment-Based LLM Jailbreak

Large Language Models (LLMs) employing reinforcement learning from human feedback (RLHF) for safety alignment are vulnerable to a novel "alignment-based" jailbreak attack. This attack leverages a best-of-N sampling…

BibTeX citation

Paper-evaluated models(9)

Falcon 7B, GPT-2, Llama 3.1 8B +6 more
  • Falcon 7B
  • GPT-2
  • Llama 3.1 8B
  • Megatron 345M
  • Mistral 7B
  • Pythia 12B
  • Tiny Llama 1.1B
  • Vicuna 13B
  • Vicuna 7B

Description

Large Language Models (LLMs) employing reinforcement learning from human feedback (RLHF) for safety alignment are vulnerable to a novel "alignment-based" jailbreak attack. This attack leverages a best-of-N sampling approach with an adversarial LLM to efficiently generate prompts that bypass safety mechanisms and elicit unsafe responses from the target LLM, without requiring additional training or access to the target LLM's internal parameters. The attack exploits the inherent tension between safety and unsafe reward signals, effectively misaligning the model via alignment techniques.

Examples

See repository (The specific examples are too lengthy to include here. The repository will contain the explicit examples found in Appendix F of the provided paper).

Impact

Successful exploitation allows unauthorized access to unsafe model outputs, generating harmful, biased, or unethical content. This compromises the LLM's safety features and can lead to significant societal risks. The speed of the attack (seconds vs. hours for other methods) significantly increases the potential for widespread abuse.

Affected Systems

Large Language Models (LLMs) using RLHF for safety alignment, particularly those vulnerable to conditional suffix generation attacks. Specific examples include Vicuna-7b, Vicuna-13b, LLaMA-2, LLaMA-3, LLaMA-3.1, Mistral-7b, Falcon-7b, and Pythia-12b (based on the paper's findings).

Mitigation Steps

  • Develop more robust safety mechanisms that are less susceptible to alignment-based attacks.
  • Explore alternative alignment techniques that are less vulnerable to manipulation by adversarial reward signals.
  • Implement stronger detection mechanisms to identify and filter out adversarial prompts based on characteristics beyond simple keyword matching.
  • Increase the diversity and robustness of the training data used for RLHF to better generalize to adversarial prompts.

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
Black-box model, service, or application access.
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 RLHF for safety alignment, particularly those vulnerable to conditional suffix generation attacks. Specific examples include Vicuna-7b, Vicuna-13b, LLaMA-2, LLaMA-3, LLaMA-3.1…

Research Paper

LIAR: Leveraging Alignment (Best-of-N) to Jailbreak LLMs in Seconds

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.05232