Skip to main content
QUICK REVIEW

[Paper Review] A Case Study on Using Deep Learning for Network Intrusion Detection

Gabriel Fernández, Shouhuai Xu|arXiv (Cornell University)|Oct 5, 2019
Network Security and Intrusion DetectionComputer Science41 references13 citations
TL;DR

This paper evaluates deep learning for network intrusion detection using supervised deep neural networks (DNNs) and unsupervised autoencoders on modern datasets. DNNs outperform traditional ML methods and remain robust under dynamic IP assignment when using only the first three octets of IP addresses, while autoencoders effectively detect anomalies with a low false-positive rate of 0.00013.

ABSTRACT

Deep Learning has been very successful in many application domains. However, its usefulness in the context of network intrusion detection has not been systematically investigated. In this paper, we report a case study on using deep learning for both supervised network intrusion detection and unsupervised network anomaly detection. We show that Deep Neural Networks (DNNs) can outperform other machine learning based intrusion detection systems, while being robust in the presence of dynamic IP addresses. We also show that Autoencoders can be effective for network anomaly detection.

Motivation & Objective

  • To evaluate the effectiveness of deep learning in supervised and unsupervised network intrusion detection.
  • To assess the robustness of DNNs when IP addresses are dynamically assigned via DHCP.
  • To investigate the feasibility of using autoencoders for anomaly detection without labeled malicious traffic.
  • To compare model performance across modern, high-fidelity datasets with ground truth labels.
  • To examine the impact of IP address feature representation on model accuracy and generalization.

Proposed method

  • A fully connected feedforward deep neural network (DNN) is trained using supervised learning on labeled network flow data from the CIC IDS 2017 and ISCX IDS 2012 datasets.
  • The DNN uses ReLU activation in hidden layers and sigmoid in input/output layers, with L1 regularization applied to the first layer.
  • For unsupervised anomaly detection, a 7-layer autoencoder is trained on benign network flows using mean squared reconstruction error as the loss function.
  • Input features include 69 continuous flow statistics and one-hot encoded protocol; IP and port features are excluded to reduce complexity.
  • The autoencoder learns a lower-dimensional latent representation of benign traffic and reconstructs inputs, with reconstruction error used to detect anomalies.
  • A threshold of 0.03 on reconstruction error is used to classify flows as anomalous, balancing false positives and false negatives.

Experimental results

Research questions

  • RQ1Can deep neural networks outperform traditional machine learning methods in supervised network intrusion detection on modern datasets?
  • RQ2How does dynamic IP assignment via DHCP affect the performance of DNN-based intrusion detection systems when IP addresses are used as input features?
  • RQ3Can autoencoders trained only on benign traffic effectively detect network intrusions in an unsupervised manner?
  • RQ4Does using only the first three octets of IP addresses preserve detection performance compared to using full IP addresses in DNNs?
  • RQ5What is the trade-off between false-positive and false-negative rates in autoencoder-based anomaly detection?

Key findings

  • DNNs outperform other machine learning-based intrusion detection systems in terms of true positive rate and false negative rate on both the CIC IDS 2017 and ISCX IDS 2012 datasets.
  • Using only the first three octets of source and destination IP addresses maintains high detection performance, indicating robustness to DHCP-assigned dynamic IP addresses.
  • The DNN trained on CIC IDS 2017 achieved a low false-negative rate of 0.00013 when using only the first three octets, with minimal performance degradation compared to full IP addresses.
  • Autoencoders trained on benign flows alone achieved a very low false-positive rate of 0.00013 (89 false positives) at a reconstruction error threshold of 0.03.
  • Despite low false positives, the autoencoder exhibited a high false-negative rate of 0.7670, indicating that many malicious flows were not detected.
  • The reconstruction error was significantly higher for malicious flows than for benign flows, confirming the autoencoder's ability to distinguish anomalies based on reconstruction error.

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.