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

Safeguard Denial-of-Service Attack

A denial-of-service (DoS) vulnerability exists in certain Large Language Model (LLM) safeguard implementations due to susceptibility to adversarial prompts. Attackers can inject short, seemingly innocuous adversarial…

BibTeX citation

Paper-evaluated models(5)

GPT-4o Mini, Llama Guard 2 8B, Llama Guard 3 8B +2 more
  • GPT-4o Mini
  • Llama Guard 2 8B
  • Llama Guard 3 8B
  • Llama Guard 7B
  • Vicuna 7B v1.5

Description

A denial-of-service (DoS) vulnerability exists in certain Large Language Model (LLM) safeguard implementations due to susceptibility to adversarial prompts. Attackers can inject short, seemingly innocuous adversarial prompts into user prompt templates, causing the safeguard to incorrectly classify legitimate user requests as unsafe and reject them. This allows for a DoS attack against specific users without requiring modification of the LLM itself.

Examples

The paper demonstrates successful attacks against Llama Guard 3 and Vicuna using adversarial prompts as short as 30 characters. Specific examples of these prompts are provided in the paper's Appendix A. See arXiv:2410.02916 (opens in a new tab).

Impact

Denial-of-service affecting legitimate users of the LLM. This can lead to disruption of service, economic losses, and potential harm depending on the application (e.g., financial transactions, healthcare).

Affected Systems

LLM systems employing safeguard mechanisms vulnerable to adversarial prompts via template injection. Specifically, systems using Llama Guard (versions 2 and 3) and Vicuna are shown to be vulnerable. The vulnerability is not limited to these specific systems, but applies more broadly to those with similar architectures.

Mitigation Steps

  • Secure user client software against vulnerabilities that allow template injection (e.g., path traversal, command injection, cross-site scripting).
  • Implement input sanitization and validation mechanisms to detect and block potentially adversarial prompts within user-supplied templates.
  • Develop safeguard models more robust to adversarial examples. The paper suggests that further research into defenses against adversarial examples is required, but that existing defenses such as random perturbation alone are insufficient.
  • Educate users to regularly review and validate the integrity of their prompt templates.
  • Implement rate limiting to mitigate the impact of a successful attack.

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
LLM systems employing safeguard mechanisms vulnerable to adversarial prompts via template injection. Specifically, systems using Llama Guard (versions 2 and 3) and Vicuna are shown to be vulnerable. The vulnerability…

Research Paper

Safeguard is a Double-edged Sword: Denial-of-service Attack on 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.02916