← Lab /AI/ML

CNNs stay robust while Random Forests collapse under adversarial attacks

CNN-based NIDS retain high accuracy under FGSM/PGD attacks, whereas Random Forest accuracy drops dramatically

AI/ML arXiv 10 Jun 2026 Measurement Prototype evidence

Published as “Categorical Robustness Assessment for Machine Learning based Network Intrusion Detection Systems”

Why it matters

Practitioners should prefer CNN-based NIDS architectures for deployment in adversarial IoT environments.

Summary

Random Forest, despite a near-perfect 99.98% baseline accuracy, collapses to about 27% accuracy under the smallest FGSM perturbation (ε = 0.01), a 73-point drop, while CNN retains 95.5% accuracy and degrades more gracefully. The study evaluates three architectures (CNN, LSTM, Random Forest) on the real-world ACI-IoT-2023 dataset (over 1.2 M samples) using FGSM and PGD attacks with ε = 0.01, 0.05, 0.1, showing that neural models are substantially more robust. Evidence is strong: multiple metrics (accuracy, F1, CLEVER scores) and attack types are reported, though all attacks assume white-box access and no defenses are tested.

What they found 2

  1. Random Forest’s baseline accuracy of 99.98% drops by 73 percentage points at the smallest perturbation

    “Random Forest achieved near-perfect baseline accuracy (99.98%), yet collapsed catastrophically under attack, dropping 73 percentage points at the smallest perturbation we tested.”

  2. Random Forest accuracy falls from 99.98% to 26.8% at ε = 0.01

    “Random Forest (red) collapses immediately at ε = 0.01, dropping from 99.98% to 26.8% accuracy.”

Caveats 6

  • At ε = 0.1, all models converged to roughly similar accuracy levels: CNN at 28.7%, LSTM at 29.6%, and Random Forest at 28.0%.
  • While LSTM occasionally outperformed CNN at specific ε values, CNN showed more consistent robustness across attack types and perturbation levels.
  • We only used ACI-IoT-2023 dataset, which is solid and represents modern IoT attack traffic. Certain environments such as enterprise and cloud may look different.
  • Our attacks assume white-box access.
  • We used fixed perturbation budgets.
  • We did not test any defenses such: adversarial training, input preprocessing, and certified robustness techniques.

What’s new here 4

  • Systematic cross-architecture comparison of adversarial robustness for NIDS using a unified evaluation framework
  • Definition and empirical validation of the "False Champion Problem" where high baseline accuracy predicts poor robustness
  • Inclusion of class- and category-level robustness analysis, highlighting the impact of class imbalance
  • Transfer attacks from CNN to non-differentiable Random Forests to assess black-box vulnerability