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

Security for Machine Learning-based Systems: Attacks and Challenges during Training and Inference

Faiq Khalid, Muhammad Abdullah Hanif, Semeen Rehman, Muhammad Shafique · DOI

Abstract: The exponential increase in dependencies between the cyber and physical world leads to an enormous amount of data which must be efficiently processed and stored. Therefore, computing paradigms are evolving towards machine learning (ML)-based systems because of their ability to efficiently and accurately process the enormous amount of data. Although ML-based solutions address the efficient computing requirements of big data, they introduce (new) security vulnerabilities into the systems, which cannot be addressed by traditional monitoring-based security measures. Therefore, this paper first presents a brief overview of various security threats in machine learning, their respective threat models and associated research challenges to develop robust security measures. To illustrate the security vulnerabilities of ML during training, inferencing and hardware implementation, we demonstrate some key security threats on ML using LeNet and VGGNet for MNIST and German Traffic Sign Recognition Benchmarks (GTSRB), respectively. Moreover, based on the security analysis of ML-training, we also propose an attack that has a very less impact on the inference accuracy. Towards the end, we highlight the associated research challenges in developing security measures and provide a brief overview of the techniques used to mitigate such security threats.

Introduction

As machine learning (ML) transitions from research environments to safety-critical infrastructure—such as autonomous vehicles and medical diagnostics—the security of these systems becomes paramount. Traditional security paradigms focus on protecting software and networks from unauthorized access. However, ML models introduce a novel "algorithmic" attack surface. Because these models are often trained on third-party cloud platforms or utilize datasets from diverse providers, the entire supply chain of a model can be considered untrusted.

Mapping the ML Attack Surface

The security vulnerabilities of ML systems span their entire lifecycle, from initial data acquisition to physical hardware deployment. The complexity of modern ML workflows involves multiple stakeholders, including third-party (3P) cloud platforms for training, manufacturers for dataset generation, and IP providers for model structures. Each of these stages presents unique security threats, such as data poisoning, model modification, and IP stealing.

ML Lifecycle and Security Threats

Taxonomy of Threats

Researchers categorize threats based on the manufacturing and design cycle:

  1. Training Attacks: Primarily involve "Data Poisoning," where an attacker injects malicious samples into the training set to manipulate the model's learned logic.
  2. Inference Attacks: These utilize "Adversarial Examples"—tiny, imperceptible perturbations to input data designed to force a trained model into making an incorrect prediction with high confidence.
  3. Hardware Attacks: These include side-channel attacks aimed at stealing intellectual property (IP) or the insertion of "Hardware Trojans" during chip fabrication.

The "Stealthy" Poisoning Approach

Standard poisoning attacks often significantly degrade a model's overall performance, making them detectable via standard validation. This research proposes a more dangerous "Append" strategy (Attack 2), where malicious samples are added to the dataset rather than replacing existing ones. This allows the model to learn the malicious trigger while maintaining high accuracy on legitimate data, thereby evading detection.

Demonstrating Vulnerabilities: Adversarial Examples

To illustrate the fragility of ML systems, the researchers evaluated adversarial generation methods like L-BFGS and the Fast Gradient Sign Method (FGSM). Using the German Traffic Sign Recognition Benchmark (GTSRB) and the VGGNet architecture, they demonstrated that a "Stop" sign could be manipulated into being identified as a "60km/h Speed Limit" sign.

Adversarial Attacks on Traffic Signs

Key results from these experiments include:

  • Stealth Comparison: In MNIST/LeNet tests, the proposed "Attack 2" caused only a 1.3% accuracy loss compared to the 1.8% loss of traditional poisoning, making it significantly harder to detect.
  • Adversarial Success: Using FGSM with a minimal perturbation ($\epsilon = 0.007$), the researchers successfully flipped a "Stop" sign to a "60km/h" sign with 92.31% confidence.
  • The Trust Paradox: Even with a "trusted" cloud provider, man-in-the-middle attacks can manipulate the training process, highlighting the need for end-to-end security measures.

Research Challenges and Future Directions

Developing robust security for ML-based systems faces several hurdles:

  • Energy-Security Tradeoff: Robust countermeasures, such as redundant training or complex encryption, often introduce massive energy and area overheads, making them impractical for battery-powered IoT and edge devices.
  • Formal Verification: There is a critical need for tools that can formally prove a hardware implementation of a neural network is free from malicious modifications or Trojans.
  • Dynamic Defense: Future research must focus on real-time online monitoring and sophisticated pre-processing techniques capable of detecting adversarial noise before it reaches the model's input layers.

Summary updated

BibTeX
@inproceedings{khalid2018security,
  author = {Faiq Khalid and Muhammad Abdullah Hanif and Semeen Rehman and Muhammad Shafique},
  title = {{Security for Machine Learning-based Systems: Attacks and Challenges during Training and Inference}},
  booktitle = {FIT},
  year = {2018},
  doi = {10.1109/fit.2018.00064},
}
Figure