Injecting Universal Jailbreak Backdoors into LLMs in Minutes

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Chen, Zhuowei, Zhang, Qiannan, Pei, Shichao
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866909493937307648
author Chen, Zhuowei
Zhang, Qiannan
Pei, Shichao
author_facet Chen, Zhuowei
Zhang, Qiannan
Pei, Shichao
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2502_10438
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Injecting Universal Jailbreak Backdoors into LLMs in Minutes
Chen, Zhuowei
Zhang, Qiannan
Pei, Shichao
Cryptography and Security
Artificial Intelligence
Machine Learning
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.
title Injecting Universal Jailbreak Backdoors into LLMs in Minutes
topic Cryptography and Security
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2502.10438