Injecting Universal Jailbreak Backdoors into LLMs in Minutes

Zhuowei Chen, Qiannan Zhang, Shichao Pei
2/12/2026

No official code found. Best implementation: JohnnyChanV/JailbreakEdit (12 stars, last commit 2025-03-30).

Abstract

Jailbreak backdoor attacks on LLMs have garnered attention for their effectiveness and stealth. However, existing methods rely on the crafting of poisoned datasets and the time-consuming process of fine-tuning. In this work, we propose JailbreakEdit, a novel jailbreak backdoor injection method that exploits model editing techniques to inject a universal jailbreak backdoor into safety-aligned LLMs with minimal intervention in minutes. JailbreakEdit integrates a multi-node target estimation to estimate the jailbreak space, thus creating shortcuts from the backdoor to this estimated jailbreak space that induce jailbreak actions. Our attack effectively shifts the models' attention by attaching strong semantics to the backdoor, enabling it to bypass internal safety mechanisms. Experimental results show that JailbreakEdit achieves a high jailbreak success rate on jailbreak prompts while preserving generation quality, and safe performance on normal queries. Our findings underscore the effectiveness, stealthiness, and explainability of JailbreakEdit, emphasizing the need for more advanced defense mechanisms in LLMs.

View on arXivView PDF

Code Implementations(1)

120Shell, PythonSep 21, 20241 years ago

Similar Papers

Cite this paper

@article{chen2026injecting,
  title  = {Injecting Universal Jailbreak Backdoors into LLMs in Minutes},
  author = {Zhuowei Chen and Qiannan Zhang and Shichao Pei},
  year   = {2026},
  eprint = {2502.10438},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2502.10438},
  journal = {ICLR 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/2502.10438.svg)](https://codeofpaper.com/paper/2502.10438)

Discussion