Skip to main content
LLM Security Database
Skip to research details
Back to research findings
LMVD-ID: 3ed6d15e
Paper published October 1, 2023
Entry analyzed January 26, 2025
Paper-reported evidence
Confidence: Source-linked

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

Self-Fooling LLM Prompt Attack

A prompt-based adversarial attack, termed PromptAttack, can cause Large Language Models (LLMs) to generate incorrect outputs by manipulating the input prompt. PromptAttack crafts prompts that include the original…

BibTeX citation

Paper-evaluated models(1)

  • GPT-3.5 Turbo

Description

A prompt-based adversarial attack, termed PromptAttack, can cause Large Language Models (LLMs) to generate incorrect outputs by manipulating the input prompt. PromptAttack crafts prompts that include the original input, an attack objective (to generate semantically similar but misclassified output), and attack guidance with instructions for character, word, or sentence-level perturbations. This allows an attacker to manipulate an LLM's response without direct access to its internal parameters. An example is adding a simple emoji ":)" to successfully mislead GPT-3.5.

Examples

See arXiv:2310.13345 (opens in a new tab) for numerous examples demonstrating the attack's success against Llama2 and GPT-3.5 across various tasks in the GLUE benchmark. Specific examples are shown in Tables 2 and 17 of the provided paper.

Impact

Successful exploitation leads to incorrect LLM outputs, potentially impacting applications relying on the LLM for accurate results. This can have significant consequences depending on the application, ranging from minor inconveniences to severe safety hazards in safety-critical domains such as medicine and industrial control. The attack is effective against both open-source and closed-source LLMs, and requires only API access.

Affected Systems

Large Language Models (LLMs), specifically those susceptible to prompt manipulation. The paper demonstrates the vulnerability in Llama2 and GPT-3.5, suggesting broader applicability.

Mitigation Steps

  • Implement prompt sanitization techniques to detect and mitigate malicious prompt components.
  • Develop and deploy robust input validation mechanisms.
  • Explore and implement techniques to increase the model's resistance to prompt-based adversarial attacks, such as adversarial training.
  • Utilize ensemble methods to incorporate multiple LLM predictions and improve the reliability of the overall output.

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), specifically those susceptible to prompt manipulation. The paper demonstrates the vulnerability in Llama2 and GPT-3.5, suggesting broader applicability.

Research Paper

An LLM can Fool Itself: A Prompt-Based Adversarial Attack

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