Bag of Tricks: Benchmarking of Jailbreak Attacks on LLMs

Zhao Xu, Fan Liu, Hao Liu
2/3/2026

No official code found. Best implementation: usail-hkust/JailTrickBench (168 stars, MIT, last commit 2024-11-30).

Abstract

Although Large Language Models (LLMs) have demonstrated significant capabilities in executing complex tasks in a zero-shot manner, they are susceptible to jailbreak attacks and can be manipulated to produce harmful outputs. Recently, a growing body of research has categorized jailbreak attacks into token-level and prompt-level attacks. However, previous work primarily overlooks the diverse key factors of jailbreak attacks, with most studies concentrating on LLM vulnerabilities and lacking exploration of defense-enhanced LLMs. To address these issues, we introduced $\textbf{JailTrickBench}$ to evaluate the impact of various attack settings on LLM performance and provide a baseline for jailbreak attacks, encouraging the adoption of a standardized evaluation framework. Specifically, we evaluate the eight key factors of implementing jailbreak attacks on LLMs from both target-level and attack-level perspectives. We further conduct seven representative jailbreak attacks on six defense methods across two widely used datasets, encompassing approximately 354 experiments with about 55,000 GPU hours on A800-80G. Our experimental results highlight the need for standardized benchmarking to evaluate these attacks on defense-enhanced LLMs. Our code is available at https://github.com/usail-hkust/JailTrickBench.

View on arXivView PDF

Code Implementations(1)

MIT

Bag of Tricks: Benchmarking of Jailbreak Attacks on LLMs. Empirical tricks for LLM Jailbreaking. (NeurIPS 2024)

16813Jinja, ShellJun 13, 20241 years agoMIT

Similar Papers

Cite this paper

@article{xu2026tricks,
  title  = {Bag of Tricks: Benchmarking of Jailbreak Attacks on LLMs},
  author = {Zhao Xu and Fan Liu and Hao Liu},
  year   = {2026},
  eprint = {2406.09324},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2406.09324},
  url    = {https://arxiv.org/abs/2406.09324},
  journal = {NEURIPS 2024 2024}
}

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/2406.09324.svg)](https://codeofpaper.com/paper/2406.09324)

Discussion