paper-with-me

Papers

FlipAttack: Jailbreak LLMs via Flipping

2024-10-02 · Yue Liu, Xiaoxin He, Miao Xiong, Jinlan Fu, Shumin Deng, Bryan Hooi

This paper proposes a simple yet effective jailbreak attack named FlipAttack against black-box LLMs. First, from the autoregressive nature, we reveal that LLMs tend to understand the text from left to right and find that they struggle to comprehend the text when noise is added to the left side. Motivated by these insights, we propose to disguise the harmful prompt by constructing left-side noise merely based on the prompt itself, then generalize this idea to 4 flipping modes. Second, we verify the strong ability of LLMs to perform the text-flipping task, and then develop 4 variants to guide LLMs to denoise, understand, and execute harmful behaviors accurately. These designs keep FlipAttack universal, stealthy, and simple, allowing it to jailbreak black-box LLMs within only 1 query. Experiments on 8 LLMs demonstrate the superiority of FlipAttack. Remarkably, it achieves $\sim$98\% attack success rate on GPT-4o, and $\sim$98\% bypass rate against 5 guardrail models on average. The codes are available at GitHub\footnote{https://github.com/yueliu1999/FlipAttack}.

📄 PDF Abstract BibTeX arXiv:2410.02832

Code (2)

yueliu1999/flipattack 공식 구현
yueliu1999/elcrec pytorch

Similar Papers 제목 키워드 기반

Alphabet Index Mapping: Jailbreaking LLMs through Semantic Dissimilarity

2025-06-15 · Bilal Saleh Husain

Large Language Models (LLMs) have demonstrated remarkable capabilities, yet their susceptibility to adversarial attacks, particularly jailbreaking, poses significant safety and ethical concerns. While numerous jailbreak …

Adversarial Attack

Rapid Poison: Practical Poisoning Attacks Against the Rapid Response Framework

2026-06-15 · David Huang, Jaewon Chang, Avidan Shah, Prateek Mittal 외 arxiv

The Rapid Response (RR) framework, deployed in production systems, including Anthropic's ASL-3 safeguards, continuously improves jailbreak-detection classifiers. When new jailbreaks emerge that bypass these classifiers, …

JailBreakV: A Benchmark for Assessing the Robustness of MultiModal Large Language Models against Jailbreak Attacks

2024-04-03 · Weidi Luo, Siyuan Ma, Xiaogeng Liu, XIAOYU GUO 외

With the rapid advancements in Multimodal Large Language Models (MLLMs), securing these models against malicious inputs while aligning them with human values has emerged as a critical challenge. In this paper, we investi…

LLM Jailbreak

Injecting Universal Jailbreak Backdoors into LLMs in Minutes

2025-02-09 · Zhuowei Chen, Qiannan Zhang, Shichao Pei

Jailbreak backdoor attacks on LLMs have garnered attention for their effectiveness and stealth. However, existing methods rely on the crafting of poisoned datasets and the time-consuming process of fine-tuning. In this w…

Model Editing

Knowledge-to-Jailbreak: Investigating Knowledge-driven Jailbreaking Attacks for Large Language Models

2024-06-17 · Shangqing Tu, Zhuoran Pan, Wenxuan Wang, Zhexin Zhang 외

Large language models (LLMs) have been increasingly applied to various domains, which triggers increasing concerns about LLMs' safety on specialized domains, e.g. medicine. Despite prior explorations on general jailbreak…

Language ModelingLanguage ModellingLarge Language Model