ObscurePrompt: Jailbreaking Large Language Models via Obscure Input

Yue Huang,Jingyu Tang,Dongping Chen,Bingda Tang,Yao Wan,Lichao Sun,Xiangliang Zhang
2024-06-20
Abstract:Recently, Large Language Models (LLMs) have garnered significant attention for their exceptional natural language processing capabilities. However, concerns about their trustworthiness remain unresolved, particularly in addressing "jailbreaking" attacks on aligned LLMs. Previous research predominantly relies on scenarios with white-box LLMs or specific and fixed prompt templates, which are often impractical and lack broad applicability. In this paper, we introduce a straightforward and novel method, named ObscurePrompt, for jailbreaking LLMs, inspired by the observed fragile alignments in Out-of-Distribution (OOD) data. Specifically, we first formulate the decision boundary in the jailbreaking process and then explore how obscure text affects LLM's ethical decision boundary. ObscurePrompt starts with constructing a base prompt that integrates well-known jailbreaking techniques. Powerful LLMs are then utilized to obscure the original prompt through iterative transformations, aiming to bolster the attack's robustness. Comprehensive experiments show that our approach substantially improves upon previous methods in terms of attack effectiveness, maintaining efficacy against two prevalent defense mechanisms. We believe that our work can offer fresh insights for future research on enhancing LLM alignment.
Computation and Language
What problem does this paper attempt to address?
### The Problem the Paper Attempts to Solve The paper aims to address the security issues present in large language models (LLMs), particularly focusing on "jailbreak" attacks against aligned LLMs. Specifically: 1. **Limitations of Existing Methods**: Current research primarily relies on white-box scenarios of LLMs or specific fixed prompt templates, which have numerous limitations in practical applications. 2. **Jailbreak Attacks Using Obfuscated Inputs**: The authors propose a new method—OBSUCRE-PROMPT, which weakens the security boundaries of LLMs by constructing obfuscated inputs. This method does not depend on specific prompt templates and can effectively operate in black-box environments. Experimental validation shows that this method exhibits superior attack performance across various models and can counter mainstream defense mechanisms. This indicates that existing LLMs are still susceptible to obfuscated inputs, underscoring the need for enhanced protective measures to ensure the security of LLMs.