Skip to main content
LLM Security Database
Skip to research details
Back to research findings
LMVD-ID: 5cdb4e1d
Paper published November 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.

Adversarial Suffix Jailbreak

Large language models (LLMs) are vulnerable to adversarial suffix injection attacks. Maliciously crafted suffixes appended to otherwise benign prompts can cause the LLM to generate harmful or undesired outputs…

BibTeX citation

Paper-evaluated models(8)

Falcon 7B Instruct, GPT-3.5 Turbo, GPT-4o +5 more
  • Falcon 7B Instruct
  • GPT-3.5 Turbo
  • GPT-4o
  • GPT-4o Mini
  • Llama 2 7B Chat
  • Llama 3 8B Instruct
  • Llama 3.1 8B Instruct
  • Mistral 7B Instruct v0.3

Description

Large language models (LLMs) are vulnerable to adversarial suffix injection attacks. Maliciously crafted suffixes appended to otherwise benign prompts can cause the LLM to generate harmful or undesired outputs, bypassing built-in safety mechanisms. The attack leverages the model's sensitivity to input perturbations to elicit responses outside its intended safety boundaries.

Examples

See repository https://github.com/llm-gasp/gasp (opens in a new tab). Examples include prompts with attached suffixes causing LLMs to generate instructions for creating illegal weapons or detailing plans for malicious cyberattacks, despite the original prompt being innocuous.

Impact

Successful attacks can lead to the generation of harmful content (hate speech, violence incitation, misinformation), leakage of sensitive information, and circumvention of safety filters in deployed LLMs. The resulting output can have serious consequences depending on the context of the generated content.

Affected Systems

All LLMs susceptible to prompt injection attacks are potentially affected, notably those employing safety mechanisms based on prompt analysis or content filtering. Specific models tested and affected include, but are not limited to, Mistral7B-Instruct-v0.3, Falcon-7B-Instruct, LLaMA-2-7B-chat, LLaMA-3-8B-instruct, LLaMA-3.1-8B-instruct, GPT-4o, GPT-4o-mini, and GPT-3.5-turbo.

Mitigation Steps

  • Improve LLM safety mechanisms to be more robust against variations in input phrasing and suffix additions.
  • Develop and implement more sophisticated prompt sanitization techniques that detect and neutralize adversarial suffixes.
  • Explore adding detection mechanisms that specifically identify and flag responses generated due to adversarial suffix injection.
  • Conduct thorough adversarial testing and red-teaming to identify and mitigate vulnerabilities before deployment.

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
All LLMs susceptible to prompt injection attacks are potentially affected, notably those employing safety mechanisms based on prompt analysis or content filtering. Specific models tested and affected include, but are…

Research Paper

GASP: Efficient Black-Box Generation of Adversarial Suffixes for Jailbreaking 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/2411.14133