Abstract
System provenance graphs are critical for detecting Advanced Persistent Threats (APTs), but their massive scale poses significant storage and query challenges. This paper introduces LESS (Log Efficient Storage System), which decouples graph structure from node/edge attributes. By employing an XGBoost-based learned model for structure compression and a Minimum Spanning Tree (MST) for attribute deduplication, LESS achieves a 5.24× reduction in disk usage and an 18.3× improvement in query speed compared to state-of-the-art methods, all while maintaining losslessness.
The Challenge of Provenance Data
In cybersecurity, defenders rely on provenance graphs—detailed maps of system activities such as processes writing to files or communicating via network sockets. These graphs are essential for reconstructing the "long game" played by Advanced Persistent Threats (APTs). However, large organizations generate petabytes of logs annually, creating a storage bottleneck. Existing solutions often force a compromise between lossless compression (high disk usage), lossy reduction (risk of missing evidence), and query performance (slow decompression).
The LESS Architecture
The core innovation of LESS is the decoupling of the provenance graph into two distinct components: the graph structure (the "skeleton") and the attributes (the "meat").
1. Graph Structure Storage
LESS treats graph structure as a machine-learning problem. Adjacency lists are converted into vectors using Delta coding and 2-tuple lists. A lightweight XGBoost model is then trained to predict the graph structure. To ensure the system remains 100% lossless, LESS stores a small "calibration table" that records only the errors the model made during prediction. Reconstructing the graph involves running the model and applying these recorded patches.
2. Attribute Storage
Attributes like file paths or command lines are often highly repetitive. LESS uses a "Bag-of-words" approach and Manhattan distance to identify similar strings, then constructs a Minimum Spanning Tree (MST). In this tree, edges represent the edit operations (insert, delete, substitute) required to transform one string into another. By storing only the root and the specific "diffs" for the branches, LESS eliminates massive amounts of redundant text.
Key Insights: The Role of Locality
A primary observation driving LESS is that system logs exhibit high "locality." Events occurring close in time or on the same host tend to share nearly identical attributes. The researchers validated this across multiple benchmarks, including DARPA TC, DARPA OpTC, and Linux Audit logs. Exploiting this locality via the MST approach proved far more efficient than general-purpose compression algorithms.
Furthermore, the authors found that XGBoost outperformed LSTMs for storage tasks. XGBoost is faster to train and requires significantly less memory—only 11.5% of the footprint of previous state-of-the-art models like LEONARD—while providing superior compression for vectorized graph data.
Performance Evaluation
LESS was evaluated against the DARPA TC datasets and real-world Linux Audit logs. Compared to the previous state-of-the-art (LEONARD), LESS demonstrated:
- Storage Speed: 6.29× faster data ingestion.
- Compression: 5.24× reduction in disk usage, reaching a compression rate of approximately 2.5% of the original size.
- Query Speed: 18.3× faster performance for forward-tracking queries due to a one-time "warm-up" reconstruction of the graph in memory.
- Resource Efficiency: Feasible deployment on standard servers without specialized GPUs.
Conclusion and Future Work
LESS provides a high-performance, lossless storage solution for the massive provenance graphs required for modern threat hunting. While the current implementation requires retraining for new log blocks, the speed of the XGBoost model makes this manageable. Future work may explore truly online, non-retraining approaches and extending the "Learn + Calibrate" methodology to other types of structured big data.
Summary updated