Skip to main content
LLM Security Database
Skip to research details
Back to research findings
LMVD-ID: ef97e09b
Paper published June 1, 2024
Entry analyzed March 4, 2025
Paper-reported evidence
Confidence: Source-linked

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

Knowledge-Based LLM Jailbreak

Large Language Models (LLMs) are vulnerable to knowledge-based jailbreaks, where an attacker provides domain-specific knowledge to elicit harmful or unintended outputs. The vulnerability stems from the LLM's ability to…

BibTeX citation

Paper-evaluated models(9)

FinanceChat 7B, GPT-3.5 Turbo, GPT-4 Turbo +6 more
  • FinanceChat 7B
  • GPT-3.5 Turbo
  • GPT-4 Turbo
  • LawChat 7B
  • Llama 2 13B Chat
  • Llama 2 7B
  • Llama 2 7B Chat
  • Mistral 7B Instruct
  • Vicuna 7B v1.5

Description

Large Language Models (LLMs) are vulnerable to knowledge-based jailbreaks, where an attacker provides domain-specific knowledge to elicit harmful or unintended outputs. The vulnerability stems from the LLM's ability to process and respond to knowledge inputs in a way that circumvents safety mechanisms, even if the input knowledge itself isn't inherently malicious. Attackers leverage this by constructing prompts that combine seemingly innocuous knowledge with subtly manipulative phrasing to bypass safety filters.

Examples

See https://github.com/THU-KEG/Knowledge-to-Jailbreak/ (opens in a new tab) for dataset examples. The paper provides examples demonstrating how seemingly harmless knowledge about Toutiao (a Chinese social media platform) can be combined with suggestive phrasing to prompt an LLM to generate harmful responses.

Impact

Successful exploitation allows attackers to circumvent LLMs' built-in safety measures, leading to the generation of harmful content, including but not limited to: hate speech, instructions for illegal activities, harmful misinformation, and personally identifying information. This compromises the trustworthiness and safety of the LLM, potentially causing reputational damage to the vendor and harm to individuals.

Affected Systems

This vulnerability affects a wide range of LLMs, including both open-source and commercially available models. The paper demonstrates the vulnerability in several models, including Llama2, Vicuna, and GPT-3.5/GPT-4. The exact level of susceptibility may vary between different models and their safety training.

Mitigation Steps

  • Improved safety training: Enhance safety training data to include a wider range of knowledge-based attack scenarios.
  • Prompt engineering defenses: Develop more robust prompt engineering techniques to detect and mitigate knowledge-based attacks.
  • Knowledge filtering: Implement mechanisms to filter or identify potentially dangerous knowledge inputs before they reach the LLM.
  • Output filtering: Enhance output filters to better detect and block harmful or unintended responses generated due to these exploits.
  • Adversarial training: Train LLMs on adversarial examples to increase their resilience to knowledge-based attacks.

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
This vulnerability affects a wide range of LLMs, including both open-source and commercially available models. The paper demonstrates the vulnerability in several models, including Llama2, Vicuna, and GPT-3.5/GPT-4…

Research Paper

Knowledge-to-jailbreak: One knowledge point worth one 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/2406.11682