Targeted Pooled Latent-Space Steganalysis Applied to Generative Steganography, with a Fix
Etienne Levecque, Aurélien Noirault, Tomáš Pevný, Jan Butora, Patrick Bas, Rémi Cogranne
TL;DR
The paper tackles the problem that generative steganography in latent diffusion models can evade image-space detectors. It develops a latent-space steganalysis approach by modeling the norm distribution of latent vectors and deriving a pooled Likelihood Ratio Test on the latent-norm $R_{oldsymbol{Y}}$, revealing a variance-based signature that distinguishes Cover from Stego after the L2L channel. To counter this, it proposes a scaled spreading-spectrum fix by sampling the latent-norm from a $ ext{Chi}_n$ distribution before generation, aligning latent distributions under both hypotheses and achieving Stego-security in the latent space. Empirical results show that, without the fix, batch-sized latent analyses improve detection, while the scaled fix significantly reduces detectability, though the effect depends on the inversion parameters and prompts knowledge. Overall, the work highlights a latent-space security vulnerability in generative steganography and provides a concrete countermeasure, informing future design of robust embedding schemes and latent-space defenses.
Abstract
Steganographic schemes dedicated to generated images modify the seed vector in the latent space to embed a message, whereas most steganalysis methods attempt to detect the embedding in the image space. This paper proposes to perform steganalysis in the latent space by modeling the statistical distribution of the norm of the latent vector. Specifically, we analyze the practical security of a scheme proposed by Hu et. al. for latent diffusion models, which is both robust and practically undetectable when steganalysis is performed on generated images. We show that after embedding, the Stego (latent) vector is distributed on a hypersphere while the Cover vector is i.i.d. Gaussian. By going from the image space to the latent space, we show that it is possible to model the norm of the vector in the latent space under the Cover or Stego hypothesis as Gaussian distributions with different variances. A Likelihood Ratio Test is then derived to perform pooled steganalysis. The impact of the potential knowledge of the prompt and the number of diffusion steps, is also studied. Additionally, we also show how, by randomly sampling the norm of the latent vector before generation, the initial Stego scheme becomes undetectable in the latent space.
