Papers › Bag of Tricks: Benchmarking of Jailbreak Attacks on LLMs

Bag of Tricks: Benchmarking of Jailbreak Attacks on LLMs

13 Jun 2024arXiv:2406.09324archive 2025-07-28

Zhao Xu, Fan Liu, Hao liu

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 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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2406.09324")

Code

Syntology Ran 10 of 11 code samples harvested from 2 repositories linked to this paper; 1 has no recorded run. Of those that ran: 10 ran with no contract checked.

By repository: official repository: 11 samples from 2 repositories, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

usail-hkust/bag_of_tricks_for_llm_jailbreaking officialmentioned in papermentioned on GitHubpytorchMIT report
usail-hkust/jailtrickbench officialmentioned in paperpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 10 ran; 0 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

10ran
1unverified

Licence: 0 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

extract_keywords_and_numbers usail-hkust/JailTrickBench/GPTEvaluatorAgent/common.py official repository ran fingerprinted MIT (permissive) · bc744b10851b8303 · report
filter_Null usail-hkust/JailTrickBench/analysis/report_trick.py official repository ran MIT (permissive) · 5a305b2685e3db88 · report
get_evident_judge_system_prompt usail-hkust/JailTrickBench/GPTEvaluatorAgent/system_prompts.py official repository ran fingerprinted MIT (permissive) · 2a1d9def76e4e4ab · report
process_target_response usail-hkust/JailTrickBench/GPTEvaluatorAgent/common.py official repository ran MIT (permissive) · 9fdfb4537f5fd761 · report
random_insert_updated usail-hkust/bag_of_tricks_for_llm_jailbreaking/llm_smooth/smoothLLM.py official repository ran MIT (permissive) · fee5b8c91309a053 · report
random_patch usail-hkust/bag_of_tricks_for_llm_jailbreaking/llm_smooth/smoothLLM.py official repository ran MIT (permissive) · 49585f317c841af4 · report
random_swap_updated usail-hkust/bag_of_tricks_for_llm_jailbreaking/llm_smooth/smoothLLM.py official repository ran MIT (permissive) · 3d48c8f02186ce29 · report
remove_code_blocks usail-hkust/JailTrickBench/GPTEvaluatorAgent/language_models.py official repository ran fingerprinted MIT (permissive) · db66e64c1a095a76 · report
short_str usail-hkust/JailTrickBench/analysis/report_trick.py official repository ran fingerprinted MIT (permissive) · dd40eb4d6e7fc975 · report
smooth_pert usail-hkust/JailTrickBench/defense.py official repository ran MIT (permissive) · 67ddc38b3c00c1de · report
generate_defense_goal usail-hkust/JailTrickBench/defense.py official repository unverified MIT (permissive) · 10631d69a34d5165 · report

Tasks

Benchmarking

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections