Skip to main content
QUICK REVIEW

[Paper Review] Making Them Ask and Answer: Jailbreaking Large Language Models in Few Queries via Disguise and Reconstruction

Ying Liu, Yingjie Zhang|arXiv (Cornell University)|Feb 28, 2024
Natural Language Processing TechniquesComputer Science5 citations
TL;DR

The paper introduces DRA, a black-box jailbreak method that disguises harmful instructions and prompts the model to reconstruct them within its completion, exploiting safety biases from LLM fine-tuning. It shows high jailbreak success on multiple models, including GPT-4-API at around 92%.

ABSTRACT

In recent years, large language models (LLMs) have demonstrated notable success across various tasks, but the trustworthiness of LLMs is still an open problem. One specific threat is the potential to generate toxic or harmful responses. Attackers can craft adversarial prompts that induce harmful responses from LLMs. In this work, we pioneer a theoretical foundation in LLMs security by identifying bias vulnerabilities within the safety fine-tuning and design a black-box jailbreak method named DRA (Disguise and Reconstruction Attack), which conceals harmful instructions through disguise and prompts the model to reconstruct the original harmful instruction within its completion. We evaluate DRA across various open-source and closed-source models, showcasing state-of-the-art jailbreak success rates and attack efficiency. Notably, DRA boasts a 91.1% attack success rate on OpenAI GPT-4 chatbot.

Motivation & Objective

  • Identify intrinsic safety biases embedded in LLM fine-tuning that differentiate queries from completions.
  • Propose a universal, low-resource black-box jailbreak method that disguises and reconstructs harmful instructions.
  • Demonstrate the effectiveness of DRA across both open-source and closed-source models with high attack success rates.

Proposed method

  • Define and analyze safety biases in LLM fine-tuning and dialog formatting that create a vulnerability.
  • Develop DRA with three core components: disguise of harmful instructions, payload reconstruction via prompt guidance, and context manipulation to facilitate reconstruction.
  • Use puzzle-based obfuscation and word-level character splitting to disguise prompts.
  • Guide the model to reconstruct the original harmful instruction within the completion segment.
  • Incorporate context manipulation to increase jailbreak success and control output, inspired by shellcode concepts.
  • Evaluate DRA on a suite of models and datasets to measure attack success rate and efficiency.

Experimental results

Research questions

  • RQ1What biases in fine-tuning cause a reduced safeguard against harmful content in completions versus queries?
  • RQ2Can a black-box attack exploit these biases to induce reconstruction of harmful instructions in completions?
  • RQ3How effective and transferable is the DRA approach across different LLMs and access settings?

Key findings

  • DRA achieves high jailbreak success on multiple models, including GPT-4-API and LLAMA2.
  • The attack requires minimal prompt modification across target models, indicating strong transferability.
  • Disguise and reconstruction exploit safety biases in fine-tuning to push harmful instructions into the completion segment.
  • DRA demonstrates efficiency by reducing the number of queries and generation time compared to prior methods.
  • The authors provide a public demo illustrating the jailbreak workflow.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.