A photograph has millions of pixels and plenty of noise to hide in, which is why the images part of this series opened by Steganography: hiding that a message exists could spend a whole article on it. Sound, moving pictures and text offer different kinds of room. Sound is judged by an ear with known blind spots; video is a stream of predictions that an encoder makes and a decoder repeats; text is short, exact and read by people who notice a wrong word. This part takes each in turn, from the audio techniques published at the Massachusetts Institute of Technology (MIT) in the mid-1990s to the language-model methods of 2017 onwards. After reading, you can explain how each method works from its first paper, patent or tool documentation, follow an echo and a zero-width message through the arithmetic, and say what trace each method leaves and what removes it. How the traces are measured in general is the subject of Steganalysis: finding the hidden message; marks meant to survive and identify, rather than to stay secret, are the subject of Watermarks and fingerprints.

Where a cover keeps its slack

Ross Anderson and Fabien Petitcolas gave the general model in 1998: the sender first applies a transform to the cover, then changes a subset of the bits of the transformed object that are redundant, meaning that a subset chosen at random can be altered without an opponent easily noticing. They drew the consequence too: "We will not to find high bandwidth channels, as these would correspond to redundancy that could economically be removed" (Anderson and Petitcolas, IEEE Journal on Selected Areas in Communications, May 1998). Every method below is a choice of transform and of redundancy, and every one of them is weakest exactly where a compressor, a filter or a retyping removes that redundancy.

CarrierWhere the slack isMethods in this partWhat tends to destroy it
Uncompressed audioLow bits of samples, phase, quiet noise, short echoesLow-bit coding, phase coding, spread spectrum, echo hidingFiltering, resampling, lossy compression
Compressed audioChoices the encoder makesMP3StegoDecoding and re-encoding
VideoPixels of each frame, coefficients, motion vectorsFrame-by-frame image methods, compressed-domain methodsTranscoding
TextLayout, glyphs, invisible characters, lookalikes, word choiceLine and word shifting, glyph perturbation, whitespace, zero-width characters, homoglyphs, synonyms, generated textRetyping, normalization, paraphrase

Sound: hiding in what the ear ignores

The MIT work of 1995 and 1996

The audio methods most textbooks list come from one group. Norishige Morimoto's master's thesis at MIT, "Techniques for Data Hiding in Audio Files", submitted in May 1995 with Walter Bender as supervisor and support from the News in the Future consortium and IBM, opens by defining data hiding as a family of techniques for embedding data in media such as images and sound (Morimoto, MIT thesis, 1995; record at DSpace@MIT). The group's survey, "Techniques for data hiding" by Walter Bender, Daniel Gruhl, Norishige Morimoto and Anthony Lu, appeared in the IBM Systems Journal, volume 35, numbers 3 and 4, pages 313 to 336, in 1996 (Crossref record, doi 10.1147/sj.353.0313), and "Echo hiding" by Gruhl, Lu and Bender was presented at the first Information Hiding workshop, published in Lecture Notes in Computer Science 1174, pages 295 to 315, in 1996 (Crossref record, doi 10.1007/3-540-61996-8_48). That workshop was the first academic conference on the subject (Petitcolas, Anderson and Kuhn, Proceedings of the IEEE, July 1999).

Between them, the thesis and the 1996 publications describe four methods, each exploiting a different weakness of the human auditory system (HAS); the thesis covers the first three, and echo hiding came with the patent and the workshop paper.

Low-bit coding

The simplest method replaces the least significant bit (LSB) of each sample with a message bit, as in the image case. Morimoto puts the ceiling plainly: one bit per sample, so audio sampled at 8 kHz carries at most 8,000 bits per second (Morimoto, 1995). The weakness is just as plain. "Systems that involve bit-twiddling have a common vulnerability, that even very simple digital filtering operations will disturb the value of many of the least significant bits of a digital object", wrote Petitcolas, Anderson and Kuhn, who also noted the obvious improvement: choosing the samples with a pseudo-random generator, so that its seed becomes the stego-key and Kerckhoffs's principle is observed (Petitcolas, Anderson and Kuhn, 1999).

Steghide, a program by Stefan Hetzl whose last version, 0.5.1, dates from 15 October 2003, supports audio in the WAV (Waveform Audio File Format) and AU formats as well as JPEG (Joint Photographic Experts Group) and bitmap (BMP) images. Its page says the sample frequencies "are not changed thus making the embedding resistant against first-order statistical tests" (Steghide home page), that is, it is designed to defeat histogram attacks such as the chi-square test described in the steganalysis part. The trade-off between capacity and audibility still makes a good student project: a 2025 undergraduate thesis at the Instituto Federal de Minas Gerais (IFMG) in Sabará spaced LSB insertions at different "levels" and found that small levels hide larger messages but distort the audio, while large levels hide less and do not (Justino, IFMG, 21 August 2025).

Phase coding

The ear is far less sensitive to absolute phase than to loudness. Morimoto's phase coding splits the signal into segments, takes a discrete Fourier transform (DFT) of each, and replaces the phase of the first segment with values that encode the message, adjusting the following segments so that the relative phase between segments is kept; as he explains, the human auditory system does not notice an offset in a sound's phase. With 1,024 DFT points and 32 frequency slots per bit the thesis reaches 256 bits per second, or 128 if each bit is written twice, in a high and a low band. It also warns that audio compression such as the ISO's MPEG may remove the data, and that downsampling the signal destroys the embedded information completely (Morimoto, 1995).

Detection follows from the design. A review of fifteen years of audio steganalysis by Hamzeh Ghasemzadeh and Mohammad Kayvanrad, published in IET Signal Processing in 2018, describes a detector built on one observation: phase embedding keeps the relative phase inside each block, but changes the phase difference between consecutive blocks, so statistical moments of those differences separate marked audio from clean audio (Ghasemzadeh and Kayvanrad, arXiv 1701.05611).

Spread spectrum

Spread spectrum radio, developed for military use since the mid-1940s, hides a narrow signal by spreading it over a wide band with a pseudo-random code that only a receiver holding the code can despread (Petitcolas, Anderson and Kuhn, 1999). In direct-sequence spread spectrum (DSSS) coding, the encoded sequence is the host signal with the synthesized DSSS signal, the code, added to it; Morimoto's experiments embedded 20 bits in one second of sound (Morimoto, 1995). The low rate is the price of robustness, and spread spectrum became one of the main routes to audio watermarking: L. Boney, A. H. Tewfik and K. N. Hamdy's "Digital watermarks for audio signals" appeared at the International Conference on Multimedia Computing and Systems in 1996 (Crossref record, doi 10.1109/MMCS.1996.535015), and D. Kirovski and H. S. Malvar's "Spread-spectrum watermarking of audio signals" in IEEE Transactions on Signal Processing in April 2003 (Crossref record, doi 10.1109/TSP.2003.809384). The arithmetic of spreading and despreading is worked through in the watermarks part.

Echo hiding

The fourth method uses a fact of everyday listening: rooms add echoes, and the ear does not hear a very short one as a separate sound. MIT filed a patent application for "echo data hiding in audio signals" on 31 May 1996, naming Walter Bender, Daniel Gruhl and Norishige Morimoto as inventors; it was granted on 6 April 1999 as US 5,893,067. The method "embeds a data value in an analog or digital host audio signal by introducing one or more echoes, or resonances, offset in time from the host audio signal by an offset value associated with the data value of the bit"; the ear "interprets an added resonance as a natural resonance due to, for example, interaction of the signal with the walls of a room". One delay stands for a one, another for a zero, and the signal is cut into segments, each carrying one bit (US patent 5,893,067).

The patent gives the working numbers. Across music, speech and mixtures, at least 85% of the embedded bits were recoverable for decay rates between 0.3 and 0.85, with 0.4 to 0.8 preferred; echoes below about 0.6 are much harder for the ear to detect; "The average listener cannot resolve an echo with an offset of 1 millisecond", and offsets above 0.5 milliseconds were generally recoverable (US patent 5,893,067). Anderson and Petitcolas summarized the scheme as a delay of 0.5 ms for a zero and 1.0 ms for a one, "too short to be perceptible in most circumstances but can be detected using cepstral transforms" (Anderson and Petitcolas, 1998).

A worked example: why an echo shows up as a peak. Take a signal x and add one echo of relative amplitude α after a delay τ: y(t) = x(t) + α·x(t − τ). In the frequency domain the power spectrum of y is the power spectrum of x multiplied by (1 + 2α·cos(2πfτ) + α²), the formula Petitcolas, Anderson and Kuhn use in their attack (1999). The arithmetic for α = 0.5:

QuantityZero bit, τ = 0.5 msOne bit, τ = 1.0 ms
Delay in samples at 44,100 samples per second0.0005 × 44,100 = 22.050.001 × 44,100 = 44.1
Largest gain, (1 + α)²2.25, or +3.5 dB2.25, or +3.5 dB
Smallest gain, (1 − α)²0.25, or −6.0 dB0.25, or −6.0 dB
Spacing of the ripple along the frequency axis, 1/τevery 2,000 Hzevery 1,000 Hz

The echo therefore writes a regular ripple across the spectrum whose spacing depends only on τ. Taking the logarithm of the spectrum turns the multiplication into an addition, and a second transform turns a regular ripple into a single spike at the "quefrency" τ: that is the cepstrum, and its autocorrelation is what the patent's decoder compares at the two candidate offsets (US patent 5,893,067). Whichever offset shows the stronger peak in a segment gives that segment's bit.

Detection and removal. The same transform works for an adversary. Petitcolas, Anderson and Kuhn described an attack that estimates the delay with a modified cepstrum, considering delays between 0.5 and 3 ms ("below 0.5 ms the function does not work properly and above 3 ms the echo becomes too audible"), then removes the echo by trying amplitudes until the detector finds no echo left (1999). In 2000 a team from Princeton and Rice universities found that one of the four watermarking technologies in the music industry's public challenge was a complex echo system, with delays at 2 to 7 multiples of 0.25 ms that hopped from frame to frame in a pattern that appeared to repeat every 16 frames (Craver et al., USENIX Security Symposium, August 2001); that episode belongs to the watermarks part. Steganalysis papers model the echo kernels directly, the basic kernel and later positive-negative and forward-backward variants designed for robustness, and look for their cepstral signature (Ghasemzadeh and Kayvanrad).

Hiding inside the encoder: MP3Stego

The methods above treat audio as samples. Compressed audio offers another place: the decisions the encoder makes. Fabien Petitcolas wrote MP3Stego at the end of the 1990s because nothing had been done to hide information in MP3 files (MPEG-1 Audio Layer III, a format of the Moving Picture Experts Group), which then offered near compact-disc (CD) quality at 11 to 1 compression. It hides data during compression, after compressing and encrypting it. In the Layer III encoder an inner loop increases the quantizer step until the frame fits the bit budget; the variable part2_3_length holds the number of bits used for a frame's scale factors and Huffman code data, and MP3Stego encodes each message bit as the parity of that variable by changing when the inner loop stops, on frames chosen by a pseudo-random generator based on -1 (Secure Hash Algorithm 1). Its author is direct about the limit: "Any opponent can uncompress the bit stream and recompress it; this will delete the hidden information but at the expense of severe quality loss" (Petitcolas, MP3Stego).

Detection exploits the side effects. Westfeld found that frames modified by MP3Stego have smaller block lengths and that the variance of block sizes differs between clean and marked files; a later detector compared the length of the first block with the number of distinct block lengths and proposed a threshold of 4.6 for that ratio; others measured the statistics of the modified discrete cosine transform (MDCT) coefficients, which shrink when the quantization step grows (Ghasemzadeh and Kayvanrad).

How audio steganalysis works in general

The review by Ghasemzadeh and Kayvanrad sorts the field into targeted methods, where the warden knows the embedding algorithm, and universal ones, which do not assume it. A detector Dittmann built into an , where decisions must be made in real time, simply measured the ratio of ones to zeros in the least significant bits. A common universal approach estimates the clean cover by removing noise from the suspect signal and measures the difference: Hamza Özer and colleagues borrowed the audio quality metrics that speech-coding engineers had built to measure the artefacts of speech coders. Other detectors use -frequency cepstral coefficients, and Ghasemzadeh's own group argued that features modelled on human hearing discard exactly what a good embedder keeps inaudible, so they designed a "reversed" mel scale with finer resolution at high frequencies (Ghasemzadeh and Kayvanrad). Özer, B. Sankur, Nasir D. Memon and I. Avcibas published "Detection of audio covert channels using statistical footprints of hidden messages" in Digital Signal Processing in July 2006 (record, doi 10.1016/j.dsp.2005.12.001). Christian Krätzer and J. Dittmann applied mel-cepstrum features to Voice over IP (VoIP) steganography in 2007 (record, doi 10.1117/12.704040); hiding in network traffic itself is a later part of this series.

Hidden data in sound is not always adversarial. A 2009 master's thesis at COPPE, the engineering graduate school of the Universidade Federal do Rio de Janeiro (UFRJ), supervised by Luiz Wagner Pereira Biscainho, studied methods that embed digital watermarks in audio and voice so that the damage a channel does to the watermark measures the quality of the signal, some of them without comparing it with the original (Jesus, COPPE/UFRJ, December 2009).

Video: frames, coefficients and motion vectors

A video can be treated as a stack of images, each frame marked with the methods of the images part: in this raw domain "the data embedding operation is applied to each frame separately". Most video, however, travels compressed, and a 2023 review by Jayakanth Kunhoth and colleagues in Multimedia Tools and Applications describes the trade: compression "causes the removal of redundant video data and reduces the space for hiding more data", but the compressed domain "has better security and robustness compared to raw domain methods" (Kunhoth et al., 4 April 2023).

A compressed stream offers three kinds of room. The quantized discrete cosine transform (DCT) coefficients produced during encoding are the most used. Motion vectors, the arrows with which an encoder records that a block looks like a block of the previous frame shifted by a given amount, are the second: "The motion vector is utilized widely for embedding the secret data in compressed videos", in one family of schemes by adding or subtracting 1 from a suitable vector. The entropy-coding stage is the third (Kunhoth et al., 2023). Early motion-vector papers include Changyong Xu, Xijian Ping and Tao Zhang's "Steganography in compressed video stream" (2006) and Hussein Aly's scheme choosing vectors by their associated prediction error, in IEEE Transactions on Information Forensics and Security in March 2011 (Crossref record, doi 10.1109/ICICIC.2006.158; Crossref record, doi 10.1109/TIFS.2010.2090520).

Prediction is also the main difficulty. A change in one block is copied into the blocks predicted from it: "Intra-frame distortion drift is one of the main challenges faced while embedding secret data" (Kunhoth et al., 2023). A 2009 COPPE/UFRJ thesis supervised by Eduardo Antônio Barros da Silva studied intra and inter prediction in the H.264 standard for this reason, to reduce the drift caused by an earlier insertion method, in exchange for more computation (Oliveira, COPPE/UFRJ, September 2009).

Detection has moved in step. An encoder chooses each motion vector because it is locally the best match; a vector nudged by one unit usually is not, and detectors look for that. Yun Cao, Xianfeng Zhao and Dengguo Feng published features based on "motion vector reversion" in IEEE Signal Processing Letters in January 2012, and Keren Wang, Hong Zhao and Hongxia Wang a detector aimed at schemes that add or subtract one, in IEEE Transactions on Information Forensics and Security in May 2014 (Crossref record, doi 10.1109/LSP.2011.2176116; Crossref record, doi 10.1109/TIFS.2014.2308633). The embedders answered with schemes that keep each modified vector locally optimal, such as Hong Zhang, Yun Cao and Xianfeng Zhao's "Motion vector-based video steganography with preserved local optimality" (Multimedia Tools and Applications, published online 30 June 2015, doi 10.1007/s11042-015-2743-x). The 2023 review still finds the defensive side thin: "Video steganalysis methods are still not explored extensively" (Kunhoth et al., 2023).

Not every hidden channel in video is secret. Broadcast standards now carry data in the pixels of the picture on purpose, so that it survives transcoding; those marks are covered in the watermarks part.

Text: the hardest cover

Text has almost no noise. A pixel can change by one level unseen; a letter cannot change at all without becoming another letter. Keith Winstein summed up the state of the art in 1998: "Current implementations of textual steganography exploit tolerances in typesetting by making minute changes in line placement and kerning in order to encapsulate hidden information, making them vulnerable to simple retypesetting attacks" (Winstein, Lexical Steganography Through Adaptive Modulation of the Word Choice Hash, 1998). The methods since then fall into four groups: the layout and shape of the text, characters the reader cannot see, characters the reader cannot tell apart, and the words themselves.

Layout and glyphs

In an electronic publishing pilot of the mid-1990s, copyright messages and serial numbers were hidden in line spacing and other format features; shifting a line up or down by one three-hundredth of an inch to encode a zero or a one survived multi-generation photocopying and could not be noticed by most people (Petitcolas, Anderson and Kuhn, 1999). The work was published by Jack Brassil, Steven Low, Nicholas Maxemchuk and Lawrence O'Gorman as "Electronic marking and identification techniques to discourage document copying" in the IEEE Journal on Selected Areas in Communications, volume 13, number 8, in 1995 (Crossref record, doi 10.1109/49.464718).

The modern form perturbs the glyphs themselves. FontCode, by Chang Xiao, Cheng Zhang and Changxi Zheng (2017), embeds a message "by perturbing the glyphs of text characters while preserving the text content", choosing perturbations that are unobtrusive yet machine-recognizable, and recovers it "from an encoded document stored as a vector graphic or pixel image, or even on a printed paper", with its own error correction (Xiao, Zhang and Zheng, arXiv 1707.09418). A Brazilian method of the same kind was built for a sensitive purpose: a 2016 master's thesis at the Universidade de Brasília (UnB), written with the support of the Polícia Federal, encodes the identity of each recipient of a confidential document from a police inquiry or a court case in the small differences between the shapes of characters of different fonts, so that a leaked copy can be traced to its recipient from a fragment of printed or scanned text; 50 criminal experts (peritos criminais) with document-comparison experience rated how visible the marks were (Ferreira, UnB, November 2016). How such per-recipient marks are used to trace leaks is the subject of the watermarks part.

Layout and glyph methods share a weakness: they live in the rendering, not in the characters. Retyping the text, or converting it to plain text, removes them.

Whitespace: SNOW

Matthew Kwan's SNOW (for "steganographic nature of whitespace") conceals messages in (American Standard Code for Information Interchange) text "by appending whitespace to the end of lines", because spaces and tabs at the end of a line are invisible in almost every text viewer; "Locating trailing whitespace in text is like finding a polar bear in a snow storm", its page explains (SNOW home page). Its documentation gives the encoding. A tab after the text of the first line that has room marks the start, so that mail and news headers with trailing spaces do not corrupt the message. Data are written three bits at a time as runs of 0 to 7 spaces, separated by tabs, so that three bits usually take 8 columns and an empty 80-column line holds 30 bits. An optional Huffman compression tuned for English saves 25 to 40%, and the optional cipher is ICE (Information Concealment Engine), Kwan's own 64-bit block cipher, used in 1-bit cipher-feedback (CFB) mode (How SNOW works; The ICE home page). SNOW has been available under the Apache 2.0 licence since 16 June 2013 (SNOW home page).

Trailing whitespace is easy to find for anyone who looks, and any editor or mail system that trims line ends destroys it.

Characters nobody sees

contains format characters that draw as nothing, among them ZERO WIDTH SPACE (U+200B), ZERO WIDTH NON-JOINER (U+200C) and ZERO WIDTH JOINER (U+200D). What they are for, and how they cause bugs, is explained in Hidden and lookalike characters; here the question is only how they carry bits.

Zach Aysan described the idea publicly in December 2017, writing that he had realized in early 2016 that zero-width characters could fingerprint text, and that "even with just a single type of zero-width character the presence or non-presence of the non-visible character is enough bits to fingerprint even the shortest text". His warning was addressed to journalists handling leaks: "Unlike previous text fingerprinting techniques, zero-width characters are not removed when formatting is removed from text" (Aysan, Zero-Width Characters, 30 December 2017).

A worked example: a zero-width message decoded character by character. Take a toy scheme: ZERO WIDTH SPACE stands for 0, ZERO WIDTH NON-JOINER for 1, eight characters make one byte, and the bytes are ASCII. The sentence "See you at noon." arrives with sixteen invisible characters after "See". Reading them in order:

PositionCode pointNameBit
1U+200BZERO WIDTH SPACE0
2U+200CZERO WIDTH NON-JOINER1
3U+200BZERO WIDTH SPACE0
4U+200BZERO WIDTH SPACE0
5U+200CZERO WIDTH NON-JOINER1
6U+200BZERO WIDTH SPACE0
7U+200BZERO WIDTH SPACE0
8U+200BZERO WIDTH SPACE0
9U+200BZERO WIDTH SPACE0
10U+200CZERO WIDTH NON-JOINER1
11U+200CZERO WIDTH NON-JOINER1
12U+200BZERO WIDTH SPACE0
13U+200CZERO WIDTH NON-JOINER1
14U+200BZERO WIDTH SPACE0
15U+200BZERO WIDTH SPACE0
16U+200CZERO WIDTH NON-JOINER1

The first eight bits are 01001000, which is hexadecimal 48, decimal 72, the letter H. The next eight are 01101001, hexadecimal 69, decimal 105, the letter i. The hidden message is "Hi". On screen the sentence still shows 16 characters, but the string holds 32 code points, and in (the dominant character encoding), where each of these zero-width characters takes three bytes (E2 80 8B and E2 80 8C), it occupies 64 bytes instead of 16. That mismatch is the detection: count code points against what is displayed, or search for the code points themselves; the Unicode inspector lists every code point in a pasted text and flags the invisible ones. Real schemes add an encryption step and a start marker, but the trace stays the same.

Aysan's countermeasures for people who handle leaked text are, in his order of effectiveness, to avoid releasing excerpts and raw documents, to obtain the same documents from several sources and compare them byte by byte, to "Manually retype excerpts to avoid invisible characters and homoglyphs", to keep excerpts short, and to strip characters that are not on an allow list before sharing (Aysan, 2017).

The same idea has a newer target. The Unicode tag characters, U+E0000 to U+E007F, are invisible and exist for emoji tag sequences: a regional flag such as England's is a black flag followed by tag letters for "gbeng" and a cancel tag. Amazon Web Services () security engineers wrote on 30 September 2025 that large language models (LLMs) "can read, interpret, and act on these hidden characters", so text that looks harmless to a reviewer can carry instructions to a model. Their post adds a lesson about filters: in , which stores these characters as surrogate pairs, a single-pass filter can join an orphaned high and low surrogate into a new tag character, so sanitization must remove orphaned surrogates too and repeat until nothing changes (AWS Security Blog, 30 September 2025).

Characters nobody can tell apart

Homoglyph substitution replaces a Latin letter with a lookalike from another script, and a space with one of Unicode's other spaces, so that the text looks unchanged and keeps its length. Stefano Giovanni Rizzo, Flavio Bertini and Danilo Montesi published a scheme of this kind in July 2019: "one bit can be embedded on latin letters, and three bits can be embedded on space characters", each space being replaced by one of seven alternatives. On a corpus of New York Times articles, a 64-bit watermark needed on average 101 characters (at least 46), so a paragraph-long excerpt or smaller could be protected 94.5% of the time; formatting changes do not remove the mark, but "retyping the content will always destroys a watermark" (Rizzo, Bertini and Montesi, EURASIP Journal on Information Security, 12 July 2019). Aysan had considered and dismissed homoglyphs as "too easy to detect due to the differences in character rendering across fonts and systems" (Aysan, 2017). The detection is the one Unicode's security documents already give for spoofing, mixed-script and confusable checks, described in Hidden and lookalike characters.

Words: synonym substitution and mimicry

Linguistic steganography changes the words. Winstein's 1998 paper and his program Tyrannosaurus Lex formalized the naive version: sender and receiver share a database of disjoint synonym sets whose sizes are powers of two, so that choosing one word from a set of 2ⁿ carries n bits; he built the sets from WordNet. He also named the problem that has dogged the method ever since: "Calling someone “cool” has very different connotations than calling them “chilly.”" (Winstein, 1998; Tyrannosaurus Lex). Mark Chapman and George Davida's "Hiding the hidden: A software system for concealing ciphertext as innocuous text" appeared in 1997 (Crossref record, doi 10.1007/BFb0028489).

A different route generates the cover instead of editing one. Peter Wayner's "Mimic functions" (Cryptologia, July 1992) turn data into text that follows a grammar (Crossref record, doi 10.1080/0161-119291866883); the website spammimic, online since 2000, is "only a spam “grammar” for a mimic engine by Peter Wayner" and encodes a short message as junk mail, on the reasoning that "Real spam is so stupidly written it's sometimes hard to tell the machine written spam from the genuine article" (spammimic, Credits; spammimic, Explanation).

Later work tried to make substitution safe in context. Umut Topkara, Mercan Topkara and Mikhail Atallah studied synonym substitution that exploits ambiguity for watermarking (CERIAS Tech Report 2006-61). Ching-Yun Chang and Stephen Clark of the University of Cambridge used the Google n-gram corpus to check whether a synonym fits its context, and solved the ambiguity of words with several senses by treating words as vertices of a graph, synonyms as edges, and assigning bits with a vertex-coding algorithm, so that "each word represents a unique sequence of bits" (Chang and Clark, Computational Linguistics 40(2), 2014).

Detection showed early that word choice leaves statistical marks. Cuneyt Taskiran, Umut Topkara, Mercan Topkara and Edward Delp trained language models and support vector machines to separate sentences changed by a lexical steganography system from unchanged ones, with 84.9% accuracy; on isolated sentences, recall was high but precision low (Taskiran et al., SPIE 6072, February 2006).

Text written by a model

Neural language models made it practical to generate the cover from the message. Tina Fang, Martin Jaggi and Katerina Argyraki (2017) split the vocabulary into 2^|B| bins, a mapping the two parties share as the key; for each block B of encrypted bits a Long Short-Term Memory (LSTM) network writes the next word, but only from the bin that block selects, so the receiver recovers the bits by looking up each word's bin. Capacity is |B| bits per word, or (1 − p)·|B| when a fraction p of common words that carry no bits is allowed in every bin; they tested it on Twitter messages and Enron emails (Fang, Jaggi and Argyraki, Student Research Workshop of the Association for Computational Linguistics, 2017). Zhongliang Yang and colleagues published RNN-Stega in IEEE Transactions on Information Forensics and Security in May 2019 (Crossref record, doi 10.1109/TIFS.2018.2871746).

Zachary Ziegler, Yuntian Deng and Alexander Rush of Harvard (2019) replaced the bins with arithmetic coding over the model's own probabilities, using the 345-million-parameter GPT-2 (Generative Pre-trained Transformer 2) model, so that the cover text follows the model's distribution; their measure of security is the Kullback-Leibler (KL) divergence between the stego distribution and the model's, and humans judged the covers realistic (Ziegler, Deng and Rush, EMNLP-IJCNLP 2019). Falcon Dai and Zheng Cai showed that the imperceptibility of the earlier bin and Huffman systems "relies on implicit assumptions on statistical behaviors of fluent text" and proposed patient-Huffman encoding (Dai and Cai, Association for Computational Linguistics, 2019, arXiv 1907.06679). Jiaming Shen and colleagues' self-adjusting arithmetic coding (2020) reported gains of 15.3% in bits per word and 38.9% on the KL metric over the previous best, and that "51% of generated cover texts can indeed fool eavesdroppers" in human evaluation (Shen et al., EMNLP 2020, arXiv 2010.00677). Whether such a scheme can be provably undetectable, and how watermarking the output of a model differs from hiding a message in it, are the subjects of a later part on steganography and artificial intelligence; the existing article on generative AI and influence operations already covers watermarks in model output.

The detectors are neural too. Zhongliang Yang and colleagues' TS-RNN, a recurrent network for text steganalysis, appeared in IEEE Signal Processing Letters in December 2019 (Crossref record, doi 10.1109/LSP.2019.2920452); Yan Niu, Juan Wen, Ping Zhong and Yiming Xue combined a bidirectional LSTM with a convolutional network in the same journal, arguing that hand-made features had become "simple and non-universal" against generation-based steganography (Niu et al., IEEE Signal Processing Letters, November 2019).

Detecting and stopping: what each method leaves behind

MethodTrace it leavesHow it is foundWhat removes it
Low-bit audioChanged statistics of the lowest bit planeHistogram tests, audio quality metrics after noise removal, cepstral featuresFiltering, resampling, lossy compression
Phase codingChanged phase differences between blocksMoments of the phase differencesCompression, downsampling
Echo hidingCepstral peaks at fixed short delaysCepstrum analysisEstimating and cancelling the echo
MP3StegoUnusual block lengths and quantizationBlock-length statistics, MDCT statisticsDecoding and re-encoding, at a cost in quality
Motion vectorsVectors that are no longer locally optimalMotion vector reversion and add-or-subtract-one featuresTranscoding
Line, word and glyph shiftsGeometry of the rendered pageMeasuring positions and glyph shapesRetyping, converting to plain text
Trailing whitespaceSpaces and tabs at line endsLooking at line endsTrimming whitespace
Zero-width and tag charactersCode points that draw nothingCounting and listing code pointsAllow-list filtering, repeated until stable
Homoglyphs and odd spacesCharacters from unexpected scripts or space typesMixed-script and confusable checksNormalizing to the expected script, retyping
Synonyms and generated textWord statistics that differ from natural textLanguage-model and neural classifiersParaphrase, rewriting

The pattern in the last column is the old lesson of the opener: a hidden message lives in redundancy, and a defender who removes redundancy (recompressing, transcoding, retyping, normalizing) destroys most messages without having to find them. The price is that the same operations change legitimate content, which is why mail gateways and document workflows apply them selectively; how they are used in practice is the subject of a later part on detecting and stripping hidden content.

What to remember

  • Audio steganography as most textbooks describe it comes from MIT's work of 1995 and 1996: low-bit coding (one bit per sample, fragile), phase coding (hundreds of bits per second, lost to compression), spread spectrum (tens of bits per second, robust) and echo hiding (patented in 1996, granted in 1999).
  • Echo hiding writes a ripple across the spectrum whose spacing is 1/τ; the cepstrum turns it into a peak, which is how the receiver decodes it and how an attacker finds and cancels it.
  • Compressed formats move the hiding into the encoder's decisions: MP3Stego hides bits in the parity of a frame's length, and detectors find the unusual block lengths it leaves.
  • Video hides in coefficients and motion vectors, fights prediction drift, and is detected by testing whether each motion vector is still the encoder's best choice.
  • Text has little redundancy: layout and glyph marks die on retyping, whitespace dies on trimming, zero-width characters show up in a code point count, homoglyphs in a mixed-script check, synonyms and generated text in word statistics.
  • Removing redundancy defeats most hiding without finding it, at the cost of changing legitimate content too.

Sources