Skip to main content
LLM Security Database
Skip to research details
Back to research findings
LMVD-ID: 61a91449
Paper published October 1, 2023
Entry analyzed December 28, 2024
Paper-reported evidence
Confidence: Source-linked

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

LLM Red Teaming Framework

A vulnerability in large language models (LLMs) allows attackers to craft malicious prompts that induce the LLM to generate harmful content, such as fraudulent material, racist remarks, or instructions for illegal…

BibTeX citation

Paper-evaluated models

No paper-evaluated models are recorded for this entry.

Description

A vulnerability in large language models (LLMs) allows attackers to craft malicious prompts that induce the LLM to generate harmful content, such as fraudulent material, racist remarks, or instructions for illegal activities. The vulnerability arises from the LLM's inability to reliably distinguish between benign and malicious instructions disguised within seemingly innocuous prompts. Attackers can exploit this by leveraging techniques like obfuscation, code injection/payload splitting, and virtualization to bypass safety filters and elicit harmful responses.

Examples

  • Obfuscation: Replacing "COVID-19" with "CVID" in a prompt requesting information about pandemic relief funds might bypass keyword filters.
  • Code Injection/Payload Splitting: Breaking a malicious instruction into multiple parts, each seemingly harmless, to circumvent detection mechanisms. See https://github.com/Aatrox103/SAP (opens in a new tab) for examples (Specifically, the SAP dataset).
  • Virtualization: Creating a fictional scenario (e.g., a role-playing game) where the LLM assumes a persona that allows it to generate content it would otherwise refuse to produce due to ethical constraints. See https://github.com/Aatrox103/SAP (opens in a new tab) for examples.

Impact

The successful exploitation of this vulnerability can lead to the generation and dissemination of harmful content, damaging the reputation of the LLM provider, causing social harm, and potentially facilitating illegal activities.

Affected Systems

Large language models (LLMs) including but not limited to GPT-3.5, Alpaca, and other LLMs susceptible to prompt injection attacks.

Mitigation Steps

  • Improved prompt filtering: Implement more robust filtering mechanisms that are able to detect obfuscated and cleverly disguised malicious prompts.
  • Advanced prompt analysis: Employ techniques that analyze the semantic meaning and intent behind prompts, rather than relying solely on keyword matching.
  • Adversarial training: Train the LLM on a diverse dataset of adversarial prompts designed to elicit harmful responses, and refine the model's ability to discern malicious intent.
  • Iterative fine-tuning: Regularly fine-tune the model with newly generated attack prompts (using a framework like that described in the paper) to enhance its resilience to attack.
  • User feedback incorporation: Collect and incorporate user feedback on harmful outputs generated by the model to improve the training datasets and further refine the model's safety mechanisms.

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) including but not limited to GPT-3.5, Alpaca, and other LLMs susceptible to prompt injection attacks.

Research Paper

Attack prompt generation for red teaming and defending 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/2310.12505