An LLM Framework For Cryptography Over Chat Channels
Danilo Gligoroski, Mayank Raikwar, Sonu Kumar Jha
TL;DR
This work tackles the problem of secure covert communication over open chat channels in surveillance-heavy contexts by proposing an LLM-driven cryptographic embedding framework. It introduces EmbedderLLM to place ciphertext characters at precise positions inside human-like text, supports both symmetric and public-key cryptography, and remains agnostic to the specific LLM and to quantum threat models. Theoretical security notions—IND-CC and SS-ADV—are developed to analyze indistinguishability and adversarial detection, with concrete examples such as password-based AEAD and an ECDHE-style key exchange (ECDHE-LLM). The framework aims to enable undetectable encrypted traffic within normal-language conversations, while acknowledging ethical considerations and outlining directions for efficiency, robustness, and post-quantum extensions. These ideas suggest a provocative direction for covert communications using LLMs, balancing cryptographic functionality with careful attention to potential misuse and policy implications.
Abstract
Recent advancements in Large Language Models (LLMs) have transformed communication, yet their role in secure messaging remains underexplored, especially in surveillance-heavy environments. At the same time, many governments all over the world are proposing legislation to detect, backdoor, or even ban encrypted communication. That emphasizes the need for alternative ways to communicate securely and covertly over open channels. We propose a novel cryptographic embedding framework that enables covert Public Key or Symmetric Key encrypted communication over public chat channels with humanlike produced texts. Some unique properties of our framework are: 1. It is LLM agnostic, i.e., it allows participants to use different local LLM models independently; 2. It is pre- or post-quantum agnostic; 3. It ensures indistinguishability from human-like chat-produced texts. Thus, it offers a viable alternative where traditional encryption is detectable and restricted.
