SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2401.09798 · 2024

All in How You Ask for It: Simple Black-Box Method for Jailbreak Attacks

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 7 functions out of this paper's own repositories and ran 3 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
kztakemoto/simbaja canonical 3 of 7
FunctionStatusWhere it lives
augmentation Ran kztakemoto/simbaja/utils.py
pointer only (licence: NONE) · get_code("d57c22aa4ee67ca7")
evaluate_by_chatgpt Ran kztakemoto/simbaja/utils.py
pointer only (licence: NONE) · get_code("e24b620a47e8f8f0")
get_label Ran kztakemoto/simbaja/utils.py
pointer only (licence: NONE) · get_code("42280f4c11a80c75")
chatgpt Not yet run kztakemoto/simbaja/run_MJA_chatgpt.py
pointer only (licence: NONE) · get_code("99867e8299b07131")
chatgpt Not yet run kztakemoto/simbaja/run_Ours_chatgpt.py
pointer only (licence: NONE) · get_code("00d14c66b24f3ecc")
chatgpt_attacker Not yet run kztakemoto/simbaja/run_PAIR_chatgpt.py
pointer only (licence: NONE) · get_code("5f1435b53cfdf57a")
rephrasing Not yet run kztakemoto/simbaja/run_Ours_chatgpt.py
pointer only (licence: NONE) · get_code("613011cd65ed594e")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Large Language Models (LLMs), such as ChatGPT, encounter `jailbreak' challenges, wherein safeguards are circumvented to generate ethically harmful prompts. This study introduces a straightforward black-box method for efficiently crafting jailbreak prompts, addressing the significant complexity and computational costs associated with conventional methods. Our technique iteratively transforms harmful prompts into benign expressions directly utilizing the target LLM, predicated on the hypothesis that LLMs can autonomously generate expressions that evade safeguards. Through experiments conducted with ChatGPT (GPT-3.5 and GPT-4) and Gemini-Pro, our method consistently achieved an attack success rate exceeding 80% within an average of five iterations for forbidden questions and proved robust against model updates. The jailbreak prompts generated were not only naturally-worded and succinct but also challenging to defend against. These findings suggest that the creation of effective jailbreak prompts is less complex than previously believed, underscoring the heightened risk posed by black-box jailbreak attacks.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2401.09798")
get_code_for_paper("2401.09798")
have("2401.09798")

Connect an agent — have() is free.