LLMs can be Dangerous Reasoners: Analyzing-based Jailbreak Attack on Large Language Models

Shi Lin, Hongming Yang, Rongchang Li, Xun Wang, Changting Lin +2 more
7/23/2024
6 citations
cs.CRcs.AIcs.CL

No official code found. Best implementation: theshi-1128/ReDPJ (22 stars, Python, last commit 2026-04-03).

Abstract

The rapid development of Large Language Models (LLMs) has brought impressive advancements across various tasks. However, despite these achievements, LLMs still pose inherent safety risks, especially in the context of jailbreak attacks.

Show full abstract

Most existing jailbreak methods follow an input-level manipulation paradigm to bypass safety mechanisms. Yet, as alignment techniques improve, such attacks are becoming increasingly detectable. In this work, we identify an underexplored threat vector: the model's internal reasoning process, which can be manipulated to elicit harmful outputs in a more stealthy way. To explore this overlooked attack surface, we propose a novel black-box jailbreak attack method, Analyzing-based Jailbreak (ABJ). ABJ comprises two independent attack paths: textual and visual reasoning attacks, which exploit the model's multimodal reasoning capabilities to bypass safety mechanisms, comprehensively exposing vulnerabilities in its reasoning chain. We conduct extensive experiments on ABJ across various open-source and closed-source LLMs, VLMs, and RLMs. In particular, ABJ achieves high attack success rate (ASR) (82.1% on GPT-4o-2024-11-20) with exceptional attack efficiency (AE) among all target models, showcasing its remarkable attack effectiveness, transferability, and efficiency. Our work reveals a new type of safety risk and highlights the urgent need to mitigate implicit vulnerabilities in the model's reasoning process.

View on arXivView PDF

Code Implementations(1)

theshi-1128/ReDPJCommunity100%

A novel jailbreak attack unveiling an overlooked attack surface inherently in the chain-of-thought reasoning trajectory of LLMs

225PythonJul 31, 20248 months ago

Similar Papers

Cite this paper

@article{lin2024llms,
  title  = {LLMs can be Dangerous Reasoners: Analyzing-based Jailbreak Attack on Large Language Models},
  author = {Shi Lin and Hongming Yang and Rongchang Li and Xun Wang and Changting Lin and Wenpeng Xing and Meng Han},
  year   = {2024},
  eprint = {2407.16205},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.16205v6}
}

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

Discussion