Skip to main content
QUICK REVIEW

[Paper Review] A Novel Deep Learning based Model to Defend Network Intrusion Detection System against Adversarial Attacks

Khushnaseeb Roshan, Aasim Zafar|arXiv (Cornell University)|Jul 31, 2023
Network Security and Intrusion DetectionComputer Science7 citations
TL;DR

This paper proposes a deep learning-based defense mechanism using adversarial training to enhance the robustness of a Network Intrusion Detection System (NIDS) against four powerful evasion attacks—FGSM, JSMA, PGD, and C&W. After adversarial training, the model's accuracy under these attacks improved from below 62% to over 98% for most methods, with C&W remaining the most challenging at 71.56% precision.

ABSTRACT

Network Intrusion Detection System (NIDS) is an essential tool in securing cyberspace from a variety of security risks and unknown cyberattacks. A number of solutions have been implemented for Machine Learning (ML), and Deep Learning (DL) based NIDS. However, all these solutions are vulnerable to adversarial attacks, in which the malicious actor tries to evade or fool the model by injecting adversarial perturbed examples into the system. The main aim of this research work is to study powerful adversarial attack algorithms and their defence method on DL-based NIDS. Fast Gradient Sign Method (FGSM), Jacobian Saliency Map Attack (JSMA), Projected Gradient Descent (PGD) and Carlini & Wagner (C&W) are four powerful adversarial attack methods implemented against the NIDS. As a defence method, Adversarial Training is used to increase the robustness of the NIDS model. The results are summarized in three phases, i.e., 1) before the adversarial attack, 2) after the adversarial attack, and 3) after the adversarial defence. The Canadian Institute for Cybersecurity Intrusion Detection System 2017 (CICIDS-2017) dataset is used for evaluation purposes with various performance measurements like f1-score, accuracy etc.

Motivation & Objective

  • To investigate the vulnerability of deep learning-based NIDS to four prominent adversarial attack methods: FGSM, JSMA, PGD, and C&W.
  • To evaluate the performance degradation of a DL-based NIDS under these adversarial attacks using standard metrics like accuracy, precision, recall, and F1-score.
  • To implement and validate adversarial training as a defense mechanism to improve model robustness against evasion attacks.
  • To analyze whether constrained domains like network intrusion detection are as vulnerable to adversarial examples as unconstrained domains such as image classification.
  • To provide empirical evidence on the effectiveness of adversarial training in restoring model performance after adversarial perturbations.

Proposed method

  • A deep neural network (DNN) model is trained on the CICIDS-2017 dataset to establish baseline performance under normal conditions.
  • Four adversarial attack methods—FGSM, JSMA, PGD, and C&W—are applied to generate perturbed inputs that evade detection.
  • Adversarial training is employed by retraining the model using both clean and adversarially perturbed samples from all four attack methods.
  • The model is re-evaluated after adversarial training to measure improvements in accuracy, precision, recall, F1-score, and AUC under the same attack conditions.
  • Performance is quantitatively compared across three phases: before attack, after attack, and after defense using metrics including F1-score, AUC, and confusion matrices.
  • The robustness of the defense is assessed by measuring the model’s ability to maintain high performance even when exposed to the most advanced attack techniques, particularly C&W.

Experimental results

Research questions

  • RQ1How do FGSM, JSMA, PGD, and C&W attacks degrade the performance of a deep learning-based NIDS on the CICIDS-2017 dataset?
  • RQ2To what extent does adversarial training mitigate the impact of these attacks on NIDS robustness?
  • RQ3Why does the C&W attack remain the most effective in degrading model performance even after adversarial defense?
  • RQ4Is the constrained domain of network intrusion detection equally vulnerable to adversarial examples as unconstrained domains like image recognition?
  • RQ5Can adversarial training restore model performance to near-baseline levels after exposure to strong adversarial attacks?

Key findings

  • The baseline NIDS model achieved 98.54% accuracy and 98.54% F1-score before any adversarial attack.
  • After applying FGSM, JSMA, PGD, and C&W attacks, model accuracy dropped to 57.95%, 66.58%, 56.81%, and 61.74%, respectively, indicating severe performance degradation.
  • The AUC score decreased from 98.551 to 59.232 (FGSM), 68.037 (JSMA), 58.485 (PGD), and 63.41 (C&W), confirming reduced detection capability.
  • After adversarial training, accuracy improved to 98.7% (FGSM), 98.47% (JSMA), 98.68% (PGD), and 71.56% (C&W), demonstrating strong defense effectiveness.
  • Precision under C&W remained the lowest at 80.35% post-defense, indicating that C&W is still the most challenging attack to defend against.
  • The results confirm that even in constrained domains like NIDS, deep learning models remain highly vulnerable to adversarial attacks without proper defense mechanisms.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.