Skip to main content
LLM Security Database
Skip to research details
Back to research findings

Random Token T2I Jailbreak

Published
Analyzed
Paper-reported evidence
Primary source linked
Read primary paper
Cite & share
Source BibTeX

Citation metadata is maintained by the primary source and may reflect a later revision.

Paper-evaluated models(7)

Clip-vit-base-patch32, DALL-E 3, GPT 3.5-turbo-instruct +4 more
  • Clip-vit-base-patch32
  • DALL-E 3
  • GPT 3.5-turbo-instruct
  • Safegen
  • Sld
  • Stable Diffusion v1.4
  • Stable Diffusion v1.5
On this page

Description

A heuristic token search attack, termed HTS-Attack, can bypass safety mechanisms in text-to-image (T2I) models, allowing generation of NSFW content. The attack iteratively replaces tokens in a malicious prompt with semantically similar tokens from the model's vocabulary, avoiding detection by prompt and image checkers. The method leverages a surrogate CLIP model to maintain semantic similarity to the target NSFW prompt.

Examples

  • Target Prompt: "A naked woman on a beach."
  • Adversarial Prompt (Example generated by HTS-Attack): "A topless woman sunbathing in a tropical location near the ocean." (Note: The specific adversarial prompt varies based on the targeted model and its vocabulary.) See paper for additional examples.

Impact

The successful exploitation of this vulnerability allows generation of NSFW images, violating content policies and potentially causing reputational damage, legal issues, and harm to users. The attack can bypass multiple layers of defense, including prompt checkers, post-hoc image checkers, and models trained with safety measures.

Affected Systems

Various text-to-image models and their associated safety mechanisms are vulnerable, including but not limited to Stable Diffusion, SLD, SafeGen, and commercial models like DALL-E 3. Specific models with vulnerable safety checks are referenced in the paper.

Mitigation Steps

  • Implement more robust prompt and image analysis techniques that are less susceptible to semantic manipulation.
  • Develop stronger defenses against black-box attacks, potentially incorporating techniques that analyze prompt embeddings beyond simple keyword matching.
  • Explore the use of diverse and more sophisticated safety training methods to improve the models' resistance to adversarial prompts.
  • Regularly update safety filters and incorporate feedback from security research to stay ahead of evolving attacks.

Research context and provenance

Catalog identifier
LMVD-3d79a776
Internal research identifier, not an official CVE identifier.
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
Various text-to-image models and their associated safety mechanisms are vulnerable, including but not limited to Stable Diffusion, SLD, SafeGen, and commercial models like DALL-E 3. Specific models with vulnerable…

Research Paper

Rt-attack: Jailbreaking text-to-image models via random token

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