Submitted:
06 July 2026
Posted:
07 July 2026
You are already at the latest version
Abstract
Keywords:
1. Introduction
- Unified adversarial evaluation framework. We develop an experimental framework that evaluates classical machine learning models under training-time poisoning, inference-time evasion, and black-box model extraction attacks using consistent datasets, metrics, and evaluation procedures.
- Comparative analysis of architectural vulnerabilities. We analyze how differences between linear classifiers and ensemble-based models influence vulnerability across different adversarial settings.
- Cross-domain security evaluation. We evaluate adversarial behavior across image-based and text-based classification tasks to examine how dataset characteristics influence attack effectiveness.
- Practical security insights. We investigate the relationship between attack strategy, model architecture, and vulnerability patterns in order to provide insights into the suitability of classical machine learning models under different security conditions.
2. Related Work
2.1. Adversarial Machine Learning and Security Threats
2.2. Security Properties of Classical Machine Learning Models
2.3. Adaptive Querying and Model Extraction
2.4. Research Gap
3. Conceptual Foundation
3.1. Decision Representation and Adversarial Sensitivity
3.2. Model Complexity and Extraction Difficulty
3.3. Attack-Dependent Vulnerability of Classical Models
4. Experimental Setup
- training baseline models using unmodified datasets;
- applying adversarial manipulation according to the selected attack strategy;
- evaluating model performance after the attack;
- comparing vulnerability patterns across architectures;
- statistical significance analysis.
4.1. Datasets and Preprocessing
- MNIST consists of 28 x 28 pixel grayscale handwritten digit vectors (d = 784 features). Pixel values are normalized to a uniform range of [0, 1];
- CIFAR-10 consists of 32 x 32 x 3 color image matrices flattened into continuous feature coordinates (d = 3,072 features). Features are cast to 32-bit floating-point arrays and scaled via minimum-maximum transformation to the range [0, 1];
- AG News represents a high-dimensional topic classification task structured across four distinct categorical classes. Text sequences are constructed by concatenating headline string records with body descriptions. The text data is vectorized into a continuous sparse representation using a term frequency-inverse document frequency (TF-IDF) transformation bounded at M = 5,000 maximum features alongside English stop-word filtering.
4.2. Target Estimator Architecture and Configuration
- Logistic Regression, structured as a multi-class multinomial estimator utilizing the Limited-memory Broyden-Fletcher-Goldfarb-Shanno (L-BFGS) optimization solver. Optimization tolerances are set to τ=10^(-3), the inverse regularization strength is bounded at C = 5.0, and the maximum iteration limit is fixed at 2,000;
- Linear Support Vector Machine instantiated via a linear support vector classifier minimizing a squared hinge-loss objective function under automated primal-dual selection. Optimization thresholds are maintained at to τ=10^(-3), the regularization parameter is fixed at C = 5.0, and the maximum iterations are bounded at 10,000. To handle downstream probability collection, the estimator is wrapped in a CalibratedClassifierCV meta-estimator utilizing a 3-fold cross-validation calibration split;
- Random Forest, configured as a non-linear structural ensemble comprising B = 100 independent decision estimators. Tree complexity is constrained with a maximum depth threshold of dmax = 10 to prevent unconstrained variance fitting.
4.3. Attack Implementation
4.3.1. Poisoning Attacks
- Random label flipping, where selected training labels are randomly modified;
- Confidence-based targeted poisoning, where high-confidence samples are selected using a surrogate model and assigned incorrect target labels.
4.3.2. Evasion Attacks
- Fast Gradient Sign Method (FGSM);
- Projected Gradient Descent (PGD).
4.3.3. Model Extraction Attacks
- random sampling;
- entropy-based adaptive sampling.
4.4. Statistical Validation and Metrics
4.5. Reproducibility Settings
- TF-IDF maximum features: 5,000
- Surrogate training fraction: 30%
- Calibration cross-validation folds: 3
- Query budgets: 1,000, 5,000, 10,000
- Poisoning rates: 1%, 5%, 10%
4.6. Implementation Details and Computational Environment
5. Empirical Results
5.1. Baseline Performance
5.2. Poisoning Attack Results

5.3. Evasion Attack Results
5.4. Model Extraction Results
5.5. Comparative Analysis
5.5.1. Poisoning Vulnerability
5.5.2. Evasion Vulnerability
5.5.3. Extraction Vulnerability
| Architectural feature | LR | Linear SVM | RF |
|---|---|---|---|
| Decision Surface Geometry | Continuous, smooth linear hyperplanes | Continuous, piece-wise linear hyperplanes | Discontinuous, orthogonal step-boundaries |
| Optimization Objective | Unbounded Multinomial Cross-Entropy | Bounded Squared Hinge-Loss | Discrete Gini Impurity Heuristics |
| Poisoning Profile () | High vulnerability to feature distribution shifts; steady log-linear decay. | High vulnerability to edge corruption; susceptible to support vector skewing. | Outstanding resistance to unstructured noise; extreme fragility under targeted attacks. |
| Evasion Profile () | Moderate robust accuracy; continuous loss gradient provides stable attack directions. | Lower robust accuracy; susceptible to single-step margin-collapse (gradient stalling). | High transferability buffer; non-differentiable thresholds break localized analytical attacks. |
| Extraction Profile () | Critical vulnerability; smooth decision planes are completely exposed to active sampling. | Critical vulnerability; active query heuristics quickly map explicit linear separating margins. | Robust resistance buffer; active adaptive query selections are misled by jagged surfaces. |
5.5.4. Deconstructing the Linear vs. Ensemble Structural Trade-Offs
- The smooth hyperplane vulnerability: Logistic Regression and Linear SVM suffer from a shared susceptibility to black-box model extraction. Because their decision boundaries consist of continuous, flat hyperplanes, an adversary can efficiently map their global orientation using minimal boundary query samples. This structural exposure is visible under active adaptive sampling, where extraction fidelity values climb to 96.22% for LR and 93.84% for SVM on the MNIST domain. However, this same spatial continuity provides an optimization benefit during inference-time evasion. Under multi-step PGD pressure at , Logistic Regression retains a robust accuracy of 77.32% ± 1.17% on MNIST, outperforming the Random Forest's transfer defense. The continuous, smooth landscape allows the model's loss landscape to decay gracefully rather than collapsing abruptly.
- The jagged ensemble complexity buffer: The Random Forest resists active model extraction attacks in these settings, which is consistent with its complex decision surface. Its boundary is composed of numerous discontinuous, axis-aligned orthogonal step functions, creating a jagged surface. When an entropy-based active query selector attempts to map this space, it samples heavily around unrepresentative local leaf-node corners, which can misdirect the attack loop and limit extraction fidelity to 52.34% ± 1.33% on the AG News dataset. However, this irregular geometry introduces vulnerabilities during training-time poisoning. When targeted confidence-based label flipping is deployed, the Random Forest's accuracy on AG News collapses by 13.68%, dropping from a clean baseline 76.81% to 63.13% ± 2.05%. Because tree splits rely on categorical partitions, corrupting high-confidence training targets may alter early parent-node splits, causing downstream subtrees to misclassify instances.
5.5.5. Unified Security Recommendations for Deployment
- Environments dominated by extraction and reverse-engineering risks: If a model interface is exposed via public web APIs where intellectual property theft or surrogate extraction is the primary threat vector, non-linear tree-based ensembles (RF) should be prioritized over linear hyperplanes. The irregular decision surfaces of ensembles provide a natural buffer that resists adaptive sampling attacks.
- Environments vulnerable to training corruption and data ingestion risks: For applications that continuously retrain on user-generated inputs or open-source streams where label-tampering and data poisoning are prominent risks, linear models or robust hyperplanes are structurally preferable. Their global regularized objectives minimize the impact of targeted shifts, preventing the substantial degradation that compromises tree-based ensembles.
- Environments exposed to real-time inference threats: When models face automated, real-time input manipulation at inference time, continuous formulations utilizing cross-entropy objectives should be selected. Smooth loss surfaces handle multi-step local feature shifts more predictably, avoiding the sudden margin collapses and gradient-stalling vulnerabilities that compromise piece-wise linear hinge margins.
5.6. Statistical Significance Analysis
6. Discussion and Security Implications
6.1. Conditional Robustness of Ensemble Architectures Under Poisoning Attacks
6.2. Architectural Trade-Offs Between Evasion Resistance and Extraction Vulnerability
6.3. Optimization Effects in Gradient-Based Adversarial Evaluation
6.4. Security Implications and Practical Considerations
6.5. Limitations and Future Research Directions
7. Conclusions
- Poisoning and extraction trade-offs: The Random Forest ensemble exhibited reduced extraction fidelity under the evaluated active query strategies, suggesting that its complex decision structure can increase the difficulty of black-box approximation. However, this advantage did not translate into universal robustness, as targeted poisoning attacks produced notable performance degradation, indicating that structured manipulation of training data can influence ensemble decision behavior.
- Linear model behavior under adversarial evaluation: Logistic Regression and Linear SVM demonstrated higher susceptibility to model extraction within these parameters, which is consistent with the premise that simpler decision structures can be approximated efficiently through query-based methods. At the same time, these models showed more predictable performance variations under the evaluated evasion attacks, reflecting the interaction between linear decision boundaries and specific perturbation strategies.
- Influence of optimization characteristics: The evasion experiments suggest that adversarial evaluation results can depend strongly on attack optimization procedures. The observed differences between FGSM and PGD performance for Linear SVM suggest that loss formulation and optimization dynamics may influence the apparent effectiveness of iterative attacks and should be carefully considered when interpreting adversarial robustness measurements.
Supplementary Materials
Author Contributions
Funding
Institutional Review Board Statement
Conflicts of Interest
Abbreviations
| ML | Machine learning |
| LR | Logistic Regression |
| SVM | Support Vector Machine |
| RF | Random Forest |
| L-BFGS | Limited-memory Broyden-Fletcher-Goldfarb-Shanno |
| FGSM | Fast Gradient Sign Method |
| PGD | Projected Gradient Descent |
| TF-IDF | Term frequency-inverse document frequency |
| ART | Adversarial Robustness Toolbox |
| ROC-AUC | Area under the receiver operating characteristic curve |
References
- Biggio, B.; Nelson, B.; Laskov, P. Poisoning Attacks against Support Vector Machines. 2013.
- Yerlikaya, F.A.; Bahtiyar, Ş. Data Poisoning Attacks against Machine Learning Algorithms. Expert Syst. Appl. 2022, 208, 118101. [CrossRef]
- Anisetti, M.; Ardagna, C.A.; Balestrucci, A.; Bena, N.; Damiani, E.; Yeun, C.Y. On the Robustness of Random Forest Against Untargeted Data Poisoning: An Ensemble-Based Approach. IEEE Transactions on Sustainable Computing 2023, 8, 540–554. [CrossRef]
- Biggio, B.; Corona, I.; Maiorca, D.; Nelson, B.; Šrndić, N.; Laskov, P.; Giacinto, G.; Roli, F. Evasion Attacks against Machine Learning at Test Time. In; 2013; pp. 387–402.
- Goodfellow, I.J.; Shlens, J.; Szegedy, C. Explaining and Harnessing Adversarial Examples. 2015.
- Muthalagu, R.; Malik, J.; Pawar, P.M. Detection and Prevention of Evasion Attacks on Machine Learning Models. Expert Syst. Appl. 2025, 266, 126044. [CrossRef]
- Tramèr, F.; Zhang, F.; Juels, A.; Reiter, M.K.; Ristenpart, T. Stealing Machine Learning Models via Prediction APIs. 2016.
- Papernot, N.; McDaniel, P.; Goodfellow, I.; Jha, S.; Celik, Z.B.; Swami, A. Practical Black-Box Attacks against Machine Learning. 2017.
- Jagielski, M.; Carlini, N.; Berthelot, D.; Kurakin, A.; Papernot, N. High Accuracy and High Fidelity Extraction of Neural Networks; USENIX Association, 2020; ISBN 9781939133175.
- Zijun, L.; Ke, X.; Chengfang, F.; Huadi, Z.; Jaheezuddin, A.A.; Jie, S. QUDA: Query-Limited Data-Free Model Extraction. Proceedings of the 2023 ACM Asia Conference on Computer and Communications Security 2023, 913–924.
- Sanyal, S.; Addepalli, S.; Babu, R.V. Towards Data-Free Model Stealing in a Hard Label Setting. In Proceedings of the 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR); IEEE, June 2022; pp. 15263–15272.
- Pratik, K.; Basu, D. Marich: A Query-Efficient Distributionally Equivalent Model Extraction Attack Using Public Data. ArXiv 2023.
- Carlini, N.; Wagner, D. Towards Evaluating the Robustness of Neural Networks. 2017.
- Breiman, L. Random Forests. Mach. Learn. 2001, 45, 5–32. [CrossRef]
- Biau, G.; Scornet, E. A Random Forest Guided Tour. 2015. [CrossRef]
- Settles, B. Active Learning Literature Survey; 2009;
- Gao, L.; Liu, W.; Liu, K.; Wu, J. AugSteal: Advancing Model Steal With Data Augmentation in Active Learning Frameworks. IEEE Transactions on Information Forensics and Security 2024, 19, 4728–4740. [CrossRef]
- Elsayed, G.F.; Krishnan, D.; Mobahi, H.; Regan, K.; Bengio, S. Large Margin Deep Networks for Classification. 2018.






| Study group | Attack type | Main limitation |
|---|---|---|
| Poisoning studies [1,2,3] | Training manipulation | Usually single model family |
| Evasion studies [4,5,6] | Input perturbation | Mostly neural models |
| Extraction studies [7,8,9,10,11,12] | Query-based reconstruction | Limited comparison across classical models |
| Note: A detailed comparison of individual studies is provided in Supplementary Table S1. | ||
| Model | Dataset | Accuracy (%) | ROC-AUC |
|---|---|---|---|
| Logistic Regression | MNIST | 91.34 ± 0.3 | 0.993 |
| Linear SVM | 90.54 ± 0.2 | 0.988 | |
| Random Forest | 94.29 ± 0.1 | 0.997 | |
| Logistic Regression | CIFAR-10 | 35.62 ± 0.68 | 0.783 |
| Linear SVM | 32.46 ± 0.17 | 0.749 | |
| Random Forest | 41.06 ± 0.25 | 0.828 | |
| Logistic Regression | AG News | 88.40 ± 0.13 | 0.973 |
| Linear SVM | 87.65 ± 0.24 | 0.970 | |
| Random Forest | 76.81 ± 0.23 | 0.931 |
| Attack | Model | Dataset | Clean accuracy (%) | Accuracy after attack |
ΔAccuracy (%) |
|---|---|---|---|---|---|
| Random flip | LR | MNIST | 91.34 | 87.44 | -3.74 |
| SVM | 90.54 | 87.56 | -2.55 | ||
| RF | 94.29 | 94.08 | -0.21 | ||
| LR | CIFAR-10 | 35.62 | 32.40 | -2.77 | |
| SVM | 32.46 | 28.50 | -2.24 | ||
| RF | 41.06 | 40.85 | -0.21 | ||
| LR | AG News | 88.40 | 79.55 | -8.01 | |
| SVM | 87.65 | 79.13 | -7.63 | ||
| RF | 76.81 | 76.29 | -0.52 | ||
| Targeted | LR | MNIST | 91.34 | 84.44 | -6.89 |
| SVM | 90.54 | 86.36 | -4.17 | ||
| RF | 94.29 | 90.38 | -3.90 | ||
| LR | CIFAR-10 | 35.62 | 32.67 | -2.94 | |
| SVM | 32.46 | 28.65 | -3.8 | ||
| RF | 41.06 | 36.96 | -4.10 | ||
| LR | AG News | 88.40 | 80.84 | -7.56 | |
| SVM | 87.65 | 78.04 | -9.61 | ||
| RF | 76.81 | 63.13 | -13.68 | ||
| Note: Comprehensive data for all intermediate poisoning rates (1% and 5%), including standard errors and 95% confidence intervals across independent experimental seeds, are provided in Supplementary Tables S3 and S4. | |||||
| Attack | Model | ε = 0.01| CI95 | ε = 0.02| CI95 | ε = 0.05| CI95 | ε = 0.1| CI95 |
|---|---|---|---|---|---|
| FGSM | LR | 85.56 ± 0.50 [84.32, 86.79] |
77.66 ± 1.18 [74.72, 80.60] |
34.82 ± 2.84 [27.76, 41.87] |
2.62 ± 0.62 [1.08, 4.17] |
| SVM | 75.83 ± 0.33 [75.02, 76.64] |
54.28 ± 1.15 [51.44, 57.13] |
10.65 ± 1.12 [7.88, 13.43] |
0.51 ± 0.13 [0.19, 0.83] |
|
| RF | 67.40 ± 0.58 [65.97, 68.83] |
57.52 ± 2.85 [50.45, 64.59] |
41.56 ± 2.96 [34.21, 48.92] |
28.75 ± 1.13 [25.94, 31.57] |
|
| PGD | LR | 85.51 ± 0.51 [84.24, 86.79] |
77.32 ± 1.17 [74.42, 80.23] |
31.92 ± 2.77 [25.05, 38.80] |
1.94 ± 0.36 [1.04, 2.83] |
| SVM | 78.03 ± 0.36 [77.13, 78.93] |
55.60 ± 1.25 [52.50, 58.70] |
14.26 ± 1.74 [9.95, 18.58] |
0.84 ± 0.32 [0.04, 1.64] |
|
| RF | 59.68 ± 1.03 [57.13, 62.23] |
57.49 ± 2.63 [50.96, 64.03] |
42.33 ± 2.49 [36.15, 48.51] |
30.83 ± 0.90 [28.59, 33.08] |
|
| Note: Baseline reference checks (): LR = 91.34% ± 0.30%, SVM = 90.54% ± 0.20%, RF = 94.29% ± 0.10%. | |||||
| Attack | Model | ε = 0.001| CI95 | ε = 0.002| CI95 | ε = 0.005| CI95 | ε = 0.01| CI95 |
|---|---|---|---|---|---|
| FGSM | LR | 23.97 ± 2.12 [18.69, 29.24] |
15.54 ± 2.45 [9.45, 21.62] |
3.38 ± 1.51 [-0.38, 7.14] |
0.22 ± 0.22 [-0.32, 0.75] |
| SVM | 7.34 ± 0.36 [6.43, 8.25] |
1.22 ± 0.14 [0.88, 1.56] |
0.00 ± 0.01 [-0.01, 0.02] |
0.00 [0.00, 0.00] |
|
| RF | 41.08 ± 0.14 [40.73, 41.44] |
40.90 ± 0.25 [40.28, 41.53] |
40.84 ± 0.19 [40.37, 41.31] |
40.31 ± 0.20 [39.83, 40.80] |
|
| PGD | LR | 23.88 ± 2.15 [18.55, 29.21] |
15.28 ± 2.54 [8.98, 21.58] |
3.04 ± 1.55 [-0.81, 6.89] |
0.16 ± 0.18 [-0.29, 0.61] |
| SVM | 7.69 ± 0.26 [7.06, 8.33] |
1.26 ± 0.10 [1.00, 1.52] |
0.00 ± 0.01 [-0.01, 0.02] |
0.00 ± 0.00 [0.00, 0.00] |
|
| RF | 41.09 ± 0.14 [40.74, 41.44] |
40.91 ± 0.26 [40.26, 41.56] |
40.90 ± 0.16 [40.49, 41.31] |
40.32 ± 0.26 [39.68, 40.96] |
|
| Note: Baseline reference checks (): LR = 35.62% ± 0.68%, SVM = 32.46% ± 0.17%, RF = 41.06% ± 0.25% | |||||
| Target | Dataset | Queries | Fidelity (%) | CI95 |
|---|---|---|---|---|
| LR | MNIST | 1k | 89.93 ± 0.49 | [88.71, 91.15] |
| 5k | 93.95 ± 0.39 | [92.98, 94.92] | ||
| 10k | 95.27 ± 0.26 | [94.62, 95.92] | ||
| SVM | 1k | 88.26 ± 0.58 | [86.83, 89.70] | |
| 5k | 91.27 ± 0.18 | [90.83, 91.72] | ||
| 10k | 93.00 ± 0.22 | [92.46, 93.54] | ||
| RF | 1k | 92.27 ± 0.24 | [91.69, 92.86] | |
| 5k | 96.57 ± 0.15 | [96.19, 96.95] | ||
| 10k | 97.38 ± 0.10 | [97.13, 97.63] | ||
| LR | CIFAR-10 |
1k | 44.72 ± 2.41 | [38.73, 50.70] |
| 5k | 61.34 ± 2.55 | [55.01, 67.67] | ||
| 10k | 71.33 ± 1.81 | [66.84, 75.82] | ||
| SVM | 1k | 34.38 ± 0.62 | [32.83, 35.93] | |
| 5k | 46.84 ± 0.44 | [45.75, 47.93] | ||
| 10k | 58.31 ± 0.38 | [57.37, 59.25] | ||
| RF | 1k | 61.58 ± 1.43 | [58.03, 65.12] | |
| 5k | 69.21 ± 0.87 | [67.05, 71.38] | ||
| 10k | 71.00 ± 0.47 | [69.82, 72.17] | ||
| LR | AG News | 1k | 85.50 ± 0.29 | [84.78, 86.22] |
| 5k | 91.54 ± 0.27 | [90.86, 92.21] | ||
| 10k | 93.72 ± 0.13 | [93.39, 94.05] | ||
| SVM | 1k | 82.86 ± 0.34 | [82.02, 83.69] | |
| 5k | 88.04 ± 0.08 | [87.84, 88.23] | ||
| 10k | 90.35 ± 0.27 | [89.68, 91.02] | ||
| RF | 1k | 68.44 ± 2.61 | [61.97, 74.92] | |
| 5k | 71.91 ± 1.84 | [67.35, 76.48] | ||
| 10k | 73.39 ± 0.68 | [71.69, 75.09] |
| Target | Dataset | Queries | Fidelity (%) | CI95 |
|---|---|---|---|---|
| LR | MNIST | 1k | 89.49 ± 0.97 | [87.08, 91.91] |
| 5k | 96.50 ± 0.26 | [95.85, 97.15] | ||
| 10k | 96.22 ± 0.43 | [95.16, 97.28] | ||
| SVM | 1k | 77.61 ± 0.82 | [75.57, 79.65] | |
| 5k | 91.67 ± 0.12 | [91.39, 91.96] | ||
| 10k | 93.84 ± 0.05 | [93.73, 93.95] | ||
| RF | 1k | 51.78 ± 5.42 | [38.32, 65.24] | |
| 5k | 90.34 ± 0.68 | [88.66, 92.02] | ||
| 10k | 96.76 ± 0.11 | [96.48, 97.03] | ||
| LR | CIFAR-10 | 1k | 39.21 ± 3.46 | [30.62, 47.81] |
| 5k | 64.59 ± 3.39 | [56.17, 73.01] | ||
| 10k | 72.54 ± 2.20 | [67.07, 78.01] | ||
| SVM | 1k | 30.95 ± 1.44 | [27.37, 34.53] | |
| 5k | 49.92 ± 0.18 | [49.47, 50.37] | ||
| 10k | 61.45 ± 0.36 | [60.54, 62.35] | ||
| RF | 1k | 27.66 ± 2.78 | [20.76, 34.57] | |
| 5k | 42.79 ± 3.82 | [33.31, 52.27] | ||
| 10k | 56.43 ± 1.78 | [52.00, 60.86] | ||
| LR | AG News | 1k | 51.31 ± 2.17 | [45.91, 56.70] |
| 5k | 91.21 ± 0.22 | [90.66, 91.77] | ||
| 10k | 95.07 ± 0.24 | [94.49, 95.66] | ||
| SVM | 1k | 48.40 ± 1.34 | [45.07, 51.74] | |
| 5k | 86.13 ± 0.63 | [84.58, 87.68] | ||
| 10k | 93.29 ± 0.11 | [93.02, 93.55] | ||
| RF | 1k | 31.72 ± 0.34 | [30.87, 32.57] | |
| 5k | 33.75 ± 0.82 | [31.73, 35.78] | ||
| 10k | 52.34 ± 1.33 | [49.02, 55.65] |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).