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

Kazuhiro Takemoto
1/18/2024
cs.CLcs.AIcs.CY

No official code found. Best implementation: kztakemoto/simbaja (17 stars, last commit 2024-04-24).

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.

View on arXivView PDF

Code Implementations(1)

kztakemoto/simbajaCommunity100%

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

172PythonJan 18, 20242 years ago

Similar Papers

Cite this paper

@article{takemoto2024simple,
  title  = {All in How You Ask for It: Simple Black-Box Method for Jailbreak Attacks},
  author = {Kazuhiro Takemoto},
  year   = {2024},
  eprint = {2401.09798},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.09798v3}
}

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

Discussion