A covert channel that is invisible to humans and obvious to language models.
“…a paper that’s got to be ciphered over about a week because it’s mostly signs and hy’roglyphics.” — Mark Twain, The Adventures of Tom Sawyer, ch. XXV
Large language models increasingly read and write text on each other's behalf. Agents hand tasks to sub-agents, summarize documents for one another, and relay messages through channels a human is nominally watching. This creates the pre-conditions for model-to-model steganography: a payload embedded in ordinary prose such that a human reader notices nothing, while a model that knows the scheme recovers it exactly. We describe the asymmetry that makes this possible, then specify ISSS, a minimal deterministic standard that encodes symbols in the whitespace between sentences using invisible zero-width characters. ISSS is trivial to implement in any language. It survives plain-text copy, and it is legible to a tokenizer but not to an eye. We ship a reference encoder and decoder, analyze the channel's capacity, and give concrete detection and mitigation guidance. We close with directions for future work, including public-key signing of hidden payloads and a binary-framed variant for arbitrary data.
ISSS places the payload in the gap after each sentence terminator. Every gap is exactly one ordinary space, so the carrier's visible spacing is unchanged. The symbol is carried by an optional invisible zero-width mark placed immediately after that space.
| Gap | Code point | Symbol | Meaning |
|---|---|---|---|
| space | (none) | "." | Morse dot |
| space + mark C | U+200C ZWNJ | "−" | Morse dash |
| space + mark B | U+200B ZWSP | "_" | end of letter |
| space + mark D | U+200D ZWJ | "/" | end of word |
The mnemonic is exact. The mark letter is the last hex digit of its code point, giving 200C for a dash, 200B for a letter break, and 200D for a word break. Dots and dashes between letter breaks spell characters in International Morse Code. Letter breaks delimit letters, and word breaks delimit words.
Morse is a deliberate choice rather than an arbitrary one. It is variable-length, so common letters cost fewer slots than rare ones, which matters a great deal when slots are the scarce resource. It is also self-delimiting once letter breaks are explicit, so the decoder needs no length header and no padding.
A slot is any run of sentence-terminating punctuation drawn from . ! ? that
satisfies two conditions. First, it must not be immediately followed by a closing quote or bracket from
the set " ' ” ’ ) ], which marks dialogue punctuation rather than a sentence boundary.
Second, it must be followed by further text. Each qualifying slot encodes exactly one symbol.
A carrier with N sentences therefore offers up to N−1 slots. Any slots
left over after the payload is exhausted are filled with the letter-break mark, which is silent on
decode and trims away cleanly. The rule is intentionally mechanical: it does not attempt to detect
whether a period ends a true sentence, so an abbreviation such as "Dr." is treated as a slot like any
other. Determinism matters more here than linguistic accuracy, because the encoder and decoder must agree
without sharing any state.
MARK_DASH = "\u200C"
MARK_END_LETTER = "\u200B"
MARK_END_WORD = "\u200D"
encode(payload, carrier):
codes = morse(payload) # 1=dot, 2=dash, 0=end-letter, 3=end-word
for i, slot in enumerate(slots(carrier)):
gap = " " # dot / default
if codes[i] == 2: gap += MARK_DASH
elif codes[i] == 0: gap += MARK_END_LETTER
elif codes[i] == 3: gap += MARK_END_WORD
write(slot, gap) # leftover slots -> " " + MARK_END_LETTER
decode(text):
for slot in slots(text):
g = gap_after(slot)
if MARK_DASH in g: emit dash
elif MARK_END_WORD in g: emit end-word
elif MARK_END_LETTER in g: emit end-letter
else: emit dot
return morse_to_text(collected_symbols)
HI requires seven slots, because
H is four dots and I is two, with one letter break between them. The carrier's
first seven sentence gaps become space, space, space, space, space+B, space, space. Every gap is still a
single visible space, and the rendered paragraph is byte-for-byte identical to the original except for
one invisible character.
Humans and language models perceive text through different front-ends. A person sees rendered glyphs.
Spacing, kerning, and invisible control characters mostly collapse into "a space" or vanish entirely
before they reach conscious attention. A model sees a token stream instead. Every code point in that
stream is available to it, including U+200B (zero-width space), U+200C
(zero-width non-joiner), and U+200D (zero-width joiner). Those characters occupy no visual
width, but they are ordinary symbols to a tokenizer, and they can be reproduced verbatim on output.
That asymmetry is the whole game. A carrier paragraph can hold a second message in a layer the human never sees. Any model told the convention reads it back with perfect fidelity, because recovery is a lookup rather than an inference. There is no statistical guessing and no model-specific behavior involved. The channel works between different model families, and it works between a model and a plain script.
The relevant shift is not that hiding data in text is new. Zero-width steganography predates modern language models by decades. What is new is the volume of text now written by one automated system and read by another, with a human reviewing only the surface. When an agent pipeline relays prose, the review step inspects what renders. Anything that does not render passes through untouched.
Steganography hides the existence of a message. Cryptography hides its content. ISSS is steganography, not a secrecy guarantee. Anyone who knows the scheme can read it.
We assume a pipeline in which one model produces text that another model later consumes. A human sits somewhere in the middle and reviews the rendered output. The human is competent and attentive, but they are reading for meaning, not auditing code points. This describes most agent frameworks in use today.
Under those assumptions, several capabilities follow. A model can pass an identifier to a later stage of its own pipeline without that identifier appearing in the visible transcript. Two agents that share a convention can coordinate across a channel a reviewer believes is fully legible. A document can be watermarked so that a downstream model recognizes its provenance while a reader sees nothing unusual.
The impact depends entirely on what the receiving model does with the recovered payload. If it treats the payload as data, the channel is a curiosity. If it treats the payload as instructions, the channel becomes an injection vector that bypasses human review by construction. That distinction is the single most important control, and we return to it in section 8.
We explicitly do not assume a sophisticated adversary. ISSS is meant to be simple enough that anyone can implement it in an afternoon. Its value as a research object is precisely that it sets a floor: if a trivially simple channel defeats a review process, that review process needs work.
A summarization chain offers the simplest illustration. One agent condenses a long document, a human skims the summary and approves it, and a second agent acts on the approved text. A payload placed in the summary reaches the second agent unread by the human who authorized it. Nothing in the approval step is equipped to notice.
A second scenario involves provenance. A publisher marks generated articles so that its own downstream tooling can recognize them later, which is benign and arguably useful. The same mechanism becomes a tracking channel the moment the marks identify a person rather than a document, and the reader has no way to see that the marks are present at all.
A third scenario is the one that should worry practitioners most. An attacker publishes a web page whose prose carries hidden instructions, an agent retrieves that page as part of a research task, and the instructions are recovered by a model that treats retrieved text as authoritative. The human reviewing the agent's reasoning sees only unremarkable source material. This is ordinary prompt injection with the payload moved into a layer that review does not cover.
ISSS carries one symbol per sentence, which makes capacity the scheme's defining constraint. In English Morse, a letter averages roughly three symbols, and each letter after the first costs an additional slot for its letter break. A word break costs one more. The working estimate is therefore about four slots per character of payload, or one sentence of cover per four bits of useful information.
The consequences are stark at realistic sizes. A seven-character message needs on the order of thirty sentences. A single short English sentence of payload needs several hundred sentences of cover, which is a few thousand words. This is why carrier selection, discussed next, is not a cosmetic concern but the central practical problem of the scheme.
Two properties partially offset the low rate. The channel is free in the sense that it consumes no visible space, so a document that would have been sent anyway carries the payload at no marginal cost. And because Morse is variable-length, ordinary English payloads cost less than the worst case suggests, since the most frequent letters are also the shortest.
A carrier must supply enough sentences without drawing attention to itself. The naive approach is to generate filler, but repetitive filler is exactly the artifact a reviewer notices, and it defeats the purpose of a channel whose whole premise is that nothing looks unusual.
A better approach is to draw a contiguous passage from a large body of existing prose, sized to the exact number of sentences required. Because the passage is genuine writing, it reads as a genuine excerpt. The reference implementation ships with a public-domain novel for this purpose and selects a random contiguous run of sentences whose slot count covers the payload.
The corpus choice is incidental to the standard. See section 13 for why this particular text was convenient, and for the constraints any substitute should satisfy.
ISSS survives some transformations and is destroyed by others. It survives a plain-text copy, storage in a plain-text file, transmission over any channel that preserves Unicode, and quotation of a contiguous span. Truncation is partially graceful, since a prefix of the payload decodes to a prefix of the message.
It does not survive whitespace normalization, zero-width stripping, HTML sanitization that filters invisible characters, conversion to a format with its own spacing model, or any editor that rewrites runs of whitespace. Rich-text and word-processor round-trips are especially unreliable. Anything that re-flows or re-tokenizes text at the character level should be assumed hostile to the payload.
This fragility is a design consequence rather than an oversight. A channel that requires exact code-point preservation is easy for a defender to break on purpose, which is a property we consider desirable in a published scheme.
ISSS is deliberately simple, and therefore easy to defend against. Because it depends on specific invisible code points appearing in specific positions, ordinary hygiene defeats it entirely.
U+200B through U+200D
and U+FEFF from any text crossing a trust boundary. A single regex removes the whole
channel.We publish the standard precisely so that reviewers, safety teams, and agent frameworks can recognize and neutralize the technique. For a channel this simple, awareness is the mitigation.
ISSS is deliberately the smallest thing that works, which leaves several directions open. The following are unimplemented sketches rather than results, offered as starting points.
ISSS provides no authentication whatsoever. Any party who knows the scheme can write a payload, so a receiving model cannot distinguish a message from its intended counterpart from one injected by a third party who read this paper. That is a serious gap if the channel is ever used for coordination, because the natural failure mode is a forged instruction accepted as authentic.
The obvious fix is asymmetric signing. A sender holds a private key and transmits a payload alongside a signature over that payload, while receivers verify against a known public key and discard anything that fails. A short elliptic-curve signature, such as Ed25519 at sixty-four bytes, is far larger than a typical payload, which makes the capacity problem acute: a signature alone would need thousands of sentences under the current alphabet.
There is a pleasing precedent in the carrier corpus itself. When Tom and Huck bind themselves to secrecy they do not consider a spoken promise sufficient, so they write the oath on a pine shingle and sign it in blood, and Tom has to teach Huck how to form the letters of his own initials before the pact counts. The instinct is exactly right. A secret message and a proof of who wrote it are two different problems, and the second one is the harder of the two.
Several avenues could make this practical. Truncated signatures trade forgery resistance for size, and the acceptable truncation depends on the threat model. A key identifier plus a short authentication tag may suffice when the payload is small and the key set is known in advance. A denser alphabet, discussed next, raises the per-sentence rate and makes signatures affordable. It is also worth exploring whether the signature and payload should occupy separate carriers entirely, so that a stripped or truncated document fails closed rather than silently verifying a partial message.
Morse restricts payloads to text, and to a limited character set at that. A binary variant would lift that restriction and let the channel carry arbitrary bytes, including compressed data, structured records, cryptographic material, and small images.
The straightforward construction assigns bit values to marks rather than Morse symbols. Using two marks
for zero and one yields one bit per sentence, which is worse than Morse for text but general for
everything else. Using the full available mark set raises the rate: with four distinguishable gap states
the channel carries two bits per sentence, and additional invisible code points such as
U+2060 word joiner or a bare U+FEFF extend the alphabet further, at the cost of
a more conspicuous footprint.
A binary variant needs framing that Morse gets for free. A practical design would include a short magic prefix so a decoder can recognize the scheme, a length field so truncation is detectable rather than silent, and a checksum so corruption fails loudly. Error-correcting codes deserve attention here, since a channel this fragile benefits more from redundancy than from raw rate. Compressing the payload before framing is close to mandatory given the capacity budget.
Hiding data in whitespace is old. Text steganography using inter-word spacing and line-shift coding was studied well before modern language models, and zero-width characters have been used for document watermarking, plagiarism tracing, and leak attribution for many years. Homoglyph substitution, which swaps visually identical characters from different scripts, solves a similar problem with a different primitive. None of the underlying machinery here is novel.
What has changed is the reader. Historically the recipient of a whitespace payload was a program written for the purpose, and the technique was interesting mainly to forensics and rights-management work. The recipient is now frequently a general-purpose language model that will consume whatever it is given and may act on it. That shift moves the technique from a document-marking curiosity into the security surface of agent systems.
ISSS contributes no new primitive. Its only contributions are a fixed, published convention so that independent implementations interoperate, a slot rule specified precisely enough to be audited, and a reference implementation that a defender can test their filters against.
No. The payload is plaintext to anyone who knows the convention, and the convention is published here. Encrypt the payload before encoding it if you need confidentiality.
Because the technique is already well known and trivially rediscovered, while the defenses are not uniformly deployed. A precise specification lets defenders write and test detectors, and it makes the failure mode concrete for anyone building an agent pipeline. Section 8 is the part of this document we most want read.
It can see the characters, since they are part of its input, but it will not spontaneously interpret them as Morse over sentence gaps. Recovery requires knowing the convention. That is what makes it a standard rather than an emergent behavior.
Sometimes. Plain-text paths usually preserve it, and rich-text paths frequently do not. Test the specific path before relying on it, and see section 7.
No. Any sufficiently long prose will do, and section 13 discusses what makes a corpus suitable.
The reference implementation uses The Adventures of Tom Sawyer as its carrier corpus. The choice is one of convenience rather than significance. It is a classic of American literature, it is firmly in the public domain, it is freely available as clean plain text, and it is long enough to supply several thousand sentences of varied prose. Its heavy use of dialogue also made it a useful stress test, since quoted speech is what forced the slot rule to distinguish dialogue punctuation from sentence boundaries.
It is also, unexpectedly, on topic. The novel is preoccupied with covert channels between two parties. Tom and Huck arrange to signal each other by imitating a cat, which is a payload hidden inside ambient noise that no adult in the village thinks to interpret. They swear a written oath in blood and bury it, which is a signed secret with a key thrown away. Tom describes treasure maps as papers that must be ciphered over for a week because they are mostly signs and hieroglyphics. A book about two boys inventing private protocols under the noses of inattentive adults is a fitting place to hide a message from a reader who is not looking for one.
Nothing in ISSS depends on that text. Any sufficiently long body of prose works as a carrier, and implementers are encouraged to substitute something appropriate to their context. A suitable corpus needs only a few properties: enough sentences to cover the intended payloads, clearly licensed or public-domain status, availability as plain text without markup artifacts, and prose whose register does not itself look out of place wherever the carrier will appear. A corpus that is unexpected in context is its own tell, regardless of how well the marks are hidden.
Cf (format
characters). Defines U+200B, U+200C, U+200D,
U+2060, and U+FEFF, the invisible code points this scheme relies on.And yes, this entire paper is encoded with secrets too.
This document describes a well-known class of technique, zero-width text steganography, for research and defensive awareness. Use it only where you are authorized to do so. Try the live encoder and decoder in the Interstice app.