LSB steganography
termKept in this browser · My desk
Stands for: least significant bit steganography
Hiding a message in the least significant bit of pixel or sample values, the bit whose change alters an 8-bit value by only one level in 256.
Proposed independently by many writers in the early 1990s, with Kurak and McHugh's 1992 note on image downgrading as an early warning, it was the method of most early tools (EzStego, S-Tools, Steganos, Hide In Picture). In 1999 Westfeld and Pfitzmann showed that least significant bits are not uncorrelated noise and broke those tools with a visual filter and a chi-square test; RS analysis (2001) and sample pair analysis (2003) later estimated the length of scattered LSB messages, and in 2001 Fridrich, Goljan and Du put the experimentally safe payload at 0.005 bits per pixel.
How it works. Each message bit overwrites the last bit of a pixel, in sequence or at positions chosen by a keyed pseudo-random generator; since a random message bit already matches half the time, about half the pixels used are changed, by plus or minus one. Replacement versus matching. Replacement moves values only within fixed pairs (2k, 2k + 1), equalizing each pair's counts while keeping their sum, which is the trace the chi-square attack and the structural detectors exploit. LSB matching, or ±1 embedding, adds or subtracts one at random when a change is needed, which removes the pair trace; Westfeld and Pfitzmann suggested it in 1999 and Crandall noted it in 1998. It is harder to detect, not undetectable: with rich models and an ensemble classifier, ±1 embedding at 0.4 bits per pixel was detected with a median error of 7.85% on the BOSSbase images in 2012. Formats. In palette images the index's last bit can mean an unrelated colour, so tools sorted the palette (EzStego) or used parity; in JPEG files the method moves to the quantized coefficients (JSteg). Lossy recompression destroys pixel-domain LSB payloads.
Also known as: least significant bit steganography, lsb embedding, lsb replacement, lsb matching, ±1 embedding, esteganografia lsb, bit menos significativo
Sources
- Petitcolas, Anderson and Kuhn, Information Hiding: A Survey, Proceedings of the IEEE 87(7), July 1999 (read 2026-11-17): many writers proposed embedding in the least significant bits; pseudo-randomly chosen pixels make the generator's key the stego key
- Petitcolas, The image downgrading problem (read 2026-11-17): Kurak and McHugh's 1992 warning; low bit planes of one image replaced by high bit planes of another
- Westfeld and Pfitzmann, Attacks on Steganographic Systems, Information Hiding 1999 (read 2026-11-17): EzStego, S-Tools, Steganos and JSteg assume LSBs are uncorrelated noise; visual and chi-square attacks; proposal to increment instead of overwrite
- Crandall, Some Notes on Steganography, 18 December 1998 (read 2026-11-17): two bits per changed pixel; incrementing or decrementing in non-paletted images; parity of cells in paletted images
- Fridrich, Goljan and Du, Reliable Detection of LSB Steganography in Color and Grayscale Images, 2001 (read 2026-11-17): RS analysis; 0.005 bits per pixel experimentally safe for LSB embedding
- Fridrich and Kodovský, Rich Models for Steganalysis of Digital Images, IEEE TIFS 2012 (read 2026-11-17): ±1 embedding at 0.4 bpp detected with 7.85% median error on BOSSbase 0.92