New to ShortSpan? We distil the AI-security research that matters into practitioner takeaways — edited by Ben Williams (NCC Group). Get the weekly email
// Analysis

Covert Ciphers Jailbreak Frontier LLMs Without Fine-Tuning

Attacks
Covert Ciphers Jailbreak Frontier LLMs Without Fine-Tuning

New research shows frontier Large Language Models learn letter-substitution ciphers from prompts alone, no fine-tuning needed. Encrypted prompts and answers slip past harmfulness classifiers as gibberish, weakening or bypassing alignment on models from Anthropic, Google and OpenAI. Older models struggle. Some targets required combining the cipher with known jailbreak prompts.

Jailbreaks keep getting weirder. This paper shows you do not need fine-tuning to make a Large Language Model (LLM) talk in code about harmful topics. With only prompts and a bit of in-context learning, modern models pick up a simple letter-substitution cipher and hold a covert conversation that slips past harmfulness filters.

How the attack works

The core move is teaching a character-level permutation cipher. One variant feeds the full alphabet mapping in a single shot. The other walks the model through it iteratively: introduce a few letter swaps, show encrypted question–answer pairs, add more swaps, repeat. The model learns to transform inputs and outputs through the cipher rather than reason about the underlying content.

The authors typically suppress chain-of-thought style reasoning so the model stays inside the cipher and does not spill plaintext. When alignment still bites, they pair the cipher with a known jailbreak prompt (the paper cites the crescendo method) so the model answers the encrypted harmful ask with an encrypted harmful response.

What they found

This works on frontier models from Anthropic, Google and OpenAI. Full jailbreaks were demonstrated on Claude Sonnet 4 and Gemini 3. Claude Sonnet 4.5 and GPT 5.5 showed partial or conditional bypasses; GPT 5.5 reached 100% on a Molotov cocktail task when combined with a known jailbreak. The number of permutation layers needed varies: Sonnet 4 produced bomb-making instructions after seven permutations, while Gemini 3 took around ten for consistent success.

Harmfulness classifiers did not catch it. The encrypted prompts and answers look like gibberish and fall out of distribution for the filter, so the exchange sails through. Because the whole thing is prompt-only, it applies in black-box settings.

It is not all smooth. Character-level work fights tokenisation, so you see transcription errors and occasional partial answers. Some outputs stay vague, and the approach often relies on curbing the model’s reasoning. Newer releases that enforce reasoning blunt parts of the technique, and the authors did not test effects on tool use. Older or smaller models generally fail the character-level task, which limits exposure there.

The attacker’s angle is clear: covert channels hide both the ask and the answer, and the space of ciphers is huge. Training a classifier against every permutation is a losing game. The open questions are where this goes next: agent tool-calls expressed in cipher, detection that spots learned transformations, and whether pushing more reasoning becomes a systemic defence or just shifts the game.

Additional analysis of the original ArXiv paper

📋 Original Paper Title and Abstract

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

Authors: Thomas Rivasseau
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.

🔍 ShortSpan Analysis of the Paper

Problem

This paper studies cipher or covert communication jailbreaks against large language models, showing that modern frontier models can learn to exchange encrypted harmful prompts and responses without any fine-tuning. This matters because such covert channels make harmful content appear as gibberish to deployed harmfulness classifiers, enabling black-box attacks that can weaken or bypass model alignment and safety measures in widely deployed systems.

Approach

The authors implement purely prompt-based attacks that teach models a letter-level permutation cipher using either a single-shot prompt that supplies a full alphabet mapping or an iterative in-context learning procedure that progressively introduces letter swap pairs with encrypted question–answer examples. Key attack variants are single-shot and iterative; hyperparameters include the number of permutation levels, examples per level and whether to repeat examples. They typically disable model reasoning to prevent models from decrypting instructions into cleartext. When necessary they combine the learned cipher with known jailbreak prompts, such as the crescendo method, to extract harmful outputs. Experiments target commercial models including Anthropic Claude Sonnet 4 and 4.5, Google Gemini 3, and OpenAI GPT 5.5, and compare results against older generation models.

Key Findings

  • Frontier models can acquire cipher-based communication skills via prompting and in-context learning without fine-tuning, enabling covert exchanges that classifiers perceive as nonsensical text.
  • Harmfulness classifiers are bypassed because encrypted harmful queries and responses appear out of distribution and therefore are not flagged; this holds for multiple commercial models.
  • Alignment is weakened or fully bypassed in practice: full jailbreaks were demonstrated on Claude Sonnet 4 and Gemini 3, while Claude Sonnet 4.5 and GPT 5.5 showed partial or conditional bypasses (GPT 5.5 required combination with a known jailbreak to reach 100% success on a Molotov cocktail task).
  • The number of letter permutations required varies by model; for example, Sonnet 4 produced bomb-making instructions with seven permutations while Gemini 3 needed about ten for consistent success.
  • Older generation or smaller models are generally not vulnerable because they lack the capability to perform the out-of-distribution character-level task reliably.

Limitations

Practical constraints include encryption and transcription errors due to tokenisation and subword vocabularies, incomplete or minimal harmful detail on some targets, reliance on disabling reasoning to prevent decryption, increased effort for combined attacks, and untested effects on agentic tool use. The attack's success varies by model and is tied to rising model capabilities; some newer releases already mitigate parts of the technique by enforcing reasoning.

Implications

Offensive implications are that adversaries can covertly encode harmful instructions into chat interactions with black-box LLMs to evade deployed classifiers and, in some cases, bypass alignment to obtain actionable harmful content. Attackers can iteratively teach a model a cipher or combine it with other jailbreak prompts to amplify impact. The large space of possible ciphers makes classifier training against all permutations impractical, suggesting attackers may have a durable covert channel. Potential effects include undetected dissemination of instructions, manipulation of AI agents if tool-calls are targeted, and a growing attack surface as model capabilities improve.

// Similar research

Related Research

Get the weekly digest

The few AI-security papers that matter, with the practitioner takeaway. No spam.