English

Universal Jailbreak Suffixes Are Strong Attention Hijackers

Cryptography and Security 2025-12-23 v2

Abstract

We study suffix-based jailbreaks\unicodex2013\unicode{x2013}a powerful family of attacks against large language models (LLMs) that optimize adversarial suffixes to circumvent safety alignment. Focusing on the widely used foundational GCG attack, we observe that suffixes vary in efficacy: some are markedly more universal\unicodex2013\unicode{x2013}generalizing to many unseen harmful instructions\unicodex2013\unicode{x2013}than others. We first show that a shallow, critical mechanism drives GCG's effectiveness. This mechanism builds on the information flow from the adversarial suffix to the final chat template tokens before generation. Quantifying the dominance of this mechanism during generation, we find GCG irregularly and aggressively hijacks the contextualization process. Crucially, we tie hijacking to the universality phenomenon, with more universal suffixes being stronger hijackers. Subsequently, we show that these insights have practical implications: GCG's universality can be efficiently enhanced (up to ×\times5 in some cases) at no additional computational cost, and can also be surgically mitigated, at least halving the attack's success with minimal utility loss. We release our code and data at http://github.com/matanbt/interp-jailbreak.

Cite

@article{arxiv.2506.12880,
  title  = {Universal Jailbreak Suffixes Are Strong Attention Hijackers},
  author = {Matan Ben-Tov and Mor Geva and Mahmood Sharif},
  journal= {arXiv preprint arXiv:2506.12880},
  year   = {2025}
}

Comments

Accepted at TACL 2026

R2 v1 2026-07-01T03:18:31.522Z