Skip to main content
QUICK REVIEW

[Paper Review] Language Models for Novelty Detection in System Call Traces

Quentin Fournier, Daniel Aloise|arXiv (Cornell University)|Sep 5, 2023
Software System Performance and ReliabilityComputer Science3 citations
TL;DR

This paper proposes a novel, data- and task-agnostic novelty detection method for system call traces using neural language models (LSTM, Transformer, Longformer), which detect deviations by measuring sequence likelihood. It achieves F-scores and AuROC >95% on most novelties and introduces a new open-source dataset of 2M+ web requests with seven behaviors.

ABSTRACT

Due to the complexity of modern computer systems, novel and unexpected behaviors frequently occur. Such deviations are either normal occurrences, such as software updates and new user activities, or abnormalities, such as misconfigurations, latency issues, intrusions, and software bugs. Regardless, novel behaviors are of great interest to developers, and there is a genuine need for efficient and effective methods to detect them. Nowadays, researchers consider system calls to be the most fine-grained and accurate source of information to investigate the behavior of computer systems. Accordingly, this paper introduces a novelty detection methodology that relies on a probability distribution over sequences of system calls, which can be seen as a language model. Language models estimate the likelihood of sequences, and since novelties deviate from previously observed behaviors by definition, they would be unlikely under the model. Following the success of neural networks for language models, three architectures are evaluated in this work: the widespread LSTM, the state-of-the-art Transformer, and the lower-complexity Longformer. However, large neural networks typically require an enormous amount of data to be trained effectively, and to the best of our knowledge, no massive modern datasets of kernel traces are publicly available. This paper addresses this limitation by introducing a new open-source dataset of kernel traces comprising over 2 million web requests with seven distinct behaviors. The proposed methodology requires minimal expert hand-crafting and achieves an F-score and AuROC greater than 95% on most novelties while being data- and task-agnostic. The source code and trained models are publicly available on GitHub while the datasets are available on Zenodo.

Motivation & Objective

  • Address the challenge of detecting novel, unexpected behaviors in complex computer systems, including both normal updates and malicious anomalies.
  • Overcome the lack of large, publicly available kernel trace datasets for training and evaluating novelty detection models.
  • Develop a machine learning approach that requires minimal expert intervention and is agnostic to data type and novelty type.
  • Evaluate state-of-the-art neural language models (LSTM, Transformer, Longformer) for their effectiveness in detecting novel system call sequences.
  • Provide a scalable, real-time capable methodology for detecting deviations from known system behavior using sequence likelihood estimation.

Proposed method

  • Train neural language models (LSTM, Transformer, Longformer) on sequences of system calls to learn a probability distribution over valid sequences.
  • Use the conditional probability of each system call given its predecessors to compute the joint likelihood of a sequence via the chain rule: $ P(w_1,\dots,w_N) = \prod_{i=1}^N P(w_i|w_{i-1},\dots,w_1) $.
  • Detect novelties by identifying sequences with low likelihood (high perplexity) under the trained model, as novelties deviate from known behaviors.
  • Leverage cross-entropy loss during training to maximize the likelihood of observed sequences, implicitly learning normal system behavior.
  • Apply the model to new sequences in real time, with inference times under 100ms per batch of 16 sequences on a single V100 GPU.
  • Use random search for hyperparameter tuning to reduce reliance on expert knowledge, enhancing automation and reproducibility.

Experimental results

Research questions

  • RQ1Can neural language models effectively detect novel system call sequences without requiring hand-crafted features or domain-specific labeling?
  • RQ2How do different architectures (LSTM, Transformer, Longformer) compare in detecting diverse types of novelties in system call traces?
  • RQ3To what extent does the proposed method generalize across different behaviors and system states, including normal updates and anomalous events?
  • RQ4Can a newly introduced open-source dataset of 2M+ system call traces support high-performance novelty detection with minimal data bias?
  • RQ5How does the model's performance hold under real-time inference constraints, and what are the computational trade-offs of each architecture?

Key findings

  • The proposed language model-based approach achieves F-scores and AuROC greater than 95% on most novelty types, demonstrating high detection performance.
  • Surprisingly, the LSTM architecture outperformed both the Transformer and Longformer on three out of six behavior types, despite its inductive bias toward local dependencies.
  • The method is data- and task-agnostic: it detects any deviation from known behavior, including software updates, new users, intrusions, and hardware issues.
  • The approach enables real-time inference, processing a batch of 16 sequences in under 100ms on a single V100 GPU, making it suitable for production monitoring.
  • The open-source dataset of over 2 million web requests with seven distinct behaviors provides a realistic, large-scale benchmark for future research.
  • Trained models and source code are publicly available on GitHub and Zenodo, enabling reproducibility and evaluation on private datasets.

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.