DeepHunter: A Graph Neural Network Based Approach for Robust Cyber Threat Hunting

Renzheng Wei, Lijun Cai, Aimin Yu, Dan Meng · DOI

Abstract

Cyber threat hunting is a proactive strategy essential for mitigating Advanced Persistent Threats (APTs) by searching for known attack behaviors within organizational provenance data. However, real-world system logs often suffer from noise, missing events, or intentional attacker mutations, making traditional graph-matching tools brittle. This paper introduces DeepHunter, a Graph Neural Network (GNN) framework designed for robust graph pattern matching. By utilizing specialized attribute and graph embedding networks alongside a Neural Tensor Network (NTN), DeepHunter can accurately identify attack signatures even when data is incomplete. Evaluation across five APT scenarios demonstrates that DeepHunter achieves 100% detection and significantly outperforms state-of-the-art methods in robustness.

Introduction

Modern cybersecurity relies on analyzing provenance graphs—data structures where nodes represent system entities (processes, files) and edges represent actions (read, write). A major challenge in threat hunting is the "Lack of Robustness" in existing tools like Poirot. If a monitoring system misses a single event or an attacker slightly alters their tactics, the resulting provenance graph may not perfectly match the known attack template, causing traditional rule-based systems to fail.

DeepHunter addresses this by treating threat hunting as a learnable graph pattern matching problem. It aims to recognize the underlying essence of an attack rather than requiring a perfect structural match.

Overview of an APT attack scenario involving EternalBlue exploitation, persistence, and cryptocurrency mining.

Methodology

DeepHunter employs a custom GNN architecture consisting of three primary components:

  1. Attribute Embedding Network: This stage converts indicators (IPs, file names) into vectors using a word2vec approach. An attention mechanism is applied to prioritize critical attributes, such as specific malicious process names, over common background noise.
  2. Graph Embedding Networks: The system uses an asymmetric approach to process the clean "query graph" (attack template) and the massive, noisy "provenance graph" (system logs). While the query graph uses a standard GCN, the provenance graph utilizes an Attention Aggregator to filter redundant nodes and a Layer-wise Dense-connected Aggregator to maintain long-range event relationships.
  3. Neural Tensor Network (NTN): Instead of simple similarity metrics, the NTN learns complex, non-linear relationships between the template and the logs, allowing the model to remain effective despite structural inconsistencies.

Robustness and Results

The framework was tested against DARPA Transparent Computing datasets and synthetic scenarios. A key finding was DeepHunter's performance in "disconnected" scenarios, where the provenance system fails to capture the link between two stages of an attack.

Illustration of a disconnected attack path (marked with a red X) during the persistence phase, representing missing provenance data.

In Scenario Q5, which featured a high Graph Edit Distance (GED) due to missing links, DeepHunter maintained a high matching score and successfully identified the threat. In contrast, the state-of-the-art tool Poirot failed because it could not find a continuous path between events. Overall, DeepHunter achieved an AUC of up to 0.951, outperforming other GNN models like MatchGNet and SimGNN while maintaining near-zero false positives.

Conclusion

DeepHunter represents a significant shift from heuristic-based threat hunting to a deep-learning approach that prioritizes robustness. By training on augmented data with intentionally dropped edges, the model learns to identify threats even when the "kill chain" is partially obscured. Future work will focus on improving the initial provenance graph reduction step to ensure critical nodes are not pruned before reaching the GNN.

Summary updated

BibTeX
@misc{wei2021deephunter,
  author = {Renzheng Wei and Lijun Cai and Aimin Yu and Dan Meng},
  title = {{DeepHunter: A Graph Neural Network Based Approach for Robust Cyber Threat Hunting}},
  year = {2021},
  eprint = {2104.09806},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.09806},
}
Figure