STEGOGUARD-LM: Evaluating End-to-End Protection Against LLM Covert Channels

Martha Dimgba, George WilliamsarXiv 2026

TL;DR

Large Language Models (LLMs) are surprisingly good at hiding secret messages inside seemingly normal text—a trick called steganography. This paper introduces StegoGuard-LM, a framework that proves a sobering point: even a "perfect" defense that breaks hidden messages is useless if your detector fails to spot them first. It turns out that when you try to be careful not to annoy legitimate users, you leave the door wide open for attackers who can simply switch their hiding tactics to stay one step ahead.

What Problem Does This Paper Address?

Imagine an AI agent sending a report to a third-party tool. To a human observer, it looks like a standard status update. But hidden within the specific word choices (synonyms) or the subtle statistical patterns of the tokens is a secret payload—perhaps a stolen API key or sensitive data. This is a covert channel.

The research community has proposed various ways to stop this, usually involving "rewriting" the AI's output to scramble any hidden bits. However, most studies look at detection or rewriting in a vacuum. The authors of this paper argue that we need to look at the end-to-end pipeline. If a system only rewrites text that it thinks is suspicious (to avoid mangling legitimate responses), how much "leakage" actually gets through? And if an attacker realizes they are being blocked, how easily can they adapt?

Methods

The authors built StegoGuard-LM to simulate a cat-and-mouse game between a sender, a defender, and a receiver. They tested three types of "hiding spots" (channels):

  1. Token-Rank Encoding: Hiding bits by choosing words that aren't the absolute top choice of the model but are still statistically plausible.
  2. Synonym-Slot Encoding: Swapping words for their synonyms (e.g., "big" vs. "large") based on a secret codebook.
  3. Unicode Concealment: A "control" method using invisible formatting characters (like zero-width spaces).

The evaluation follows a rigorous path shown in Figure 1:

Figure 1: StegoGuard-LM evaluation design. Panel A. Responses pass through detection, intervention or pass- through, and evaluation. The oracle condition bypasses detection and always applies the intervention. Clean controls bypass attack construction and follow the same routing rules to measure benign intervention burden. Suspicious Unicode codepoints trigger sanitation regardless of the linguistic detector’s decision. Panel B. The attacker selects from a frozen candidate catalogue over rounds R0–R3. Feedback policies use the preceding exact-recovery outcome to retain or change the strategy or channel; the frozen policy repeats its initial choice. Delivered text is evaluated for payload recovery and visible response utility.

The "Defense" consists of a Static Detector (using 17 different linguistic and statistical features) and a Rewriter (which paraphrases the text). Crucially, they tested an Adaptive Replay: a four-round scenario where the attacker gets feedback (Did my message get through? Was I detected?) and can choose to change their strategy or even migrate to a different channel family to evade the defense.

Datasets

The study used a diverse set of "clean" text generated by Qwen2.5-7B-Instruct and Mistral-7B-Instruct-v0.3.

  • The Corpus: 160 parent responses covering conversational and technical topics, generated at two different lengths.
  • The Attack Catalog: A total of 583 texts, including 423 successfully encoded "attacks" (155 rank, 108 synonym, and 160 Unicode).
  • The Evaluators: Smaller models (Gemma-2-2B-IT and Qwen2.5-3B-Instruct) were used to extract the features for the detector, simulating a defender with limited compute.

Key Insights and Ideas

  • The "Detection Gap" is a Chasm: The most effective way to break a message is to rewrite the text. If you rewrite everything (unconditional intervention), you break almost 100% of synonym-encoded messages. But if you only rewrite what the detector flags (to save the "user experience"), you might only catch 1 out of 104 messages.
  • The Benign Burden: There is no free lunch. To catch more hidden messages, you have to lower the detector's threshold. In their "sensitive" setting, the defense improved protection but ended up rewriting and potentially degrading one-third of all legitimate, clean responses.
  • Attackers are Liquid: In the adaptive replay, attackers who were blocked on the high-capacity "rank" channel simply migrated to the "synonym" channel. While the synonym channel holds fewer bits, it is much harder for the detector to spot, allowing the attacker to maintain a slow but steady leak.
  • Output $\neq$ Information: Just because a decoder spits out bits doesn't mean the message survived. The authors distinguish between "decoder output coverage" and "exact recovery." This is vital for researchers to avoid overestimating how much information is actually leaking.

Key Results

  • Detection Accuracy: The combined detector was excellent at spotting Unicode tricks (100% AUROC) and very good at spotting rank encoding (0.98 AUROC), but it struggled significantly with synonym swaps (0.72 AUROC).
  • Mitigation Efficacy: Under "Oracle" conditions (always rewriting), the defense was a powerhouse, disrupting 99-100% of all payloads.
  • The Reality Check: At a conservative operating point (designed to keep false alarms under 1%), the system only intercepted 0.96% of synonym attacks.
  • Adaptive Gains: Attackers who were allowed to switch channels (Migration) recovered significantly more bits over four rounds compared to those who stubbornly stuck to their initial strategy.

Limitations and Future Work

The authors are transparent about this being a pilot study:

  • Scale: The adaptive replay was limited to a subset of 48 parent texts.
  • Attacker Sophistication: The attackers chose from a "fixed catalog" of strategies. In the real world, an attacker might use reinforcement learning to "discover" entirely new encoding rules that the detector has never seen.
  • Utility Measurement: The impact on "clean" text was measured using automated similarity scores. Future work needs human-in-the-loop evaluation to see if the rewriting actually makes the AI's answers less useful or accurate.
  • Egress Only: This framework focuses on messages leaving the model. It doesn't yet address "prompt injection" or hidden instructions coming into the model.

Summary updated

Abstract

A defense that disrupts hidden messages may still provide little protection if its detector rarely triggers an intervention. We present StegoGuard-LM, a controlled framework for evaluating defenses against covert messages in large language model outputs. We examine token-rank and synonym channels, with Unicode concealment as a structural control, and track messages through detection, intervention, and recovery. Deterministic rewriting prevented full recovery of 103 of 104 synonym-encoded messages when applied unconditionally, but only one when intervention depended on a detector set to limit false alarms. In a four-round replay on a 48-response subset, an attacker selecting from a fixed catalog recovered more bits by switching channels, although paired gains were not statistically significant after correction for multiple comparisons. Randomized rewriting showed no sustained advantage in this pilot. A more sensitive detector improved protection but modified about one-third of clean responses. These findings show how uneven detection can undermine effective rewriting and why protection must be evaluated alongside attacker adaptation and intervention on legitimate text.
BibTeX
@misc{dimgba2026stegoguard,
  author = {Martha Dimgba and George Williams},
  title = {{STEGOGUARD-LM: Evaluating End-to-End Protection Against LLM Covert Channels}},
  year = {2026},
  eprint = {2611.28152},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.28152},
}
Figure