TrapSuffix: Proactive Defense Against Adversarial Suffixes in Jailbreaking

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Du, Mengyao, Fang, Han, Ma, Haokai, Yang, Gang, Yin, Quanjun, Ji, Shouling, Chang, Ee-Chien
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917254531121152
author Du, Mengyao
Fang, Han
Ma, Haokai
Yang, Gang
Yin, Quanjun
Ji, Shouling
Chang, Ee-Chien
author_facet Du, Mengyao
Fang, Han
Ma, Haokai
Yang, Gang
Yin, Quanjun
Ji, Shouling
Chang, Ee-Chien
contents Suffix-based jailbreak attacks append an adversarial suffix, i.e., a short token sequence, to steer aligned LLMs into unsafe outputs. Since suffixes are free-form text, they admit endlessly many surface forms, making jailbreak mitigation difficult. Most existing defenses depend on passive detection of suspicious suffixes, without leveraging the defender's inherent asymmetric ability to inject secrets and proactively conceal gaps. Motivated by this, we take a controllability-oriented perspective and develop a proactive defense that nudges attackers into a no-win dilemma: either they fall into defender-designed optimization traps and fail to produce an effective adversarial suffix, or they can succeed only by generating adversarial suffixes that carry distinctive, traceable fingerprints. We propose TrapSuffix, a lightweight fine-tuning approach that injects trap-aligned behaviors into the base model without changing the inference pipeline. TrapSuffix channels jailbreak attempts into these two outcomes by reshaping the model's response landscape to adversarial suffixes. Across diverse suffix-based jailbreak settings, TrapSuffix reduces the average attack success rate to below 0.01 percent and achieves an average tracing success rate of 87.9 percent, providing both strong defense and reliable traceability. It introduces no inference-time overhead and incurs negligible memory cost, requiring only 15.87 MB of additional memory on average, whereas state-of-the-art LLM-based detection defenses typically incur memory overheads at the 1e4 MB level, while composing naturally with existing filtering-based defenses for complementary protection.
format Preprint
id arxiv_https___arxiv_org_abs_2602_06630
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle TrapSuffix: Proactive Defense Against Adversarial Suffixes in Jailbreaking
Du, Mengyao
Fang, Han
Ma, Haokai
Yang, Gang
Yin, Quanjun
Ji, Shouling
Chang, Ee-Chien
Cryptography and Security
Suffix-based jailbreak attacks append an adversarial suffix, i.e., a short token sequence, to steer aligned LLMs into unsafe outputs. Since suffixes are free-form text, they admit endlessly many surface forms, making jailbreak mitigation difficult. Most existing defenses depend on passive detection of suspicious suffixes, without leveraging the defender's inherent asymmetric ability to inject secrets and proactively conceal gaps. Motivated by this, we take a controllability-oriented perspective and develop a proactive defense that nudges attackers into a no-win dilemma: either they fall into defender-designed optimization traps and fail to produce an effective adversarial suffix, or they can succeed only by generating adversarial suffixes that carry distinctive, traceable fingerprints. We propose TrapSuffix, a lightweight fine-tuning approach that injects trap-aligned behaviors into the base model without changing the inference pipeline. TrapSuffix channels jailbreak attempts into these two outcomes by reshaping the model's response landscape to adversarial suffixes. Across diverse suffix-based jailbreak settings, TrapSuffix reduces the average attack success rate to below 0.01 percent and achieves an average tracing success rate of 87.9 percent, providing both strong defense and reliable traceability. It introduces no inference-time overhead and incurs negligible memory cost, requiring only 15.87 MB of additional memory on average, whereas state-of-the-art LLM-based detection defenses typically incur memory overheads at the 1e4 MB level, while composing naturally with existing filtering-based defenses for complementary protection.
title TrapSuffix: Proactive Defense Against Adversarial Suffixes in Jailbreaking
topic Cryptography and Security
url https://arxiv.org/abs/2602.06630