Introduction
Steganography aims to conceal the existence of a secret message within a cover medium. While traditional methods modify pixels in existing images, generative steganography hides information within the latent vectors (seeds) used by generative AI models, such as Stable Diffusion, to synthesize new images. Because these images are generated from scratch, they often evade detection by standard pixel-based steganalysis. However, this research reveals that the "battlefield" has shifted to the latent space. We identify a statistical "tell" in the distribution of latent vector norms that allows for the detection of hidden messages, particularly when multiple images are analyzed together.
The Latent-to-Latent (L2L) Channel
The security of generative steganography depends on the indistinguishability of "Stego" latent vectors from "Cover" latent vectors. In a typical workflow, a message is embedded into a latent vector $\mathbf{X}$, which is then used to generate an image. This image may undergo compression before being transmitted. At the receiver, the image is "inverted" back into a latent vector $\mathbf{Y}$ to retrieve the message. This entire process defines the latent-to-latent (L2L) channel, denoted as $\mathbf{Y} = f(\mathbf{X}, \alpha)$.
Vulnerability in Latent Space Geometry
The primary vulnerability lies in the geometric distribution of the latent vectors. In many existing schemes, such as the one proposed by Hu et al. [5], message-bearing vectors are placed on a fixed-radius hypersphere. While natural "Cover" latent vectors follow a multivariate Gaussian distribution—where the vector norms follow a specific $\chi_n$ distribution—the fixed-norm "Stego" vectors create a distinct statistical signature.
Even after the noisy process of generation and inversion, the variance of these norms remains significantly different from the cover distribution. An adversary (Eve) can exploit this by performing a Likelihood Ratio Test (LRT) on the norms of the inverted vectors.
Proposed Fix: Scaled Spread Spectrum (SS)
To address this vulnerability, we propose Scaled Spread Spectrum (SS) encoding. Instead of using a fixed radius, the norm of the steganographic latent vector is randomly sampled from a $\chi_n$ distribution. This ensures that the "Stego" data perfectly mimics the statistical "shape" of natural Gaussian noise in the latent space. By re-shaping the data to match the cover distribution, the steganographic signal becomes mathematically indistinguishable from natural variations.
Experimental Results and the Power of Pooling
We evaluated the detection method using 20,000 prompts from the DiffusionDB dataset and the Stable Diffusion 1.5 model. A key finding is the effectiveness of pooled steganalysis. While detecting a hidden message in a single image is challenging (with a probability of error $P_E$ near 50%), the accuracy of the detector improves significantly as the batch size of intercepted images increases.
As shown in the results, for the original fixed-norm scheme, $P_E$ drops from approximately 48% to as low as 30% when the batch size reaches 100 images. In contrast, our proposed Scaled SS fix maintains a $P_E$ of nearly 50% regardless of the batch size, effectively restoring undetectability. Importantly, this security enhancement does not compromise the Bit Error Rate (BER), with message recovery accuracy remaining high at approximately 97%.
Conclusion
This work highlights that as generative models become more sophisticated, steganalysis must move "upstream" from pixels to the latent space. By understanding the high-dimensional geometry of these models, we can both develop more powerful detection tools and design more robust, secure communication methods. Future research will explore more complex latent distributions and the impact of different inversion techniques on detection accuracy.
Summary updated