# Network Traffic Anomaly Detection Using Recurrent Neural Networks

arXiv: https://arxiv.org/abs/1803.10769 · HTML: https://mlsanity.com/paper/1803.10769/

## Key facts

- Cited by 11 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 28 Mar 2018.

## Built on by (most cited first, 11 of 11)

- [Realtime Robust Malicious Traffic Detection via Frequency Domain Analysis](https://mlsanity.com/paper/2106.14707/) (2021)
- [Applications of Recurrent Neural Network for Biometric Authentication & Anomaly Detection](https://mlsanity.com/paper/2109.05701/) (2021)
- [Mamba Adaptive Anomaly Transformer with association discrepancy for time series](https://mlsanity.com/paper/2502.07858/) (2025)
- [On the Evaluation of Sequential Machine Learning for Network Intrusion Detection](https://mlsanity.com/paper/2106.07961/) (2021)
- [Network Anomaly Traffic Detection via Multi-view Feature Fusion](https://mlsanity.com/paper/2409.08020/) (2024)
- [DoS and DDoS Mitigation Using Variational Autoencoders](https://mlsanity.com/paper/2105.06899/) (2021)
- [PACC: Protocol-Aware Cross-Layer Compression for Compact Network Traffic Representation](https://mlsanity.com/paper/2602.08331/) (2026)
- [Detecting Anomalous Network Communication Patterns Using Graph Convolutional Networks](https://mlsanity.com/paper/2311.18525/) (2023)
- [Attack and Defense of Deep Learning Models in the Field of Web Attack Detection](https://mlsanity.com/paper/2406.12605/) (2024)
- [SwiftQueue: Optimizing Low-Latency Applications with Swift Packet Queuing](https://mlsanity.com/paper/2410.06112/) (2024)
- [StructuralDecompose: A Modular Framework for Robust Time Series Decomposition in R](https://mlsanity.com/paper/2510.04974/) (2025)

## Abstract (arXiv)

We show that a recurrent neural network is able to learn a model to represent sequences of communications between computers on a network and can be used to identify outlier network traffic. Defending computer networks is a challenging problem and is typically addressed by manually identifying known malicious actor behavior and then specifying rules to recognize such behavior in network communications. However, these rule-based approaches often generalize poorly and identify only those patterns that are already known to researchers. An alternative approach that does not rely on known malicious behavior patterns can potentially also detect previously unseen patterns. We tokenize and compress netflow into sequences of "words" that form "sentences" representative of a conversation between computers. These sentences are then used to generate a model that learns the semantic and syntactic grammar of the newly generated language. We use Long-Short-Term Memory (LSTM) cell Recurrent Neural Networks (RNN) to capture the complex relationships and nuances of this language. The language model is then used predict the communications between two IPs and the prediction error is used as a measurement of how typical or atyptical the observed communication are. By learning a model that is specific to each network, yet generalized to typical computer-to-computer traffic within and outside the network, a language model is able to identify sequences of network activity that are outliers with respect to the model. We demonstrate positive unsupervised attack identification performance (AUC 0.84) on the ISCX IDS dataset which contains seven days of network activity with normal traffic and four distinct attack patterns.
