Abstract
Modern intrusion detection systems (IDS) struggle with the evolving nature of cyberattacks and the limitations of signature-based detection. This paper presents an end-to-end framework that leverages deep learning to convert variable-length Linux system call logs into fixed-size embeddings. By utilizing Recurrent Neural Network Denoising Auto-Encoders (RNN-DAE) to preserve sequential information and applying unsupervised anomaly detection algorithms, the proposed method achieves high accuracy in identifying novel attacks. Experimental results on the ADFA-LD dataset demonstrate an AUROC of 0.8708 for unsupervised detection and 0.9745 for supervised classification.
Introduction
Traditional IDS primarily rely on pattern matching, where security experts define "signatures" for known threats. While effective for established attacks, this approach fails against "zero-day" exploits and minor variations of known techniques. Machine learning (ML) offers a promising alternative by learning to distinguish normal behavior from anomalies. However, applying ML to system logs presents challenges: logs vary in length, labeled attack data is scarce, and simple frequency-based features lose critical contextual information regarding the order of system calls.
Proposed Methodology
The authors propose a multi-phase pipeline designed to handle the complexities of system call traces while maintaining the integrity of sequential data.
Phase 1: Sequential Log Embedding
To transform variable-length logs into a format suitable for ML models, the framework employs embedding techniques. While standard methods like Doc2Vec treat logs as documents, they often overlook the temporal dependencies between system calls. The authors introduce RNN-based Auto-Encoders (RNN-AE) and Denoising Auto-Encoders (RNN-DAE). The RNN-DAE, in particular, introduces noise during training—such as deleting or swapping tokens—forcing the model to learn a robust "grammar" of system calls rather than simple memorization.
Phase 2: Anomaly Detection and Classification
Once logs are vectorized into fixed-size embeddings ($z$), they are processed by anomaly detection algorithms. The study evaluates three unsupervised approaches:
- Isolation Forest (IF): Efficiently isolates outliers by partitioning data.
- Local Outlier Factor (LOF): Detects anomalies based on local density deviations.
- One-Class SVM (1-SVM): Defines a boundary for normal data points.
Experimental Evaluation
The framework was tested using the ADFA Linux Dataset (ADFA-LD), which contains modern Linux system call traces including Web Shells and Meterpreter exploits. This dataset provides a more realistic benchmark than older datasets like KDD 99.
Key Findings
- Importance of Sequence: RNN-based embeddings significantly outperformed Doc2Vec, confirming that the order of system calls is a vital feature for security analysis.
- Robustness of RNN-DAE: The denoising process proved superior, as it enabled the model to better generalize the underlying patterns of legitimate system activity.
- Data Distribution: The authors identified a significant distribution mismatch between the default training and validation sets of ADFA-LD. Correcting this through shuffling and re-sampling was crucial for achieving reliable performance metrics.
Results
The combination of RNN-DAE and Isolation Forest emerged as the most effective unsupervised configuration, achieving an AUROC of 0.8708. In scenarios where labeled data is available, a supervised Random Forest classifier utilizing the same embeddings reached an AUROC of 0.9745. These results indicate that the system can effectively prioritize high-risk activities, significantly reducing the manual workload for security analysts.
Conclusion
This research demonstrates that preserving sequential information through deep learning embeddings is critical for effective intrusion detection. The proposed RNN-DAE framework provides a robust foundation for identifying anomalies in system logs without relying on rigid attack signatures. Future work will explore multi-modal detection by integrating network traffic and API logs, as well as transitioning toward real-time streaming architectures.
Summary updated