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

Faster GCG LLM Jailbreak

Faster-GCG is an optimized jailbreak attack that exploits vulnerabilities in aligned Large Language Models (LLMs) by efficiently finding adversarial prompt suffixes. The attack leverages gradient information to…

BibTeX citation

Paper-evaluated models(4)

  • GPT-3.5 Turbo
  • GPT-4 Turbo
  • Llama 2 7B Chat
  • Vicuna 13B v1.5

Description

Faster-GCG is an optimized jailbreak attack that exploits vulnerabilities in aligned Large Language Models (LLMs) by efficiently finding adversarial prompt suffixes. The attack leverages gradient information to iteratively refine a harmful prompt, overcoming limitations of prior methods like GCG by incorporating a regularization term to improve gradient approximation, using deterministic greedy sampling, and preventing self-looping during optimization. This allows for significantly higher attack success rates with reduced computational cost.

Examples

See the paper's repository for code and specific examples of adversarial suffixes generated by Faster-GCG against various LLMs including Llama-2-7B-chat and Vicuna-13B.

Impact

Successful exploitation allows adversaries to bypass safety mechanisms implemented in LLMs, eliciting malicious or harmful outputs that the model is normally trained to avoid. This impacts the reliability and safety of LLM applications. The attack's improved efficiency and transferability to closed-source models like ChatGPT pose a significant threat.

Affected Systems

Various open-source and closed-source LLMs, including but not limited to Llama-2-7B-chat, Vicuna-13B, and GPT-3.5-Turbo-1106. The attack's transferability suggests a broader impact.

Mitigation Steps

  • Improved gradient estimation techniques: Develop more robust methods for calculating gradients in the discrete token space, accounting for the distances between token embeddings.
  • Enhanced prompt filtering: Implement more sophisticated prompt filtering mechanisms to detect and block adversarial suffixes. This could involve analysis of prompt perplexity or similarity to known adversarial examples.
  • Adversarial training: Train LLMs with adversarial examples generated by methods like Faster-GCG to increase their robustness to these attacks.
  • Regularized loss functions: Utilize less sensitive loss functions that are less susceptible to manipulation via targeted attacks.
  • Monitoring and detection: Implement monitoring systems which search for and block unusual prompt patterns which have been shown to be effective for jailbreaking models. This requires ongoing investigation to keep up to date with new attack methods.

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
Both white-box and black-box research contexts are tagged; consult the primary paper for target-specific access.
Related deployment categories
No related deployment category is classified.
Taxonomy labels only; paper-specific deployment prerequisites are not inferred.
Affected systems
Various open-source and closed-source LLMs, including but not limited to Llama-2-7B-chat, Vicuna-13B, and GPT-3.5-Turbo-1106. The attack's transferability suggests a broader impact.

Research Paper

Faster-GCG: Efficient discrete optimization jailbreak attacks against 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/2410.15362