Manuscript Offprint

arXiv:2609.09553

Arbitrary Cipher Attacks Against Large Language Models Do Not Require Fine-Tuning

Thomas Rivasseau

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Thomas Rivasseau

School of Information Studies

McGill University

Email: thomas.rivasseau[at]mail.mcgill.ca

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.

Warning: contains possibly harmful excerpts of AI outputs.

I. INTRODUCTION

In this paper we present a new attack vector against commercial black-box large language models (LLMs): cipher attacks that do not require prior training (fine-tuning). Our attack bypasses harmfulness classifiers because questions and responses are encrypted and appear as gibberish. The paper structure is as follows. First, we provide background on harmful outputs and efforts to promote the safe use of large language models (LLMs). We then briefly describe model jailbreaking attacks. In Section 2 we introduce the (possibly unaware) reader to cipher jailbreak attacks, how they bypass a specific type of model defense (harmfulness classifiers), and what current research into these attacks is producing. In Section 3 we describe our research goal and contribution, along with disclosure efforts we undertake to ensure that AI developers are made aware of and provided with sufficient time to fix the issue we found. In Section 4, we describe our attack methodology and the different variants of our attack. In Section 5 we discuss our research hypothesis and theoretical basis for our experiments and predictions. In Section 6, we present experimental results for our attack variants, discuss result variations across models, and examine what happens when older models are targeted. In Section 7 we discuss our results, perceived implications, possible mitigations, perceived limitations, and further research avenues. In Section 8 we conclude. It is our hope that this research outlines a threat to the safe and secure usage of large language models before it can be leveraged to cause harm.

References (58)