Abstract
As smart city infrastructures increasingly rely on machine learning (ML) for monitoring mobile data streams, the security of these models becomes paramount. This paper explores the impact of data poisoning (DP) attacks on ML-based malware detection systems. Specifically, it investigates "label-flipping" attacks, where an adversary manipulates training data to compromise model integrity. By introducing a novel targeted attack strategy leveraging Explainable AI (XAI), the researchers demonstrate that even robust classifiers like Random Forest can be systematically blinded to malicious exfiltration activities.
Introduction
The proliferation of mobile devices in modern urban environments has necessitated automated systems for detecting malware and data exfiltration. Machine learning models are typically trained on large datasets collected from the field. However, this reliance on external data sources creates a "window of opportunity" for attackers to inject malicious samples or alter existing ones during the training phase.
Data poisoning attacks aim to degrade a model's performance or create specific backdoors. In the context of mobile security, a successful attack could allow malicious software to bypass detection by being misclassified as "benign." This study focuses on the vulnerability of five common classifiers—Random Forest, Decision Tree, SVM, Logistic Regression, and K-Nearest Neighbors (KNN)—to these adversarial manipulations.
Methodology
The researchers proposed and evaluated two distinct levels of label-flipping attacks:
- Level 1: Random Label-Flipping: This baseline attack involves switching a percentage of training labels between "Benign" (0) and "Malign" (1) at random. The primary goal is to reduce the overall accuracy and reliability of the model.
- Level 2: Targeted Label-Flipping via XAI: This more sophisticated approach utilizes Explainable AI (XAI) to identify critical features. By generating surrogate decision trees and analyzing Pareto diagrams, the attacker determines which system calls most strongly influence a "Malign" classification. The attacker then specifically flips the labels of samples containing these high-impact features from "Malign" to "Benign."
The objective of the Level 2 attack is to "blind" the detector to the most dangerous threats while maintaining a deceptive level of overall accuracy, thereby creating a functional backdoor for data exfiltration.
Experimental Setup and Datasets
The study utilized a specialized Mobile Exfiltration Dataset. This dataset consists of Android system calls captured during program execution. To capture behavioral signatures, the raw system calls were processed into 3-grams (sequences of three consecutive calls). The features represent the frequency of these sequences, which the models use to distinguish between Benign and Malign behavior.
Results and Discussion
The experimental results highlight a significant vulnerability across all tested architectures.
- Performance Degradation: Before any attack, the Random Forest classifier achieved an impressive 99.54% accuracy. However, under a 100% random label-flipping attack, its accuracy dropped to 64.59%.
- Targeted Impact on Recall: The Level 2 attack was particularly effective at increasing False Negatives. In malware detection, high recall is critical; the targeted attack specifically compromised this metric, allowing malicious samples to be consistently misclassified as benign.
- XAI as a Dual-Use Tool: A key insight is the potential for XAI to be weaponized. While intended for model transparency and debugging, attackers can use these tools to reverse-engineer model priorities and craft highly efficient poisoning strategies.
- Threshold Effects: The study found that even a 25% poisoning rate leads to significant accuracy degradation. The targeted nature of Level 2 attacks caused models to "utterly malfunction" during the testing phase regarding specific high-threat samples.
Conclusion and Future Work
This research underscores the critical need for robust defenses against data poisoning in mobile security. The findings suggest that vulnerability to label-flipping is model-agnostic, stemming from the fundamental way classifiers learn from labeled data.
Future work will focus on developing "attack-agnostic" defenses, such as Label Sanitization (LS). This involves identifying and re-labeling suspicious training points based on their distance from the decision boundary. Additionally, the researchers aim to explore inference-phase defenses that can detect when a model is providing a "poisoned" or low-confidence prediction, ensuring the continued integrity of smart city security systems.
Summary updated