Does Bayesian Uncertainty Make Network Intrusion Detectors Robust to Adversarial Evasion?

Bayesian neural networks are often proposed for intrusion detection because their predictive uncertainty is expected to make them harder to fool and to flag manipulated traffic. We test this expectation under an evaluation designed to avoid the pitfalls that have inflated earlier robustness claims: a leakage-aware split of de-duplicated flows, feature-space constraints that keep perturbed flows consistent, adaptive white-box attacks with expectation over transformation, a gradient-free attack, and a targeted evasion threat in which an attacker disguises its own traffic as benign. On CIC-IDS2017 and UNSW-NB15 we compare a static Bayesian neural network, two variants of a hierarchical automatic-relevance-determination prior, Monte Carlo dropout, a deep ensemble and adversarial training. Without adversarial training, every model is evaded on 47–95% of the attack flows it detects, and its worst-case macro-F1 stays below 0.21. Hierarchical priors improve worst-case macro-F1 by about 0.05 over a static Bayesian network on UNSW-NB15, but have no measurable effect on CIC-IDS2017. Uncertainty separates attacked from clean flows with an area under the receiver operating characteristic curve of up to 0.86 on CIC-IDS2017, yet an attacker aware of the detector still evades it for 38–44% of attack flows, and the signal is close to uninformative on UNSW-NB15. Adversarial training is the only effective defense, but a gradient-free attack reveals 6.0% residual evasion that gradient-based attacks alone report as 0.3%, concentrated in the rarest attack classes. We release the code to support reproducible robustness evaluation of intrusion detectors.

Authors

Institutions

Publication Details

Journal
Research Square
Published
2026-11-26
DOI
https://doi.org/10.21203/rs.3.rs-11738416/v1
Primary Topic
Adversarial Robustness in Machine Learning
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Does Bayesian Uncertainty Make Network Intrusion Detectors Robust to Adversarial Evasion?

Mohammed Assora, Mustapha Dakkak, Mohammad Hamdan
Research Square
Adversarial Robustness in Machine Learning
preprint

Does Bayesian Uncertainty Make Network Intrusion Detectors Robust to Adversarial Evasion?

Mohammed Assora, Mustapha Dakkak, Mohammad Hamdan
preprint en

Abstract

Bayesian neural networks are often proposed for intrusion detection because their predictive uncertainty is expected to make them harder to fool and to flag manipulated traffic. We test this expectation under an evaluation designed to avoid the pitfalls that have inflated earlier robustness claims: a leakage-aware split of de-duplicated flows, feature-space constraints that keep perturbed flows consistent, adaptive white-box attacks with expectation over transformation, a gradient-free attack, and a targeted evasion threat in which an attacker disguises its own traffic as benign. On CIC-IDS2017 and UNSW-NB15 we compare a static Bayesian neural network, two variants of a hierarchical automatic-relevance-determination prior, Monte Carlo dropout, a deep ensemble and adversarial training. Without adversarial training, every model is evaded on 47–95% of the attack flows it detects, and its worst-case macro-F1 stays below 0.21. Hierarchical priors improve worst-case macro-F1 by about 0.05 over a static Bayesian network on UNSW-NB15, but have no measurable effect on CIC-IDS2017. Uncertainty separates attacked from clean flows with an area under the receiver operating characteristic curve of up to 0.86 on CIC-IDS2017, yet an attacker aware of the detector still evades it for 38–44% of attack flows, and the signal is close to uninformative on UNSW-NB15. Adversarial training is the only effective defense, but a gradient-free attack reveals 6.0% residual evasion that gradient-based attacks alone report as 0.3%, concentrated in the rarest attack classes. We release the code to support reproducible robustness evaluation of intrusion detectors.

Research Square
Higher Institute for Applied Sciences and Technology (SY)
Adversarial Robustness in Machine Learning
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
Does Bayesian Uncertainty Make Network Intrusion Detectors Robust to Adversarial Evasion? — Mohammed Assora, Mustapha Dakkak, et al. · Research Square (2026) | TGRS Research Map | TGRS