[Paper Review] Recurrent Neural Network Language Models for Open Vocabulary Event-Level Cyber Anomaly Detection
This paper proposes an unsupervised, online recurrent neural network (RNN) language model for open-vocabulary, event-level cyber anomaly detection using raw system log lines. By modeling log sequences as natural language and leveraging bidirectional character-based RNNs, the approach achieves state-of-the-art performance—attaining a 0.98 AUC on the LANL cyber security dataset—without domain-specific feature engineering, enabling fine-grained, real-time detection of malicious activity at the log-line level.
Automated analysis methods are crucial aids for monitoring and defending a network to protect the sensitive or confidential data it hosts. This work introduces a flexible, powerful, and unsupervised approach to detecting anomalous behavior in computer and network logs, one that largely eliminates domain-dependent feature engineering employed by existing methods. By treating system logs as threads of interleaved "sentences" (event log lines) to train online unsupervised neural network language models, our approach provides an adaptive model of normal network behavior. We compare the effectiveness of both standard and bidirectional recurrent neural network language models at detecting malicious activity within network log data. Extending these models, we introduce a tiered recurrent architecture, which provides context by modeling sequences of users' actions over time. Compared to Isolation Forest and Principal Components Analysis, two popular anomaly detection algorithms, we observe superior performance on the Los Alamos National Laboratory Cyber Security dataset. For log-line-level red team detection, our best performing character-based model provides test set area under the receiver operator characteristic curve of 0.98, demonstrating the strong fine-grained anomaly detection performance of this approach on open vocabulary logging sources.
Motivation & Objective
- To address the limitations of existing anomaly detection methods that rely heavily on hand-crafted, domain-specific features.
- To enable fine-grained, log-line-level anomaly detection in open-vocabulary network logs without prior assumptions about system configurations.
- To reduce deployment time and increase adaptability across diverse network environments by eliminating feature engineering.
- To improve detection sensitivity and reduce false positives by modeling sequential patterns in raw log tokens directly.
- To evaluate the effectiveness of RNN-based language models, especially character-level and bidirectional variants, in detecting subtle or novel cyber threats.
Proposed method
- Treats system log lines as sequences of tokens (words or characters) and trains online, unsupervised RNN language models on daily log batches.
- Uses bidirectional long short-term memory (Bi-LSTM) networks to capture contextual dependencies in both forward and backward directions.
- Assigns low probability scores to anomalous log lines based on how unlikely they are under the learned model of normal behavior.
- Employs a tiered recurrent architecture to model sequences of user actions over time, enhancing context awareness.
- Processes logs in real time with fixed memory bounds, enabling scalability in high-velocity log streams.
- Evaluates performance using the Los Alamos National Laboratory (LANL) Cyber Security Dataset with ground-truth red team activity.
Experimental results
Research questions
- RQ1Can RNN-based language models effectively detect anomalous behavior in raw system logs without domain-specific feature engineering?
- RQ2How does the granularity of detection (log-line-level vs. day-level) impact the performance of language model-based anomaly detection?
- RQ3Does character-level tokenization outperform word-level tokenization in modeling open-vocabulary network logs for anomaly detection?
- RQ4How do bidirectional RNNs compare to standard RNNs in capturing contextual patterns for cyber anomaly detection?
- RQ5Can tiered recurrent architectures improve detection by modeling user-level action sequences over time?
Key findings
- The best-performing model, a bidirectional character-based RNN language model, achieved an area under the ROC curve (AUC) of 0.98 on the log-line-level detection task.
- The character-based model flagged only 3% of the data to achieve 80% recall, significantly outperforming the isolation forest baseline, which required 55% of the data for the same recall level.
- The bidirectional language model outperformed standard RNNs at day-level detection, demonstrating improved contextual modeling.
- Non-normalized anomaly scores for the character-level model were predominantly above the 95th percentile for red-team events, indicating strong sensitivity to malicious activity.
- The model detected unexpected anomalous events on day 14 not previously annotated, suggesting potential for uncovering previously unknown threats.
- The approach achieved superior performance compared to Isolation Forest and Principal Components Analysis, especially in terms of precision and recall efficiency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.