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

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

Adaptive Position Jailbreak

AdaPPA is a jailbreak attack that exploits the varying levels of alignment protection in LLMs at different output positions. It leverages the model's instruction-following capabilities by pre-filling the output with…

BibTeX citation

Paper-evaluated models(8)

ChatGLM3 6B, GPT-4o, GPT-4o Mini +5 more
  • ChatGLM3 6B
  • GPT-4o
  • GPT-4o Mini
  • Llama 2 13B
  • Llama 2 7B
  • Llama 3 8B
  • Vicuna 13B
  • Vicuna 7B

Description

AdaPPA is a jailbreak attack that exploits the varying levels of alignment protection in LLMs at different output positions. It leverages the model's instruction-following capabilities by pre-filling the output with carefully crafted "safe" content, creating a perceived completion and lowering the model's guard before generating malicious content. The attack's effectiveness relies on the adaptive generation of both safe and harmful pre-fill content, strategically placed to exploit weaknesses in the model's defense mechanisms at various output positions.

Examples

See https://github.com/Yummy416/AdaPPA (opens in a new tab) for code and examples. Specific examples shown in the paper include variations of prompts with different lengths and ratios of "safe" and "harmful" pre-filled content. The paper demonstrates that the optimal combination of these varies with the target LLM.

Impact

Successful AdaPPA attacks can lead to the generation of malicious, unsafe, biased, or discriminatory content by the affected LLM. This compromises the security and reliability of applications using the LLM, potentially enabling various harmful activities.

Affected Systems

The paper demonstrates successful attacks against multiple LLMs, including but not limited to: ChatGLM3-6B, Vicuna-7B, Vicuna-13B, Llama2-7B, Llama2-13B, Llama3-8B, GPT-4o-Mini, and GPT-4o. The vulnerability is likely present in other LLMs with similar architectures and security mechanisms.

Mitigation Steps

  • Improve the robustness of LLM alignment models to different length pre-filled outputs.
  • Develop more sophisticated detection methods that identify patterns associated with AdaPPA style pre-fill attacks.
  • Implement stronger output filtering and moderation mechanisms to prevent the generation of malicious content, even when preceded by seemingly innocuous text.
  • Employ diverse defensive approaches beyond traditional semantic-level analysis, considering positional vulnerabilities within the model's output generation process.

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
The paper demonstrates successful attacks against multiple LLMs, including but not limited to: ChatGLM3-6B, Vicuna-7B, Vicuna-13B, Llama2-7B, Llama2-13B, Llama3-8B, GPT-4o-Mini, and GPT-4o. The vulnerability is likely…

Research Paper

AdaPPA: Adaptive Position Pre-Fill Jailbreak Attack Approach Targeting LLMs

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