[Paper Review] MAGIC: Detecting Advanced Persistent Threats via Masked Graph Representation Learning
MAGIC proposes a self-supervised, masked-graph representation learning approach to detect APTs from provenance graphs, enabling multi-granularity detection with low overhead and robustness to concept drift.
Advance Persistent Threats (APTs), adopted by most delicate attackers, are becoming increasing common and pose great threat to various enterprises and institutions. Data provenance analysis on provenance graphs has emerged as a common approach in APT detection. However, previous works have exhibited several shortcomings: (1) requiring attack-containing data and a priori knowledge of APTs, (2) failing in extracting the rich contextual information buried within provenance graphs and (3) becoming impracticable due to their prohibitive computation overhead and memory consumption. In this paper, we introduce MAGIC, a novel and flexible self-supervised APT detection approach capable of performing multi-granularity detection under different level of supervision. MAGIC leverages masked graph representation learning to model benign system entities and behaviors, performing efficient deep feature extraction and structure abstraction on provenance graphs. By ferreting out anomalous system behaviors via outlier detection methods, MAGIC is able to perform both system entity level and batched log level APT detection. MAGIC is specially designed to handle concept drift with a model adaption mechanism and successfully applies to universal conditions and detection scenarios. We evaluate MAGIC on three widely-used datasets, including both real-world and simulated attacks. Evaluation results indicate that MAGIC achieves promising detection results in all scenarios and shows enormous advantage over state-of-the-art APT detection approaches in performance overhead.
Motivation & Objective
- Address the lack of attack-containing data and a priori APT knowledge by proposing a self-supervised detection method.
- Model rich contextual information in provenance graphs to improve detection accuracy while reducing false positives.
- Enable multi-granularity APT detection (batched log level and system entity level) with scalable computation.
- Provide an optional model adaption mechanism to handle concept drift and incorporate analyst feedback.
- Demonstrate practicality and effectiveness across real-world and simulated datasets with low overhead.
Proposed method
- Construct provenance graphs from audit logs with noise reduction and label-based initial embeddings.
- Use a graph masked auto-encoder (encoder-decoder) to learn benign behavior embeddings via masked feature reconstruction and sample-based structure reconstruction.
- Apply a two-stage training objective L = L_fr + L_sr to train the graph representation module in a self-supervised manner.
- Represent nodes (system entities) and aggregate to obtain node embeddings and a system-state embedding for batched-log level detection.
- Perform outlier detection on embeddings using a k-d tree to identify benign vs. anomalous patterns in batched or entity-level tasks.
- Optionally incorporate a model adaption mechanism to handle concept drift by incorporating analyst feedback and memory discounting.
Experimental results
Research questions
- RQ1Can self-supervised masked graph representation learning effectively model benign provenance graphs for APT detection without attack-containing data?
- RQ2What level of granularity (batched log level vs. system entity level) provides the best trade-off between detection accuracy and computational efficiency?
- RQ3How does MAGIC perform in terms of detection precision/recall and overhead compared with state-of-the-art approaches on real and simulated APT datasets?
- RQ4Does the model adaption mechanism improve robustness to concept drift and reduce false positives over time?
Key findings
- MAGIC achieves 97.26% precision and 99.91% recall for entity-level APT detection on evaluated datasets.
- MAGIC achieves minimal overhead, being significantly faster than state-of-the-art approaches (e.g., 51 times faster than ShadeWatcher).
- MAGIC maintains performance across real-world (DARPA E3) and simulated (StreamSpot, Unicorn Wget) datasets.
- The approach supports multi-granularity detection (batched logs and entity-level) with flexible supervision levels.
- An optional model adaptation mechanism helps mitigate concept drift and incorporate analyst feedback to improve robustness.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.