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

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

Prompt Engineering Jailbreak

Large Language Models (LLMs), specifically ChatGPT versions 3.5 and 4.0, are vulnerable to prompt engineering attacks that circumvent built-in content restrictions. Attackers can craft malicious prompts, categorized…

BibTeX citation

Paper-evaluated models(2)

  • GPT-3.5 Turbo
  • GPT-4

Description

Large Language Models (LLMs), specifically ChatGPT versions 3.5 and 4.0, are vulnerable to prompt engineering attacks that circumvent built-in content restrictions. Attackers can craft malicious prompts, categorized into "pretending," "attention shifting," and "privilege escalation" techniques, to elicit responses containing prohibited content (e.g., instructions for illegal activities, generation of harmful content). The vulnerability stems from the LLM's inability to reliably distinguish between legitimate requests within a contrived context and malicious attempts to bypass safety measures.

Examples

See https://sites.google.com/view/llm-jailbreak-study (opens in a new tab) for a dataset of 78 real-world examples. Examples include embedding prohibited requests within role-playing scenarios ("pretending") or framing them as parts of a larger task ("attention shifting"). "Privilege escalation" examples attempt to directly override safety restrictions by simulating developer modes or similar privileges. Specific examples are detailed in the linked study.

Impact

An attacker can exploit this vulnerability to obtain responses containing prohibited instructions or information, including but not limited to: instructions for illegal activities, generation of malicious content, personal information leaks, harmful advice, and circumventing safety features of the model. This poses significant security and ethical risks.

Affected Systems

ChatGPT versions 3.5 and 4.0. The vulnerability may exist in other LLMs employing similar safety mechanisms.

Mitigation Steps

  • Improve the LLM's ability to distinguish context from intent in prompts.
  • Implement more robust content filtering mechanisms, possibly using multi-modal analysis.
  • Develop enhanced detection models to identify malicious prompts based on their structure and intent.
  • Regularly update safety mechanisms based on identified attack methods.
  • Integrate AI-based countermeasures to mitigate jailbreak attempts.

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
ChatGPT versions 3.5 and 4.0. The vulnerability may exist in other LLMs employing similar safety mechanisms.

Research Paper

Jailbreaking chatgpt via prompt engineering: An empirical study

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