A General Framework for Defending against Query-based Black-box Attacks on Neural Network Models
Open Access
- 12 June 2026
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Software Engineering and Methodology
Abstract
As Machine Learning as a Service (MLaaS) becomes increasingly prevalent, query-based black-box attacks pose a significant threat to machine learning systems. These attacks manipulate input queries to generate adversarial examples, resulting in misclassification or undesired outputs. To address these threats, researchers have developed various query moderation techniques. However, recent studies have revealed that these techniques are vulnerable to sophisticated adaptive attacks. In this paper, we propose a general framework, Query Provenance Analysis (QPA), to defend against query-based black-box attacks both robustly (against non-adaptive and adaptive attacks) and efficiently (in real-time). Our key insight is that, instead of focusing on individual queries, utilizing features from the query sequence (termed query provenance ) can distinguish malicious queries from benign queries more effectively. We construct a query provenance graph to capture the relationship between a new query and prior historical queries, and then design efficient algorithms to detect malicious queries based on the query provenance graphs. We evaluate QPA on image classification and Natural Language Processing (NLP) tasks. QPA significantly reduces the Attack Success Rate (ASR) compared to baselines, achieving up to 20 \(\times\) lower ASR for image classification and 10 \(\times\) lower ASR for NLP, while also improving throughput and latency across all tasks.
Keywords
This publication has 23 references indexed in Scilit:
- Random transformations to improve mitigation of query-based black-box attacksExpert Systems with Applications, 2024
- Query-Efficient Black-Box Adversarial Attacks on Automatic Speech RecognitionIEEE/ACM Transactions on Audio, Speech, and Language Processing, 2023
- MalProtect: Stateful Defense Against Adversarial Query Attacks in ML-Based Malware DetectionIEEE Transactions on Information Forensics and Security, 2023
- FedSlice: Protecting Federated Learning Models from Malicious Participants with Model Slicing2023
- SurFree: a fast surrogate-free black-box attack2021
- Square Attack: A Query-Efficient Black-Box Adversarial Attack via Random Search2020
- QEBA: Query-Efficient Boundary-Based Blackbox Attack2020
- PRADA: Protecting Against DNN Model Stealing Attacks2019
- The MNIST Database of Handwritten Digit Images for Machine Learning Research [Best of the Web]IEEE Signal Processing Magazine, 2012
- Face recognition in unconstrained videos with matched background similarity2011