JPEG steganography

term

securitycryptography

Kept 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

← Back to J Back to the glossary