TL;DR
Sentient is a novel APT detection system that tackles the challenges of stealthy and complex cyberattacks by analyzing behavioral intent within provenance graphs. It achieves superior detection rates and significantly reduces false positives by effectively capturing indirect dependencies and learning normal behavior patterns from benign data.
What Problem Does This Paper Address?
Advanced Persistent Threats (APTs) are a major cybersecurity concern due to their sophisticated, stealthy, and long-term nature. Detecting these threats is difficult because attackers meticulously plan their actions to blend in with normal network activity. Existing detection methods often struggle with:
- Missing indirect dependencies: They focus too much on direct connections between events in a system, overlooking crucial relationships that span multiple steps.
- Noisy environments: Legitimate user activities can obscure attack behaviors, leading to false alarms or missed threats.
- Lack of behavioral logic: Current methods often fail to understand the contextual relationships and intent behind a sequence of actions, making it hard to distinguish malicious intent from benign operations.
- Reliance on labeled data: Many approaches require extensive, labeled datasets of known attacks, which are hard to obtain and limit their ability to detect novel, unseen threats.
Methods
Sentient proposes a multi-component approach to address these challenges:
- Graph Construction: It first builds provenance graphs from system audit logs. Nodes represent entities (files, processes), and edges represent interactions (read, write, execute). To enrich node representations, it uses Word2Vec for semantic encoding of attributes and Laplacian eigenvectors for positional encoding.
- Pre-training: A graph transformer is employed to learn structural and semantic information from the provenance graphs. This module is designed to capture indirect dependencies by allowing nodes to attend to all other nodes, not just immediate neighbors. A node key information reconstruction task is used to train this module on benign data.
- Intent Analysis Module (IAM): This module is the core innovation. It uses a Bidirectional Mamba2 (Bi-Mamba2) architecture to process sequences of behaviors derived from random walks on the graph. Bi-Mamba2 excels at capturing complex sequential dependencies and logical associations between behaviors, effectively learning "behavioral intent."
- Threat Detection: Sentient learns normal behavioral patterns from benign data. During detection, it reconstructs expected actions and compares them to actual observed actions. A significant deviation (above a predefined threshold) indicates a malicious behavior.
- Attack Investigation: For improved analyst efficiency, Sentient clusters behaviors with similar intents, simplifying complex attack chains into more manageable representations.
Datasets
The paper evaluates Sentient on three widely-used datasets:
- Streamspot: Contains benign scenarios and one malicious scenario with 100 provenance graphs per scenario.
- Unicorn Wget Dataset: Features simulated attacks collected by CamFlow, with 125 benign and 25 malicious batches.
- DARPA-E3 Dataset: Collected from an enterprise network during a defense exercise, involving Advanced Persistent Threat attacks. The ground truth labels used by ThreaTrace and Flash were adopted for evaluation.
Key Insights and Ideas
- Indirect dependencies are critical: The paper highlights that overlooking indirect relationships between system events is a major flaw in existing methods, and Sentient's graph transformer effectively addresses this.
- Behavioral intent is key to detection: By focusing on the logical associations and intent behind sequences of actions (via Bi-Mamba2), Sentient can better distinguish malicious activities from benign ones, even in noisy environments.
- Benign data is sufficient for training: Sentient's ability to learn normal behavior patterns from easily obtainable benign data makes it more adaptable and capable of detecting novel threats without requiring explicit attack labels.
- Clustering simplifies analysis: The attack investigation component, which clusters behaviors by intent, significantly aids security analysts by presenting a more digestible view of complex attack activities.
Key Results
Sentient demonstrated strong performance across the evaluated datasets:
- High Accuracy and Recall: Achieved 96% accuracy and 99% recall on entity-level APT detection.
- Significant FPR Reduction: Outperformed six state-of-the-art methods, achieving an average reduction of 44% in the false positive rate (FPR).
- Robustness: Showed resilience against adversarial mimicry attacks, indicating its ability to generalize beyond simple pattern matching.
- Performance Overhead: The system's preprocessing and detection phases averaged 1.82 and 1.23 seconds, respectively, on the DARPA E3 Cadet dataset, making it practical for real-world deployment.
Limitations and Future Work
- Limitations:
- The paper acknowledges that while Sentient significantly reduces false positives, they are not entirely eliminated, and manual review is still necessary for complete security analysis.
- The performance of the system is dependent on the quality and integrity of the audit logs.
- Future Work:
- The authors suggest that further research could explore more advanced methods for attack investigation and visualization.
- Investigating the application of Sentient to other types of cyber threats beyond APTs could be a promising direction.
Summary updated