Steganalysis of Neural Networks Based on Symmetric Histogram Distribution

Xiong Tang, Zichi Wang, Xinpeng ZhangSymmetry 2023 · DOI

TL;DR

This paper introduces a novel steganalysis technique to detect hidden data within deep neural networks (DNNs) used for image classification. By analyzing the distribution of network output predictions, the method can identify stego-networks without needing access to their internal structure, offering a practical solution for securing DNNs against covert data embedding.

What Problem Does This Paper Address?

Deep neural networks (DNNs) have become ubiquitous in various AI applications. Their complex internal structures and large parameter spaces make them attractive targets for data hiding techniques, akin to how images, audio, and video have been used. This "data hiding in neural networks" poses significant security challenges, as malicious actors could embed secret information within DNN models, potentially for illicit purposes or to compromise intellectual property. While data hiding in DNNs has been explored, a corresponding robust and practical steganalysis method – one that can detect this hidden information – has been largely missing. Existing methods often require access to the network's internal parameters or structure, which is not always feasible in real-world scenarios. This paper aims to bridge this gap by proposing a "black-box" steganalysis approach.

Methods

The core of the proposed method is a symmetric steganalysis scheme that analyzes the output predictions of a neural network when presented with data. The key steps are:

  • Feature Extraction: Instead of delving into the network's internal weights, the method treats the DNN as a black box. It extracts feature vectors from the network's output predictions (e.g., classification probabilities) when fed with a set of inputs.
  • Symmetric Histogram Distribution: The crucial innovation lies in how it determines if a network is "stego" (contains hidden data) or "plain" (original). The authors propose a symmetric approach where both cover (plain) and stego networks undergo similar processing flows to generate their prediction labels. These labels are then segmented, and the distribution of "1" labels within each segment is analyzed. By comparing the histograms and probability density curves of these distributions for cover and stego networks, an optimal decision threshold is identified at the valley between two peaks. This symmetry helps to cancel out biases introduced by the network's original task.
  • Classifiers: Support Vector Machines (SVMs) and ensemble classifiers (specifically, random forests) are employed as binary classifiers to distinguish between cover and stego networks based on the extracted features and determined thresholds.

Datasets

The authors built a diverse dataset of neural networks for their experiments. This involved training several types of neural networks (AlexNet, CapsNets, ResNets) on common image classification datasets:

  • MNIST: A dataset of grayscale handwritten digits.
  • CIFAR-10: A dataset of 32x32 color images across 10 categories.
  • ImageNet: A subset of ImageNet, resized to 64x64, with 10 selected categories.

Both "plain" networks (trained for their original task) and "stego" networks (trained with embedded secret data) were created. The embedding capacities varied, and the networks were trained until the extraction error rate dropped to zero, ensuring successful embedding.

Key Insights and Ideas

  • Black-Box Steganalysis is Practical: The most significant insight is that analyzing the output of a neural network is sufficient for steganalysis, eliminating the need for internal access. This makes the method highly practical for real-world applications where model internals are often proprietary or inaccessible.
  • Symmetry is Key to Robustness: The symmetric processing of cover and stego network outputs is crucial. This symmetry helps to mitigate the inherent biases of the original classification task, allowing the subtle statistical differences introduced by data hiding to become more apparent.
  • Output Distribution Reveals Hidden Data: The distribution of prediction labels, even for the same input, can be subtly altered by the presence of embedded data. This change, when analyzed symmetrically, provides a reliable indicator of steganography.
  • DNNs as a New Frontier for Steganalysis: The paper firmly establishes DNNs as a novel and important domain for steganalysis, extending traditional multimedia steganalysis concepts to a new type of digital "cover."

Key Results

The proposed method demonstrated promising results across various scenarios:

  • Fixed Embedding Capacity: For a fixed number of embedded bits, the SVM classifier achieved high detection accuracies, reaching up to 99.20% in one case.
  • Changing Embedding Capacities: Even when the number of embedded bits varied, the unified SVM classifier showed significant improvements, with accuracy increases of up to 10.87% compared to independent classifiers.
  • Changing Datasets and Network Structures: The method showed robustness when dealing with different image datasets and network architectures, achieving accuracies around 96.70% in complex scenarios.
  • Ensemble Classifiers: For more complex cases, ensemble classifiers were also employed, achieving accuracies around 70.50%, though with a trade-off in performance compared to the optimized SVM.
  • Minimal Impact on Original Task: The stego networks generally maintained high test accuracies comparable to their original counterparts, indicating that the data hiding process had minimal detrimental effect on the network's primary function.

Limitations and Future Work

  • Computational Efficiency: While the SVM classifier achieved high accuracy, its computational cost for training and prediction increases significantly with larger datasets and more complex scenarios. This makes it less practical for very large-scale deployments.
  • Ensemble Classifier Performance: While ensemble classifiers offer computational advantages, their detection accuracy was generally lower than the optimized SVM, especially in complex scenarios.
  • Future Work: The authors suggest developing deep learning-based steganalysis schemes that can automatically learn patterns from additional data. They also propose exploring methods to pinpoint the exact location of additional data within model parameters, which would offer even deeper insights into steganographic techniques.

Summary updated

BibTeX
@article{tang2023steganalysis,
  author = {Xiong Tang and Zichi Wang and Xinpeng Zhang},
  title = {{Steganalysis of Neural Networks Based on Symmetric Histogram Distribution}},
  journal = {Symmetry},
  year = {2023},
  doi = {10.3390/sym15051079},
}
Figure