Continuous-Time Temporal Graph Learning on Provenance Graphs

Jakub Reha, Giulio Lovisotto, Michele Russo, Alessio Gravina, Claas Grohnfeldt

TL;DR

This paper introduces a novel approach for detecting anomalies in continuous-time, heterogeneous dynamic graphs, specifically focusing on cybersecurity provenance graphs. They adapt the Temporal Graph Network (TGN) framework to handle complex graph structures and release two new benchmark datasets with expert-labeled anomalies to advance research in this critical area.

What Problem Does This Paper Address?

Real-world systems are dynamic, with data evolving over time. Traditional graph analysis methods often struggle with this dynamism, especially when dealing with complex, interconnected data like system logs. Specifically, detecting malicious activities (anomalies) in cybersecurity provenance graphs – which represent the history of system execution with various entities and interactions – is challenging. Existing methods often simplify these graphs (e.g., by ignoring temporal information or heterogeneity) or require extensive labeled data. This paper aims to bridge this gap by developing an inductive, self-supervised learning method for continuous-time, heterogeneous dynamic graphs that can identify anomalies at a fine-grained, event level, without needing pre-defined graph structures or extensive labels.

Methods

The core of the paper's contribution lies in adapting and extending the Temporal Graph Network (TGN) framework. TGN is a powerful model for learning on dynamic graphs, but it was originally designed for simpler, homogeneous graphs. The authors introduce several key modifications:

  • Heterogeneous Graph Encoding: They extend TGN to handle graphs with different types of nodes (e.g., processes, files, sockets) and edges (e.g., system calls). This is achieved through approaches like "Hetero-TGN" and "HGT-TGN," which learn type-specific embeddings and adapt graph convolution mechanisms.
  • Edge Directionality Encoding: Recognizing the importance of interaction direction, they incorporate methods like "OHD-TGN" and "DIR-TGN" to explicitly model directed edges, improving the model's ability to understand information flow.
  • Self-Supervised Learning for Anomaly Detection: The model is trained using a link prediction task. By learning to predict future connections, the model implicitly learns what constitutes "normal" behavior. Anomalies are then identified as edges that the model assigns a low probability of occurrence to. This approach avoids the need for explicit anomaly labels during training.

Datasets

The paper introduces two novel, large-scale benchmark datasets derived from DARPA's Engagement 3 (E3) program:

  • THEIA and TRACE: These datasets are continuous-time, temporal, heterogeneous, and attributed provenance graphs. They capture system call interactions from two Linux hosts over several weeks.
  • Expert-Labeled Anomalies: Crucially, these datasets include expert-labeled malicious edges, allowing for direct evaluation of anomaly detection performance. This is a significant contribution, as publicly available datasets with such fine-grained anomaly labels for provenance graphs are scarce.

Key Insights and Ideas

  • Temporal and Heterogeneous Information is Crucial: The results strongly suggest that temporal dynamics and graph heterogeneity are vital for effective anomaly detection in provenance graphs. Temporal models consistently outperform static baselines.
  • TGN is a Strong Foundation: The TGN framework, even with basic adaptations for heterogeneity, provides a robust foundation for this task, demonstrating significant improvements over static methods.
  • Memory vs. Features Trade-off: While TGN's memory component shows benefits in feature-less models, its impact diminishes when informative node and edge features are available. This suggests that rich features can compensate for the lack of explicit historical memory in certain scenarios.
  • Link Prediction as a Proxy for Anomaly Detection: The strong correlation observed between link prediction performance (AuCLP) and anomaly detection performance (AuCAD) validates the self-supervised approach. It confirms that learning normal link formation is an effective strategy for identifying anomalous events.
  • Edge Directionality's Limited Impact (in this context): Surprisingly, explicitly encoding edge directionality through additional TGN extensions did not consistently improve performance. This might indicate that the standard TGN's message passing already implicitly captures sufficient directional information, or that the heterogeneity encoding is more dominant.

Key Results

  • Superior Performance: Temporal models, particularly TGN and its variants, significantly outperform static baselines (MLP, GAT, RGCN) on both link prediction (AuCLP) and anomaly detection (AuCAD) tasks across both THEIA and TRACE datasets.
  • High Anomaly Detection Scores: The best-performing TGN models achieved AuCAD scores in the high 80s and low 90s on both datasets, indicating strong anomaly detection capabilities.
  • Effective Anomaly Scoring: The anomaly scores generated by the TGN model show a clear separation between malicious and benign edges, with a high proportion of malicious edges receiving high anomaly scores.
  • False Positive Analysis: A case study on false positives revealed that "firefox" process-related edges were disproportionately flagged. This suggests that complex interactions involving common processes, especially around system events like reboots, can be challenging to distinguish from malicious activity without more sophisticated negative sampling or context.

Limitations and Future Work

  • Edge Directionality Extensions: The paper notes that their explicit extensions for edge directionality did not yield significant improvements, suggesting that further research might be needed to better leverage this information.
  • Negative Sampling Strategies: The false positive analysis points to potential improvements in negative sampling strategies to better distinguish benign anomalies from malicious ones, especially in complex scenarios involving common processes and system events.
  • Computational Cost: While TGN-based models show superior performance, the paper acknowledges the computational cost of heterogeneous graph transformers (HGT-TGN), suggesting that the added complexity might not always be justified by performance gains.
  • Future Work: The authors suggest exploring more advanced negative sampling techniques and further investigating how to better model heterogeneity and directionality in temporal graphs for anomaly detection. They also highlight the need for more robust evaluation methodologies for temporal graph learning.

Summary updated

BibTeX
@inproceedings{reha2023continuous,
  author = {Jakub Reha and Giulio Lovisotto and Michele Russo and Alessio Gravina and Claas Grohnfeldt},
  title = {{Continuous-Time Temporal Graph Learning on Provenance Graphs}},
  booktitle = {Workshops @ ICDM},
  year = {2023},
  doi = {10.1109/icdmw60847.2023.00148},
}

Loading related content...

Figure