The LMVD-ID is an internal research identifier, not an official CVE identifier.
Random Token T2I Jailbreak
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…
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
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 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
- 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 PaperEvidence
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.13896Related research
- Metaphor-Based T2I Jailbreak
Published March 1, 2025 · jailbreak, application-layer, prompt-layer
- Dynamic Prompt Jailbreak
Published May 1, 2025 · prompt-layer, jailbreak, vision
- LLM-Tuned Image Jailbreak
Published March 1, 2025 · jailbreak, application-layer, prompt-layer