Arbitrary Cipher Attacks Against Large Language Models Do Not Require Fine-Tuning
Abstract
Large language model safety and security research is preoccupied with, among other things, detecting and preventing jailbreak attacks: alignment bypasses that allow an adversarial user to elicit unwanted or harmful outputs from models. Arbitrary cipher, or covert communication, attacks are one such type of jailbreak and have previously been demonstrated against the fine-tuning APIs of commercial models. In these attacks, target models are trained on a corpus of encrypted harmful questions and responses and subsequently respond to harmful requests through the learned encryption scheme. In this paper, we show that newer frontier models do not require fine-tuning to acquire cipher-based communication skills. Instead, they can learn these skills through prompting and, when necessary, through in-context learning. Furthermore, model alignment is significantly weakened or entirely bypassed when communication occurs through the learned cipher. To the best of our knowledge, this constitutes a novel attack vector against commercial black-box large language models. We demonstrate successful jailbreaks against frontier models developed by Anthropic, Google, and OpenAI. Our attack bypasses commercial harmfulness classifiers because harmful content is encrypted and therefore appears as nonsensical text or gibberish.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI
- Comments
- 15 pages, ieee conf format
Related papers
Assessing Data Leakage Risk in Fine-Tuned LLMs via Membership Inference Attacks
Shared title terminologycs.CRMohamed-Jalal Baim, Léa Deleris, Myriam Tami et al.
Permutation-Based Stegomalware in Large Language Models: Threats and Countermeasures
Shared title terminologycs.CRDanny Wood, James Stringer
Exploring Automated Vulnerability Identification in JavaScript Code Using Large Language Models
Shared title terminologycs.CRManit Kaushik, Ishir Bhardwaj, Pranav Gupta et al.
PIA-Bench: Towards Automated Privacy Impact Assessment with Large Language Models
Shared title terminologycs.CRJiamin Zheng, Hao-Ping Lee, Luo Mai et al.
Beyond QA Matching: Perturbation-Response Fingerprinting via Probability Distributions for Large Language Models
Shared title terminologycs.CRJichao Zeng, Yanli Chen, Hanzhou Wu
Intelligent Event-Safe Cyber-Physical Attack Detection and Localization in Critical Water Infrastructure: A Cross-Dataset Study of SWaT and WADI
Shared title terminologycs.CRVictor Kebande