JPEG steganography
termKept in this browser · My desk
Hiding a message in a JPEG file by changing its quantized discrete cosine transform (DCT) coefficients, after the lossy quantization step and before lossless entropy coding.
The JPEG standard, ITU-T T.81 of 18 September 1992, turns each 8 × 8 block into 64 coefficients and rounds them with a quantization table; anything hidden in the integers that result survives exactly. JSteg overwrote their least significant bits (skipping 0 and 1); OutGuess (2001) repaired the histogram afterwards; F5 (2001) decremented absolute values and added matrix embedding; nsF5 (2007) removed shrinkage with wet paper codes; J-UNIWARD (2014), UERD and J-MiPOD choose changes by cost. Calibration (2002), JPEG rich models and deep networks detect them.
Why coefficients. Pixel changes made before compression are wiped out by quantization, and a JPEG decoded and re-saved loses them; changes to the quantized integers pass through Huffman coding untouched. What JSteg did. It replaced the last bit of each coefficient other than 0 and 1, so values swapped within pairs (2 and 3, −2 and −1) and the chi-square attack found it. What came next. OutGuess used at most half of the usable bits and spent the rest restoring the coefficient histogram; F5 decremented absolute values so pairs are not equalized, spread changes with a password-driven permutation and used Hamming-code matrix embedding; nsF5 used wet paper codes so that 1 and −1 never shrink to 0. Capacity. Fridrich, Pevný and Kodovský estimated in 2007 that about 0.05 bits per non-zero AC coefficient could be hidden in quality-70 greyscale JPEGs against the detectors of that year; benchmarks quote payloads in bits per non-zero AC coefficient (bpnzAC). The 2020 ALASKA#2 challenge used J-UNIWARD, UERD and J-MiPOD at an average 0.4 bpnzAC.
Also known as: dct steganography, jsteg, outguess, j-uniward, nsf5, esteganografia em jpeg, coeficientes dct
Sources
- ITU-T, Recommendation T.81 (09/92), approved 18 September 1992, in force (read 2026-11-17)
- Westfeld, F5: ein steganographischer Algorithmus, VIS 2001 (read 2026-11-17): DCT, quantization and Huffman pipeline; histogram properties; Upham's JSteg skips 0 and 1; 12.8% capacity
- Provos, Defending Against Statistical Steganalysis, USENIX Security, August 2001 (read 2026-11-17): OutGuess's keyed selection, 50% cap and histogram-correcting transform
- Fridrich, Pevný and Kodovský, Statistically Undetectable JPEG Steganography, ACM MM&Sec 2007 (read 2026-11-17): nsF5 with wet paper codes; about 0.05 bits per non-zero AC coefficient for quality 70
- Holub, Fridrich and Denemark, Universal Distortion Function for Steganography in an Arbitrary Domain, EURASIP JIS 2014 (read 2026-11-17): J-UNIWARD; bits per non-zero AC coefficient
- ALASKA challenge site (read 2026-11-17): ALASKA#2 used J-UNIWARD, UERD and J-MiPOD at an average 0.4 bpnzAC on colour JPEGs at quality 95, 90 and 75