JailBreakGuard: defeating jailbreak attacks via dynamic prompt perturbation

Large language models (LLMs) are vulnerable to jailbreak attacks, in which malicious users craft prompts to cause the generation of harmful output. Although numerous defense mechanisms have been investigated, they exhibit critical limitations: 1) a single defense method cannot effectively counter multiple jailbreak types, and 2) the inclusion of multiple defenses incurs substantial resource consumption and deployment costs, hindering large-scale application. To resolve these limitations, we propose JailBreakGuard, a prompt perturbation-based defense framework. The core of JailBreakGuard is a novel perplexity-based perturbation strategy selection mechanism, which dynamically integrates the strengths of various perturbation methods, thereby enabling defense against a wide range of jailbreak attacks. Leveraging the susceptibility of jailbreak prompts to perturbations, we apply either character-level or sentence-level perturbations at the input stage. This eliminates modifications to the target model, ensuring low implementation cost and resource consumption, and enables convenient deployment at the service interface of LLM-based applications, including service-providing nodes in peer-to-peer (P2P) environments. Extensive experiments across nine jailbreak attacks spanning seven categories demonstrate that JailBreakGuard reduces the average attack success rate by over 70% on both victim models. Meanwhile, it limits the maximum performance degradation on benign queries to 3.19%, exhibiting strong generalizability and usability.

Authors

Institutions

Publication Details

Journal
Peer-to-Peer Networking and Applications
Published
2026-12-03
DOI
https://doi.org/10.1007/s12083-026-02314-7
Primary Topic
Adversarial Robustness in Machine Learning
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

JailBreakGuard: defeating jailbreak attacks via dynamic prompt perturbation

Rui Tang, Liangguo Chen, Shuyu Jiang, Jun Yuan et al.
1 links
Peer-to-Peer Networking and Applications
Adversarial Robustness in Machine Learning
article

JailBreakGuard: defeating jailbreak attacks via dynamic prompt perturbation

Rui Tang, Liangguo Chen, Shuyu Jiang, Jun Yuan, Ziang Ruan, Hao Ren
article en

Abstract

Large language models (LLMs) are vulnerable to jailbreak attacks, in which malicious users craft prompts to cause the generation of harmful output. Although numerous defense mechanisms have been investigated, they exhibit critical limitations: 1) a single defense method cannot effectively counter multiple jailbreak types, and 2) the inclusion of multiple defenses incurs substantial resource consumption and deployment costs, hindering large-scale application. To resolve these limitations, we propose JailBreakGuard, a prompt perturbation-based defense framework. The core of JailBreakGuard is a novel perplexity-based perturbation strategy selection mechanism, which dynamically integrates the strengths of various perturbation methods, thereby enabling defense against a wide range of jailbreak attacks. Leveraging the susceptibility of jailbreak prompts to perturbations, we apply either character-level or sentence-level perturbations at the input stage. This eliminates modifications to the target model, ensuring low implementation cost and resource consumption, and enables convenient deployment at the service interface of LLM-based applications, including service-providing nodes in peer-to-peer (P2P) environments. Extensive experiments across nine jailbreak attacks spanning seven categories demonstrate that JailBreakGuard reduces the average attack success rate by over 70% on both victim models. Meanwhile, it limits the maximum performance degradation on benign queries to 3.19%, exhibiting strong generalizability and usability.

Peer-to-Peer Networking and ApplicationsVol. 20(1)
Sichuan University (CN), Guilin University of Electronic Technology (CN)
National Natural Science Foundation of China, Fundamental Research Funds for the Central Universities
Adversarial Robustness in Machine Learning
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon