Exploring the Effect of DNN Depth on Adversarial Attacks in Network Intrusion Detection Systems
Mohamed ElShehaby, Ashraf Matrawy
TL;DR
This study examines how increasing DNN depth affects adversarial robustness in network intrusion detection, contrasting NIDS with computer vision. Using five fully-connected architectures trained on CSE-CIC-IDS2018 and MNIST, and evaluating under FGSM with varying $\varepsilon$, the authors reveal a domain-specific depth-robustness trade-off: deeper NIDS models become more vulnerable to adversarial perturbations, while depth has a modest effect in MNIST. The work contributes empirical evidence and analysis of why depth interacts differently with structured, low-dimensional NIDS data versus high-dimensional image data, underscoring the need for domain-aware defense strategies. Practically, the findings suggest prioritizing shallow architectures and feature-space defenses for NIDS to balance accuracy and adversarial resilience in security-critical settings.
Abstract
Adversarial attacks pose significant challenges to Machine Learning (ML) systems and especially Deep Neural Networks (DNNs) by subtly manipulating inputs to induce incorrect predictions. This paper investigates whether increasing the layer depth of deep neural networks affects their robustness against adversarial attacks in the Network Intrusion Detection System (NIDS) domain. We compare the adversarial robustness of various deep neural networks across both \ac{NIDS} and computer vision domains (the latter being widely used in adversarial attack experiments). Our experimental results reveal that in the NIDS domain, adding more layers does not necessarily improve their performance, yet it may actually significantly degrade their robustness against adversarial attacks. Conversely, in the computer vision domain, adding more layers exhibits a more modest impact on robustness. These findings can guide the development of robust neural networks for (NIDS) applications and highlight the unique characteristics of network security domains within the (ML) landscape.
