TL;DR
RAPID is a novel deep learning framework designed to detect and investigate Advanced Persistent Threats (APTs) by combining context-aware anomaly detection with automated provenance tracing. By utilizing iteratively updated object embeddings and self-supervised learning, it achieves near-perfect detection accuracy while significantly reducing the "alert fatigue" caused by false positives in evolving system environments.
What Problem Does This Paper Address?
Advanced Persistent Threats (APTs) are the "ninjas" of cyberattacks—highly sophisticated, targeted, and capable of staying hidden within a network for months. To catch them, researchers often use provenance graphs, which map the relationships and information flows between system entities like processes, files, and network sockets.
However, existing provenance-based tools face three major hurdles:
- Alert Fatigue: They often trigger too many false positives because they struggle to distinguish between a malicious attack and normal, albeit rare, system changes.
- Lack of Interpretability: An alert might tell an analyst that "something is wrong," but it rarely provides a coherent story of how the attack started and where it went.
- Evaluation Flaws: Many current models suffer from "data leakage," where they are inadvertently trained on future data, leading to unrealistic performance results that don't hold up in the real world.
Methods
RAPID (Robust APT Detection and Investigation) tackles these issues through a two-phase workflow: Detection and Tracing.
Phase 1: Context-Aware Detection
Instead of looking at events in isolation, RAPID uses Object Embeddings. It treats system logs like a language, where processes are "sentences" and the files or ports they interact with are "words." Using a Continuous Bag-of-Words (CBOW) model, it learns dense vector representations (embeddings) that capture the behavioral context of every entity.
These embeddings are fed into a Bi-LSTM (Bidirectional Long Short-Term Memory) neural network. This model is trained via self-supervision to predict "masked" events in a sequence. If the actual system behavior deviates significantly from the model's prediction, RAPID flags it as an anomaly. Crucially, these embeddings are updated iteratively to adapt to new system behaviors without requiring a full model retraining.
Phase 2: Alert Tracing and Narrative Reconstruction
Once an anomaly is detected, RAPID doesn't just throw an alert. It maps the anomaly back to the provenance graph and performs forward and backward tracing. It uses the previously learned embeddings to cluster related entities (using DBSCAN), effectively filtering out background noise and "spurious dependencies." The result is a concise attack graph that shows the full kill chain.
Datasets
The authors evaluated RAPID on three diverse, well-established public datasets to ensure robustness across different operating systems:
- DARPA eng.3 THEIA: 106 million logs from an Ubuntu Linux environment.
- DARPA eng.3 CADETS: 42 million logs from a FreeBSD system.
- Public Arena: 16 million logs from Windows hosts, simulating a cloud workspace.
To avoid the common pitfall of data leakage, the team used a realistic evaluation strategy: training on only the first ~30% of the logs (the attack-free period) and testing on the remaining ~70%, which contained the actual APT scenarios.
Key Insights and Ideas
- Dynamic Adaptation is Essential: Most models fail because system behavior naturally drifts over time. RAPID’s ability to iteratively adjust its embeddings allows it to handle "Out-of-Vocabulary" (OOV) objects—new files or processes that appear long after the initial training phase.
- Embeddings Serve a Dual Purpose: The dense vectors aren't just for the neural network; they are also used for clustering during the tracing phase. This ensures that the final attack narrative is focused only on behaviorally related entities, slashing the size of attack graphs from thousands of edges to just dozens.
- Efficiency via Simplicity: By choosing Bi-LSTMs and CBOW over more computationally heavy architectures like Transformers or complex Graph Neural Networks, RAPID achieves high throughput suitable for real-time enterprise monitoring.
Key Results
RAPID consistently outperformed state-of-the-art methods (like UNICORN, MAGIC, and DeepLog) across multiple metrics:
- Near-Perfect Detection: It achieved 1.00 Recall and 1.00 Precision at the graph (attack) level across all datasets.
- Precision at Scale: At the node (entity) level, RAPID maintained high precision (e.g., 0.74 on CADETS) where competing methods often dropped to near zero due to massive false positives.
- Low False Positive Rate (FPR): It maintained a near-zero FPR, effectively solving the alert fatigue problem.
- High Throughput: RAPID processed 36,000 logs per second, which the authors estimate is enough to monitor over 1,300 hosts simultaneously on a single server.
Limitations and Future Work
While robust, the authors acknowledge a few areas for improvement:
- Periodic Updates: Although the embeddings adapt, the core Bi-LSTM model still requires periodic updates to fully account for long-term concept drift.
- Automated Response: The current framework stops at providing an actionable alert. The next logical step is integrating RAPID into automated threat response pipelines to mitigate attacks the moment they are identified.
- Embedding Complexity: Future work could explore more complex node embeddings to capture even deeper relationships, provided they don't compromise the system's impressive scalability.
Summary updated