The Case for Learned Provenance-based System Behavior Baseline

Yao Zhu, Zhenyuan Li, Yangyang Wei, Shouling JiICML 2025

TL;DR

This paper proposes replacing massive, memory-hungry frequency databases used in intrusion detection with lightweight "learned baselines." By training neural networks to predict the normality of system events, the authors achieve state-of-the-art detection accuracy (F1 > 0.99) while reducing storage requirements by a factor of 28 compared to traditional methods.

What Problem Does This Paper Address?

In cybersecurity, provenance graphs are a powerful tool. They represent system activity as a directed graph where nodes are entities (like processes, files, or sockets) and edges are actions (like READ, WRITE, or CONNECT). By tracing these paths, defenders can spot complex attacks that individual log entries might miss.

An example of a provenance graph showing both benign and malicious activities.

However, these graphs face three major hurdles:

  1. Scale: Modern systems generate millions of events, leading to massive graphs that are computationally expensive to store and query.
  2. Normality Shifts: What is "normal" behavior changes over time.
  3. Out-of-Vocabulary (OOV) Elements: New IP addresses, temporary files, and unique process names appear constantly. Traditional "frequency databases"—which simply count how often an event has occurred before—struggle to categorize these new, unseen elements, often leading to a flood of false positives.

Methods

The authors introduce a framework that moves away from "exact match" databases toward a Learned Provenance-based System Behavior Baseline.

The proposed framework consisting of Offline Baseline Learning and Online Streaming Detection.

1. Adaptive Event Embedding

To handle the OOV problem, the system converts events into fixed-dimensional vectors. They use FastText (a subword-level embedding model) which can "guess" the meaning of a new word based on its components. They also implement Weight Embedding for file paths, giving more mathematical weight to the filename than the deep directory structure (e.g., /home/user/tmp/malicious.exe focuses on the executable name rather than the common /home/user prefix).

2. Offline Baseline Learning

Instead of a lookup table, they train a lightweight regression model (MLP, LSTM, or CNN) to predict an event's regularity score. The model learns the distribution of benign behavior. If the model sees a new but "benign-looking" event, it can generalize and assign it a high regularity score, whereas a traditional database would mark it as a suspicious "zero."

3. Online Tag-Propagation

During real-time monitoring, if an event receives a low regularity score from the neural network, a "suspicion tag" is initialized. This tag propagates through the provenance graph. As more suspicious events occur in a causal chain, the path's overall score drops. Once it hits a threshold, an alert is triggered.

Datasets

The researchers evaluated their approach using the DARPA Transparent Computing (TC) dataset, specifically the E3-CADETS, E3-THEIA, and E3-TRACE subsets. These datasets are industry standards containing millions of benign system events alongside realistically simulated Advanced Persistent Threats (APTs) like data exfiltration and privilege escalation.

Key Insights and Ideas

  • Generalization over Memorization: The core "aha" moment is that a neural network's ability to generalize is a feature, not a bug, for intrusion detection. By learning the patterns of normality, the system avoids the "brittleness" of frequency databases that fail the moment a single character in a file path changes.
  • Handling the "Unknown Unknowns": By mapping OOV elements to zero vectors (FastText*) and training on artificially constructed negative samples, the model becomes much better at distinguishing between "new but benign" and "new and malicious."
  • Structural Efficiency: Traditional databases grow linearly with the number of unique events. A neural network's size remains constant regardless of how many logs it processes, making it far more scalable for long-term deployment.

Key Results

  • Detection Performance: The combination of FastText and a simple MLP (Multi-Layer Perceptron) achieved an F1 score of 0.9963 on the CADETS dataset, significantly outperforming state-of-the-art (SOTA) systems like Nodoze and ProvDetector*.
  • Storage Savings: The learned model is approximately 28 times smaller than a traditional frequency database. For a 500-dimensional vector space, the database required ~45MB, while the neural model required only ~1.6MB.
  • Speed: While complex models like TinyBERT were too slow for real-time use, the lightweight MLP and CNN models processed events in the microsecond range, meeting the requirements for live stream processing.

Limitations and Future Work

  • Model Drift: While the system adapts to OOV elements, the paper doesn't deeply explore how often the baseline model needs "retraining" as a system's core purpose evolves over months or years.
  • Adversarial Attacks: The authors note that malicious actors might attempt to "blend in" by mimicking benign frequency patterns, a classic challenge in anomaly detection that requires further study.
  • Scope of Context: Currently, the model looks at individual events and causal paths. Future work could integrate broader system-wide context (like CPU/Memory spikes) to further refine the regularity scores.

Summary updated

BibTeX
@inproceedings{zhu2025case,
  author = {Yao Zhu and Zhenyuan LI and Yangyang Wei and Shouling Ji},
  title = {{The Case for Learned Provenance-based System Behavior Baseline}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=SY4owu5BK6},
}
Figure