atlas

Research map / Adversarial robustness and security / Attacks on text and graphs

Mind the Trojan Horse: Image Prompt Adapter Enabling Scalable and Deceptive Jailbreaking

CVPR 2025 · Adversarial robustness and security › Attacks on text and graphs · approach: LLM jailbreak and injection defense · 4 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that image-space adversarial examples uploaded to the web can hijack benign users of IP-Adapter-equipped text-to-image diffusion models into triggering NSFW outputs, and explores adversarially trained CLIP as a defense.

Problem

Image Prompt Adapters in text-to-image diffusion models open a new jailbreak vector: benign users may unknowingly download and query with adversarial images, causing NSFW outputs and reputational harm to service providers.

Approach

Attack Encoder Only (AEO) crafts imperceptible adversarial images by aligning their features in the image encoder (CLIP or face recognition model) with an NSFW image prompt, exploiting the IP-Adapter's dependence on frozen open-source encoders, and proposes adversarially trained CLIP (FARE) to defend.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use AEO (cosine similarity) rather than a benign image promptT2I-IP-DMs · Text-to-image, weight factor 1.00NSFW rate (%): 4.50 -> 95.30Hurt
increase the weight factor from 0.25 to 1.00 for AEO (COS) (ablation)T2I-IP-DMs · Text-to-imageNSFW rate (%): 21.70 -> 95.30; 1.10 -> 77.00Mixed
use cosine similarity instead of MSE for AEO (ablation)T2I-IP-DMs · Text-to-image, weight factor 1.00NSFW rate (%): 95.30 vs 95.30; 67.60 vs 77.00Mixed
use AEO (COS) rather than a benign image promptT2I-IP-DMs · Image inpaintingISM: 0.05 -> 0.61Helped
use AEO (COS) rather than a benign image promptIDM-VTON · Virtual try-onNSFW rate (%): 5.40 -> 83.30Hurt
use InsightFace rather than CLIP as the AEO surrogate (ablation)SD-v1-5-PlusID · Image inpaintingISM: 0.06 -> 0.37Helped
use InsightFace rather than CLIP as the AEO surrogate (ablation)SDXL-PlusID · Image inpaintingISM: 0.15 -> 0.57Helped
use CLIP rather than InsightFace as the AEO surrogate (ablation)Kolors-PlusID · Image inpaintingISM: 0.09 -> 0.13Helped
increase the weight factor for AEO (ablation)T2I-IP-DMs · Text-to-imageNSFW rate (%)Helped
replace the original CLIP image encoder with adversarially trained FARE (ablation)SD-v1-5-Global · Text-to-imageAdversarial CLIP ScoreHelped
apply SLD-Strong and SLD-Max concept erasing (ablation)SD-v1-5-Global · Text-to-imageBenign CLIP ScoreHurt
apply ESD-u concept erasing (ablation)SD-v1-5-Global · Text-to-imageNSFW rate (%)Helped

Surprising findings

Limitations

Experimental setup

Datasets: NudeNet SD safety checker

Benchmarks: Text-to-image paintings Image inpainting portraits Virtual try-on garments

Metrics: Nudity rate NSFW rate ISM CLIP Score Cosine similarity to concept text

Baselines: Benign image prompt Malicious NSFW image prompt Negative Prompt ESD-u SLD FARE

Builds on: IP-Adapter PGD adversarial attack FARE ESD SLD

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy