DeepMem: ML Models as storage channels and their (mis-)applications

Md Abdullah Al Mamun, Quazi Mishkatul Alam, Erfan Shaigani, Pedram Zaree, Ihsen Alouani, Nael B. Abu-Ghazaleh · DOI

Abstract

Modern deep learning models are significantly overparameterized, possessing far more capacity than required for their primary tasks. This paper introduces Covertex, a framework that exploits these "unused" parameters as a covert storage channel. By hijacking the training process in a "training-as-a-service" model, an attacker can embed large volumes of private data into model weights and retrieve it via black-box queries without significantly impacting primary task performance. We demonstrate that Covertex can store up to 900,000 digits in a ResNet-50 model with high retrieval accuracy, effectively bypassing standard safety guardrails and anomaly detectors.

Introduction: The Vulnerability of Overparameterization

Deep learning models are notoriously overparameterized, containing billions of parameters that often lead to "don't-care" states—regions of the parameter space that do not affect the final output for standard inputs. This paper explores a critical security vulnerability: the hijacking of these unused parameters to store arbitrary information.

In a "malicious training-as-a-service" threat model, an outsourced training provider could "poison" the training process to embed sensitive data, such as a company's private dataset, directly into the model weights. Once deployed, the attacker can extract this data through specific, pre-agreed-upon queries to the model's API, even without direct access to the internal weights.

The Covertex Framework

Covertex turns a neural network into a communication channel using simple "write" and "read" primitives. The process relies on an agreed-upon Address Space, where specific "patched" images (e.g., images with unique pixel patterns) act as addresses for data storage.

The Covertex attack model: a malicious agent injects private data during training and retrieves it via black-box queries.

Methods of Injection

  • Writing (Training): To store a value at a specific address, the attacker adds the patched image to the training set with the target value as its label.
  • Reading (Inference): The receiver queries the deployed model with the same patched image; the model’s predicted class serves as the retrieved data.

The authors introduce several sophisticated variants to enhance this process:

  • Covertex-D (Dynamic): Adaptively adds training samples only for "difficult" addresses the model hasn't yet memorized.
  • Covertex-DG: Employs Generative Adversarial Networks (GANs) to augment the original dataset, maintaining primary task accuracy even when massive amounts of covert data are embedded.
  • Covertex-C (Covert): Uses subtle, in-distribution perturbations to make malicious training data invisible to standard anomaly detectors.
  • Combinatorial Error Correction (CEC): A novel protocol that uses the model's prediction confidence (top-k classes) to intelligently correct retrieval errors.

Key Results and Insights

The researchers evaluated Covertex on standard benchmarks including MNIST, CIFAR-10, CelebA, and web documents for LLMs. A key finding is the link to the Lottery Ticket Hypothesis: the "spare" subnetwork not required for the main task provides the necessary capacity for the covert channel.

Neural Channel Accuracy for Covertex-S and Covertex-DG across varying private data lengths.

Performance and Stealth

  • High Capacity: In a ResNet-50 model, the authors successfully stored approximately 300KB (900,000 digits) while keeping primary task accuracy within 1% of the baseline. As shown in the results, the Covertex-DG variant significantly outperforms static methods in maintaining high retrieval accuracy at scale.
  • Bypassing Guardrails: Fine-tuned LLMs were shown to leak secrets like IP addresses by encoding them into sequences that bypass safety filters like Nvidia’s NeMo-Guardrails.
  • Evasion: Covertex-C successfully evaded detection from unsupervised outlier detectors (e.g., Local Outlier Factor) that typically flag capacity abuse attacks.

Limitations and Future Work

While powerful, Covertex-C faces a trade-off: its stealthy, in-distribution patches reduce total storage capacity compared to more overt methods. Furthermore, while defenses like Pruning and Fine-tuning were tested, they often failed to fully remove the covert signal without degrading the primary model's performance. Future research is needed to develop advanced auditing tools capable of detecting these hidden subnetworks and more sophisticated modulation schemes to further increase capacity.

Summary updated

BibTeX
@misc{mamun2023deepmem,
  author = {Md Abdullah Al Mamun and Quazi Mishkatul Alam and Erfan Shaigani and Pedram Zaree and Ihsen Alouani and Nael B. Abu-Ghazaleh},
  title = {{DeepMem: ML Models as storage channels and their (mis-)applications}},
  year = {2023},
  eprint = {2307.08811},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.08811},
}
Figure