NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Security for Machine Learning-based Software Systems: A Survey of Threats, Practices, and Challenges

Huaming Chen, Muhammad Ali Babar · DOI

Introduction

Machine Learning (ML) has rapidly transitioned from research labs to production environments, powering critical applications in computer vision, speech recognition, and beyond. However, this "rushed" integration often leaves security as an afterthought. While ML researchers focus on algorithmic vulnerabilities like adversarial examples, software engineers typically address traditional system-level security. This paper bridges this gap by providing a comprehensive taxonomy of security threats for Machine Learning-based Software Systems (MLBSS), categorizing them into data, model, and system-level attacks within a holistic development framework.

A Lifecycle-Oriented Security Framework

The core contribution of this work is a multi-dimensional taxonomy that maps security threats across the entire development lifecycle. Unlike previous studies that silo vulnerabilities, this approach considers the interplay between ML algorithms and the broader software ecosystem.

Figure 2: Taxonomy of security vulnerabilities mapped to the ML lifecycle stages and the underlying software ecosystem.

The taxonomy identifies three primary attack vectors:

  • Data-oriented attacks: Including poisoning (corrupting training data), backdoors (trigger-based malfunctions), and adversarial attacks (manipulating input at inference).
  • Model-oriented attacks: Such as model extraction/stealing, inversion (recovering private training data), and reuse attacks exploiting pre-trained models.
  • System-oriented attacks: Targeting the "Software Ecosystem," including hardware (GPUs/TPUs), middleware, and communication buses (e.g., PCIe side-channel attacks).

These threats are mapped to a five-stage development process: Problem Definition, Data Management, Model Construction, System Deployment, and System Maintenance. This mapping highlights that security is not a single "patch" but a continuous requirement throughout the system's life.

Bridging the Practice Gap

A critical finding of this survey is the lack of focus on "Secure Development Practice" in existing literature. While quality assurance and technical debt are gaining traction in ML engineering, security engineering remains under-researched in practical settings.

Figure 3: Comparison of the current study with existing surveys, highlighting the gap in addressing secure development practices.

The authors analyzed 141 influential papers, identifying 52 specifically focused on attacks. A key insight is the "Software Ecosystem" vulnerability; security isn't just about neural network weights but also the "glue code," open-source libraries (TensorFlow, PyTorch), and hardware context-switching. For example, the "Hermes Attack" can reconstruct deep neural network models with lossless accuracy by sniffing unencrypted PCIe traffic, emphasizing the need for physical and hardware security.

Key Insights and Future Directions

The survey highlights several emerging challenges:

  • Inherent Limitations: Some vulnerabilities are intrinsic to ML algorithms (e.g., statistical uncertainty) and require risk management rather than traditional bug fixing.
  • The Transferability Trap: The structural similarity in deployed systems (e.g., common TensorFlow Lite architectures in Android apps) means an attack on one system is often successful against many others.
  • Live Trojans: Stealthy attacks can now patch model parameters directly in memory at runtime, bypassing static security scanners.

Future work must focus on creating actionable semantic frameworks for ML hazards, developing model-agnostic testing strategies, and improving data profiling using the Confidentiality, Integrity, and Availability (CIA) triad. As models move to the edge (IoT and mobile), hardware-software co-design for security will become paramount.

Summary updated

BibTeX
@article{chen2022security,
  author = {Huaming Chen and Muhammad Ali Babar},
  title = {{Security for Machine Learning-based Software Systems: A Survey of Threats, Practices, and Challenges}},
  journal = {ACM Computing Surveys},
  year = {2022},
  doi = {10.1145/3638531},
}
Figure