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

Junxi Chen, Junhao Dong, Xiaohua Xie
2/10/2026

No official code found. Best implementation: fhdnskfbeuv/attackIPA (12 stars, last commit 2026-03-15).

Abstract

Recently, the Image Prompt Adapter (IP-Adapter) has been increasingly integrated into text-to-image diffusion models (T2I-DMs) to improve controllability. However, in this paper, we reveal that T2I-DMs equipped with the IP-Adapter (T2I-IP-DMs) enable a new jailbreak attack named the hijacking attack. We demonstrate that, by uploading imperceptible image-space adversarial examples (AEs), the adversary can hijack massive benign users to jailbreak an Image Generation Service (IGS) driven by T2I-IP-DMs and mislead the public to discredit the service provider. Worse still, the IP-Adapter’s dependency on open-source image encoders reduces the knowledge required to craft AEs. Extensive experiments verify the technical feasibility of the hijacking attack. In light of the revealed threat, we investigate several existing defenses and explore combining the IP-Adapter with adversarially trained models to overcome existing defenses’ limitations. Our code is available at https://github.com/fhdnskfbeuv/attackIPA.

View on arXivView PDF

Code Implementations(1)

Jailbreaking T2I-DM equipped with the IP-Adapter

120Shell, PythonNov 27, 20247 months ago

Similar Papers

Cite this paper

@article{chen2026mind,
  title  = {Mind the Trojan Horse: Image Prompt Adapter Enabling Scalable and Deceptive Jailbreaking},
  author = {Junxi Chen and Junhao Dong and Xiaohua Xie},
  year   = {2026},
  eprint = {2504.05838},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2504.05838},
  journal = {CVPR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.05838.svg)](https://codeofpaper.com/paper/2504.05838)

Discussion