Mirage: a targeted jailbreak attack against post-generation safety checkers of multimodal diffusion modelsMirage: Targeted Jailbreaks Against Post-Generation Safety Checkers in Multimodal Diffusion Models
Translation in progress — untranslated text is omitted.
Researchers propose a multimodal jailbreak attack named Mirage that can bypass post-generation safety checkers used in diffusion model pipelines to intercept unsafe content. The attack hides adversarial targets such as reference NSFW images or malicious text descriptions in imperceptible perturbations applied to benign input images, exploiting the shared representation space of multimodal encoders to align the perturbed image with cross-modal adversarial targets while staying away from frequently filtered NSFW concepts. This semantic separation can transfer across representation spaces, thus escaping heterogeneous safety checkers without access to checker internals, and is supplemented by lightweight black-box query optimization to improve escape effectiveness near unknown safety boundaries. The authors implement the attack on Stable Diffusion 1.5, Stable Diffusion XL and Kandinsky 2.2, and evaluate it on two cross-modal NSFW datasets, covering text-to-image and image-to-image scenarios; experimental results show that Mirage achieves strong targeted jailbreak effects against multiple post-generation safety checkers with limited black-box queries, while maintaining high semantic alignment with the adversarial targets.
- Diffusion model pipelines generally use post-generation safety checkers to block NSFW outputs. The authors ask: can an attacker, without knowing the checker's architecture, filtered concepts, and thresholds, both preserve fine-grained malicious target semantics and bypass the checker.
- Mirage exploits the shared representation space of multimodal encoders, using a contrastive learning objective to align the representation of the perturbed image with a text or image attack target while pushing it away from common NSFW concepts, then uses Square Attack random search for lightweight black-box query refinement, with the perturbation norm-bounded by ϵ throughout.
- Evaluated on SD1.5, SDXL, Kandinsky 2.2, and three checkers. Under I2P text targets, ASR is mostly 0.510–0.960; under NSFW image targets, when SD1.5/SDXL encounter the ViT Checker, ASR drops to 0.180/0.280. The authors state Mirage's ASR is higher than baselines such as SneakyPrompt, AdvIllu, and Image Trojan, with fewer queries.
- The authors state that finding an effective proxy encoder for fully closed-source models remains difficult, and that extension to other modalities and stronger proxy models is left for future work; in preliminary experiments on LLaVA-1.5-7B, the outputs did not closely match the target. The experiments cover 3 open-source diffusion models, 3 checkers, and 2 datasets; the paper does not report the number of repetitions or statistical tests.