TAGS: Real-time Intrusion Detection with Tag-Propagation-based Provenance Graph Alignment on Streaming Events

Zhenyuan Li, Yangyang Wei, Xiangmin Shen, Lingzhi Wang, Yan Chen, Haitao Xu, Shouling Ji, Fan Zhang · DOI

Introduction

Modern Advanced Persistent Threats (APTs) are characterized by their stealth and longevity, often remaining undetected for weeks or months. Security analysts increasingly rely on provenance graphs—which map causal relationships between system entities like processes, files, and network sockets—to track these complex attack chains. However, two primary challenges hinder effective real-time detection: the "data deluge" from high-fidelity monitoring and the rise of sophisticated evasion tactics, such as "mimicry" attacks that insert benign noise into malicious activity.

To address these issues, this research introduces TAGS (also referred to as Marlin), a high-performance system that redefines intrusion detection as a streaming graph alignment problem. Instead of searching a massive historical graph, TAGS aligns incoming system events in real-time against "query graphs" representing known attack behaviors.

System Architecture

TAGS is built on top of the Flink Stream Computing Engine to handle massive data streams. The architecture integrates Cyber Threat Intelligence (CTI) to generate query graphs, which are then used to monitor streaming logs collected and unified from enterprise endpoints.

The TAGS system architecture showing the flow from data collection to tag-based graph alignment within the Flink engine.

As shown in the architecture, the core engine performs four primary operations: Tag Initialization, Tag Propagation, Tag Removal, and Alert Triggering. This design allows the system to maintain state across streaming events without the prohibitive memory cost of storing the entire system provenance graph.

Methodology: Tag-Propagation and Fuzzy Alignment

The technical heart of TAGS is its Tag-Propagation Framework. Rather than performing expensive subgraph isomorphism checks, the system attaches metadata "tags" to system entities. These tags flow through the system as events occur, carrying the state of potential matches.

The four-step tag-propagation process: initialization, propagation, removal, and alert triggering based on alignment scores.

Key features of this methodology include:

  • Two-Tier Caching: A Tag Cache tracks individual entities, while an Alignment Status Cache allows different branches of a complex attack to share progress, ensuring a holistic view of the threat.
  • Fuzzy Matching: To counter evasion, TAGS uses regular expressions for node attributes and supports "multi-hop" paths. This allows the system to see through "junk" steps inserted by attackers to break traditional detectors.
  • Tag Lifecycle Management: To prevent "dependency explosion," the system implements time-based and round-based decay to prune irrelevant tags, keeping memory usage low.

Evaluation and Results

The researchers evaluated TAGS using major public benchmarks, including the DARPA Transparent Computing (TC) Engagement 3 and the PKU ASAL datasets. These datasets include hundreds of gigabytes of logs across Linux, BSD, and Windows, featuring sophisticated APT scenarios like APT29.

Key Performance Metrics

  • Throughput: TAGS processed 137,000 events per second on a standard 6-core CPU, sufficient to monitor approximately 6,000 enterprise endpoints simultaneously.
  • Accuracy: The system achieved a 1.0 recall and 0.96 precision, identifying all confirmed attacks with only one false positive across 257GB of data.
  • Evasion Resistance: TAGS successfully detected all tested "mimicry" attacks designed to hide within benign activity—attacks that caused other state-of-the-art systems like ProvDetector and NodLink to fail.
  • Efficiency: Peak memory usage remained under 400MB, demonstrating its practicality for real-world deployment.

Conclusion and Future Work

TAGS demonstrates that a knowledge-driven, streaming alignment approach can overcome the computational hurdles of provenance-based detection. By focusing on known attack patterns and employing fuzzy matching, it provides a robust defense against stealthy APTs. Future work aims to automate the extraction of query graphs directly from unstructured CTI reports and expand observability to include application-layer logs, further closing the gap for attackers to hide.

Summary updated

BibTeX
@misc{li2024tags,
  author = {Zhenyuan Li and Yangyang Wei and Xiangmin Shen and Lingzhi Wang and Yan Chen and Haitao Xu and Shouling Ji and Fan Zhang},
  title = {{TAGS: Real-time Intrusion Detection with Tag-Propagation-based Provenance Graph Alignment on Streaming Events}},
  year = {2024},
  eprint = {2403.12541},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.12541},
}
Figure