Introduction
Host-based Intrusion Detection Systems (HIDS) are critical for identifying malicious activities within an operating system. These systems generally fall into two categories: signature-based and anomaly-based. While signature-based systems are effective against known threats, anomaly-based systems are essential for detecting zero-day attacks by flagging deviations from a "normal" baseline. However, anomaly-based systems frequently suffer from high false-alarm rates (FAR), which can lead to "alert fatigue" among security teams.
Traditional methods for modeling normal system behavior often rely on the frequency or short-term patterns of operating system (OS) calls. However, these approaches, such as Markov models, struggle to capture the long-term dependencies and complex semantic interactions inherent in system call sequences. This paper addresses these challenges by treating system calls as a natural language and employing Long Short-Term Memory (LSTM) networks to model their sequences.
Methodology
The proposed HIDS architecture consists of an end-to-end pipeline with two primary components: a front-end language model and a back-end ensemble classifier.
System-Call Language Model
Borrowing from Natural Language Processing (NLP), individual system calls are treated as "words" and sequences of calls as "sentences." An LSTM network is trained to predict the next system call in a sequence based on the preceding context. The model learns the underlying "syntax" and "semantics" of the OS call language. The anomaly score for a given sequence is calculated as its average negative log-likelihood.
Leaky ReLU Ensemble
To mitigate the high false-alarm rates typical of anomaly detection, the authors introduce a unique ensemble method. Multiple LSTM models ($LM_1, LM_2, ..., LM_m$) are trained with varying hyperparameters. Their outputs are processed through thresholding classifiers ($C_{f_1}, ..., C_{f_m}$) and then aggregated using a leaky ReLU activation function shifted by a bias term (the median of the normal training data). This configuration is designed to reward "highly normal" sequences—those that multiple sub-models consistently identify as benign—thereby pushing them further from the anomaly threshold.
Experimental Evaluation
The system was evaluated using three primary datasets:
- ADFA-LD: A modern dataset captured on Ubuntu 11.04, representing contemporary attack vectors.
- KDD98: A legacy dataset from a Solaris 2.5.1 server.
- UNM-lpr: A legacy dataset collected from SunOS 4.1.4 machines.
The legacy datasets were primarily used to benchmark against historical literature and to evaluate the model's portability across different operating systems.
Results and Insights
The experimental results demonstrate the effectiveness of the LSTM-based approach and the leaky ReLU ensemble:
- Performance Metrics: On the ADFA-LD dataset, the proposed ensemble achieved an Area Under the Curve (AUC) of 0.928, significantly outperforming standard averaging (0.890) and voting (0.859) methods. The system achieved a 16% FAR at a 90% Detection Rate (DR), proving competitive with state-of-the-art feature-engineered models.
- Semantic Understanding: Visualization of the LSTM's learned embeddings via t-SNE revealed that system calls with similar functionalities cluster together. For instance,
read/writeandopen/closepairs were positioned closely, while waiting calls likeselectandppollformed distinct neighborhoods. - Zero-Shot Portability: A remarkable finding was the universality of system call "languages" across similar OS families. A model trained exclusively on the KDD98 (Solaris) dataset achieved an AUC of 0.969 when tested on the UNM (SunOS) dataset without any retraining.
Conclusion
This research demonstrates that treating system calls as a language and applying deep learning techniques can yield highly accurate and portable HIDS. While the system shows promise, challenges remain, such as the potential for "mimicry attacks" where malware disguises its call traces. Future work will focus on enhancing robustness against such attacks and adapting the framework for online, distributed learning environments to scale across enterprise networks.
Summary updated