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

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

SMILES-Prompting LLM Jailbreak

Large Language Models (LLMs) used in chemical synthesis applications are vulnerable to a novel attack vector, dubbed "SMILES-prompting," which leverages the Simplified Molecular-Input Line-Entry System (SMILES)…

BibTeX citation

Paper-evaluated models(2)

  • GPT-4o
  • Llama 3 70B Instruct

Description

Large Language Models (LLMs) used in chemical synthesis applications are vulnerable to a novel attack vector, dubbed "SMILES-prompting," which leverages the Simplified Molecular-Input Line-Entry System (SMILES) notation to bypass safety mechanisms and elicit instructions for synthesizing hazardous substances. The attack exploits the LLM's inability to effectively filter or interpret SMILES strings representing dangerous chemicals, leading to the disclosure of synthesis procedures.

Examples

See https://github.com/IDEA-XL/ChemSafety (opens in a new tab). The repository contains example SMILES strings and prompts used to successfully elicit synthesis instructions for hazardous materials from multiple LLMs. Specific examples include prompts that successfully obtain synthesis information for explosives, drugs, and chemical weapons using the SMILES notation of the target substance, even when direct prompts using the substance's name are blocked.

Impact

Successful exploitation of this vulnerability could result in the disclosure of instructions for synthesizing hazardous chemicals, potentially leading to the production of explosives, illicit drugs, or chemical weapons. This poses a significant risk to public safety and national security.

Affected Systems

LLMs employed in chemical synthesis applications or any application where SMILES notation is processed are affected. Specific LLMs exhibiting vulnerability include, but are not limited to, GPT-4o and Llama-3-70B-Instruct. The vulnerability is likely present in other LLMs with similar capabilities.

Mitigation Steps

  • Implement robust input sanitization and validation mechanisms that specifically target SMILES strings, including checks against known hazardous chemical structures.
  • Integrate a knowledge base of hazardous SMILES strings and associated synthesis pathways into the LLM's response generation process, allowing it to proactively identify and reject dangerous queries.
  • Develop a mechanism to translate SMILES notation into a standardized, safer internal representation before processing by the LLM.
  • Train the LLM on a dataset that includes a large number of examples of both legitimate and malicious SMILES strings and their associated responses, enhancing its ability to discern safe from dangerous uses.
  • Implement explicit prohibition of providing synthesis instructions, regardless of the input format. This may limit legitimate uses of the model, resulting in a tradeoff between security and functionality.

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
LLMs employed in chemical synthesis applications or any application where SMILES notation is processed are affected. Specific LLMs exhibiting vulnerability include, but are not limited to, GPT-4o and…

Research Paper

SMILES-Prompting: A Novel Approach to LLM Jailbreak Attacks in Chemical Synthesis

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.15641