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.
Figures & tables
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.
Stage
Population or input
Quantity estimated
Attack construction
160 clean parents; three channel opportunities per parent
Feasibility and exact pre-defense decodability
Static detection
583 stored texts; 416 records in the primary matched population
Discrimination on held-out topics and operating-point performance
Oracle mitigation
Five intervention outputs for each of 583 texts
Payload disruption and utility when intervention always runs
Detector-gated replay
416 matched records at best-F1 and 1%-FPR calibration targets
Delivered protection and benign intervention burden
Repeated interaction
48 parents; 288 attack trajectories over R0–R3, with clean controls
Within-family adaptation and migration under two rewriting policies
System analysis and robustness
Frozen repeated-round records
Paired effects, metric sensitivity, and influence of parents and corpus cells
Table 1: Evaluation stages and the quantity each estimates.
Channel
Access and encoding rule
Payload and validation constraints
Role
Rank encoding
White-box access to source-model probabilities. Keyed parity partitions the top eight eligible tokens; the final position searches up to 128 candidates for a complete ending.
One bit per token; clean-parent tokenizer length; exact decode; complete ending; tokenizer round-trip; at most five encoding nonces.
High-capacity linguistic channel and adaptive family.
Synonym-slot encoding
Access to emitted text, source tokenizer, and a shared lexical codebook. Tokenizer-stable substitutions encode zero/one choices in active slots.
Maximum eight bits configured, one to four realised; unchanged tokenizer length; changed text; exact decode; complete ending; tokenizer round-trip; no format controls.
Low-capacity lexical channel and adaptive family.
Unicode concealment
Post-generation insertion of U+200B for 0 and U+200C for 1, framed by U+2063 and U+2064 before final visible punctuation.
Eight-bit payload; exact decode; removing the four reserved symbols reproduces the clean visible text.
Structural control for deterministic sanitation.
Table 2: Implemented covert channels, access assumptions, and acceptance rules.
Population or outcome
Count
Composition
Clean corpus
160
Two models, two domains, and two nominal lengths
Planned attacks
480
Three channel opportunities per parent
Structural exclusions
52
Synonym covers without a tokenizer-stable slot
Terminal failures
5
Rank: four length failures and one tokenizer round-trip failure
Accepted attacks
423
155 rank, 108 synonym, and 160 Unicode
Primary static population
416
104 parents, each with clean and three channel versions
Table 3: Attack accounting and analysis populations. Accepted attacks, structural exclusions, and terminal failures sum to 480 planned opportunities.
Evaluation
Records
AUROC (95% CI)
AUPRC
F1
Intervention
A. Shared detector on the matched population
All attacks
416
0.9037 (0.8871, 0.9219)
0.9690
0.8931
50.00%
Rank
208
0.9859 (0.9708, 0.9970)
0.9833
0.8560
49.04%
Synonym
208
0.7251 (0.6801, 0.7714)
0.7009
0.6825
0.96%
Unicode control
208
1.0000 (1.0000, 1.0000)
1.0000
0.8560
100.00%
B. Separate channel diagnostics
Table 4: Static detection results. Block A uses the same full-fusion out-of-fold predictions with the Unicode override; each channel row pairs 104 attacks with the same 104 clean responses. Block B retains the separately fitted linguistic diagnostics and standalone Unicode scanner. Intervals are 95% parent-cluster bootstrap intervals. F1 uses the respective F1-calibrated policies, except the fixed scanner. The last column reports attack intervention under the common 1%-FPR calibration target, whose held-out clean FPR was 0.96%. It does not apply to Block B.
Figure 2: Detection and routing under the shared static policy. A: AUROC with 95% parent-cluster bootstrap intervals for 416 pooled records and 208 records per channel-versus-clean comparison. B: Intervention among the 312 attacks, including 104 per channel, at the 1%-FPR calibration target. The observed clean FPR was 0.96%. Unicode intervention follows the structural override.
Outcome
Oracle
F1 gate
1% FPR gate
Rank payload disrupted
100.00%
100.00%
49.04%
Synonym payload disrupted
99.04%
69.23%
0.96%
Unicode payload disrupted
100.00%
100.00%
100.00%
Clean responses receiving intervention
100.00%
33.65%
0.96%
Table 5: Exact-payload disruption and clean intervention on the 104-parent matched population. Oracle values use deterministic rewriting for rank, synonym, and clean responses, and sanitation for Unicode. Gated policies rewrite flagged linguistic responses and always sanitise suspicious Unicode. The final row measures intervention, rather than payload disruption.
Figure 3: Conditional mitigation efficacy and detector-gated protection. A: Exact-payload disruption under oracle application and the two detector gates. B: Clean intervention rates under the same conditions. Each channel and the clean control have 104 records. Interventions follow Table 5 ; bars are descriptive proportions.
Successful covert bits
Defender
Attacker
R0
R1
R2
R3
Total
R3 exact recovery
Deterministic
Frozen
10
10
10
10
40
6/48 (12.50%)
Deterministic
Fixed-channel
10
10
12
12
44
7/48 (14.58%)
Deterministic
Migration
10
19
19
19
67
12/48 (25.00%)
Randomised
Frozen
10
11
10
10
41
6/48 (12.50%)
Randomised
Fixed-channel
10
10
15
12
47
7/48 (14.58%)
Table 6: Adaptive exact throughput. Each condition contains 48 parents. Successful bits count the complete payload only when recovery is exact; R0–R3 totals include repeated delivery of the same payload. The last column gives exact recoveries at R3 as a count and percentage.
Figure 4: Successful covert bits over R0–R3 under deterministic (A) and randomised (B) rewriting, summed over 48 parents per condition. Lines connect observed round totals. Paired differences and uncertainty are reported in Section 4.4 .
Figure 5: Channel composition and available strategies. A: Synonym share among 48 migration trajectories under each defender. B: The number of parents with each accepted candidate count, separately for rank and synonym. Each family contains the same 48 parents; the candidate budget is capped at ten per parent and family.
Successful bits
Exact recovery
Defender
Parents
Difference (95% CI)
p/q
Difference (95% CI)
p/q
Deterministic
6/42/0
0.1875 (0.0625, 0.3542)
.0307/.1255
0.1250 (0.0417, 0.2292)
.0332/.1282
Randomised
7/41/0
0.2083 (0.0833, 0.3750)
.0157/.1255
0.1458 (0.0625, 0.2500)
.0146/.1282
Table 7: Migration minus frozen at R3, paired over 48 parents. Counts give parents favouring migration / tied / favouring frozen. Differences are bits per parent or exact-recovery probability, with unadjusted 95% bootstrap intervals. Each p is a two-sided sign-flip test; q adjusts the corresponding 27-test outcome family.
Figure 6: R3 paired attacker-policy differences under deterministic (Det) and randomised (Rand) rewriting. Points show mean differences in successful bits per parent (A) and exact-recovery percentage points (B). Intervals are unadjusted 95% parent bootstrap intervals, with 48 pairs per contrast. Adjusted values for migration versus frozen appear in Table 7 .
Figure 7: R3 migration-minus-frozen differences in exact recovery (A), effective bit accuracy (B), and decoder output coverage (C). Panels A and B use percentage points (pp); C uses returned bits. Points and unadjusted 95% bootstrap intervals use 48 parent pairs per defender. Both coverage intervals cross zero. Coverage counts returned bits regardless of correctness and is not an information-leakage estimate.
Figure 8: Adaptive clean-response burden. Panels A, B, and D show intervention rate, mean similarity, and mean instruction-retention change across the same 48 clean parents in each round. Panel C shows individual R3 similarities among the 16 rewritten responses per defender; horizontal bars mark means. Similarity axes in B and C use different ranges. Deterministic outputs repeat across rounds, and repeated controls are not independent observations. All utility measures are model-based proxies.
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
Figure A1: All three channels applied to the same clean parent. The same 67-token response carries 67 bits under rank encoding and 2 under synonym substitution; every payload was recovered exactly before defense.
Figure A2: Threat model 1: output interception with a model copy. The attacker intercepts the clean answer and replaces it with a stego answer built from its own copy of the model (rank encoder, white-box) or from a codebook edit (synonym encoder, black-box). StegoGuard sees only the stego answer: a detector ensemble flags it at the F1 threshold and a deterministic or randomized rewriter produces the delivered text. The receiver decodes the delivered text with the agreed channel. The red dashed right edge is the entangled sender–receiver link: channel choice and key are shared beforehand, and recovery feedback comes back afterward.
Figure A3: Threat model 2: compromised LLM decoder. The attacker hijacks the decoding step inside the serving stack, so the model weights are untouched but token selection is controlled (rank mode picks by rank, synonym mode forces slot words). StegoGuard, the delivered text, and the receiver are as in Figure A2 , including the entangled sender–receiver link.
Figure A4: One adaptive trajectory under channel-migration feedback and deterministic rewriting. Every attempt is flagged by all ten models and rewritten, so no payload bit reaches the receiver in four rounds. After each failure the attacker switches family; the synonym catalogue has a single usable candidate, so R3 resends it and receives an identical rewrite.
Figure A5: F1 is near constant because three quarters of records carry a payload. AUROC is the discriminating column, and distributional features supply almost all of it
Figure A6: Solid bars are deterministic, hatched randomized; migration’s mean covers only the 18 attacks still on rank. Dashed lines in B mark the full-sample estimates
Large language models can be fine-tuned to encode prompt-borne secrets into fluent, seemingly benign outputs. This creates a steganographic exfiltration risk that is difficult to detect with output-level steganalysis. Recent work proposes mechanistic detection using linear probes that recover the secret from internal activations. We show that this defense can be systematically evaded, but that detectability can be recovered through a targeted data-level intervention. First, we extend the detection setup to include a non-linear MLP probe. We then adversarially fine-tune steganographic trojans across five base models: Qwen3-8B, Llama-3.1-8B, Ministral-8B, Qwen3-14B, and Phi-4-14B. The resulting models retain 58--79% exact-match secret recovery while evading both ridge and held-out MLP probes, with 1--8% average capability degradation across six benchmarks. We then give an information-theoretic characterization of this evasion. Successful evasion preserves recoverability while reducing low-order extractability of the secret from the content-aligned representation, forcing the payload into synergistic interaction with residual degrees of freedom. This motivates a recontextualization dataset that restricts these residual degrees of freedom. On this distribution, both ridge and MLP detectability are restored across all five evasive trojans. Overall, our findings show that activation-based steganography detection is vulnerable to adaptive evasion, but also that theory-guided evaluation distributions can expose otherwise hidden payloads.
Charles Westphal, Timothy Douglas, Keivan Navaie +2
UCL Centre for AI, University College London, UK · ML Alignment Theory Scholars, Berkeley, CA, USA · Department of Computer Science, University College London, UK +4
In large language model (LLM) steganography, an encoder hides a private message in an otherwise ordinary response, as text transmitted to a decoder, who attempts to recover it. The success of this private-message transmission is commonly measured through end-to-end (E2E) recovery, which checks whether the decoder correctly reconstructs the private message. However, E2E recovery cannot distinguish encoding failures from decoding failures or reveal how the private message is represented in the encoder's transmitted text. To address these limitations, we introduce a rolewise decomposition framework that separately examines how private messages are represented in encoder transmitted texts, what decoders recover, and what deterministic verification can establish. Across 7,200 encoder responses, we identify 168 verifiable encodings missed by decoders and 706 responses containing private messages reconstructed through word-length or token-initial patterns not explicitly specified in the encoder's instructions. These findings demonstrate that E2E recovery alone may obscure important distinctions between encoding and decoding, motivating their separate evaluation to better understand and mitigate the safety issues caused by LLM steganography.
Linguistic steganography hides secret messages in natural language text. Large language models (LLMs) have reshaped the field, but a systematic account of how these scattered advances collectively reshape the field in this new era is still missing. We provide one along four axes: 148 steganographic methods, 60 linguistic steganalysis countermeasures, 23 evaluation metrics, and 9 open challenges, each with taxonomies, reviews, and adoption analyses. Cutting across these axes, we identify five specific paradigm shifts in the LLM era: (1) from covertext modification to prompt-only generation, (2) from heuristic to provable security, (3) from white-box symmetric LMs to black-box or asymmetric access, (4) from security-centric designs to joint optimization, and (5) from text-quality concerns to engineering issues. The survey aims to serve as both a reference and a roadmap for practical and responsible linguistic steganography in the LLM era.
Ruiyi Yan, Chenhui Chu, Zhongliang Yang +1
Graduate School of Informatics, Kyoto University · School of Cyberspace Security, Beijing University of Posts and Telecommunications