TL;DR
This paper introduces PROVEXA, a system designed to help security analysts efficiently investigate complex, multi-step cyberattacks by analyzing massive amounts of system provenance data. PROVEXA's core innovation is PROVQL, a domain-specific language that allows analysts to iteratively search for attack patterns and track event dependencies, significantly reducing the "needle in a haystack" problem of sifting through noisy data.
What Problem Does This Paper Address?
Modern cyberattacks, especially Advanced Persistent Threats (APTs), are increasingly sophisticated and unfold over many steps. Investigating these attacks relies heavily on system auditing, which generates vast amounts of provenance data (system call events). Existing methods for analyzing this data, particularly those focused on causal dependency tracking, often suffer from "dependency explosion." This means they produce overwhelmingly large graphs that bury the few critical attack-relevant events among a sea of irrelevant ones, making it incredibly difficult and time-consuming for human analysts to pinpoint the attack sequence and its origins. The paper aims to bridge this gap by enabling more efficient and focused investigation through a human-in-the-loop approach.
Methods
PROVEXA's approach is centered around a new domain-specific language called PROVQL (Provenance Query Language). PROVQL offers two primary query syntaxes:
- Attack Pattern Search: Allows analysts to define complex sequences of events with constraints on entities (like processes or files) and their attributes. This helps in finding specific malicious behaviors.
- Attack Dependency Tracking: Enables analysts to trace causal relationships between events, either backward (to find entry points) or forward (to understand ramifications).
Crucially, PROVQL allows users to iteratively refine investigations by binding intermediate results to variables and reusing them in subsequent queries. This "human-in-the-loop" capability is key to focusing the analysis.
PROVEXA also features a domain-aware query execution engine. Instead of translating entire complex queries into a single, inefficient database query, PROVEXA decomposes PROVQL queries into smaller, manageable steps. A custom scheduler then optimizes the execution order of these steps based on their "pruning power" (how effectively they reduce the search space) and semantic dependencies, leading to more efficient processing.
An in-memory management technique further speeds up iterative investigations by keeping intermediate results readily accessible.
Datasets
The paper does not explicitly mention datasets used for training models. However, for evaluation, they constructed a comprehensive benchmark of 30 attack cases. These cases were drawn from:
- Their own controlled network environment (23 cases).
- Widely used system audit logs datasets (7 cases).
The benchmark includes various attack types:
- Multi-step attacks (8 cases)
- Malicious exploits (10 cases)
- Malware samples (5 cases)
- DARPA TC cases (3 cases)
- ATLASv2 cases (4 cases)
The collected logs for evaluation comprised 1,548,202 system entities and 58,388,158 events across 20 hosts.
Key Insights and Ideas
- Human-in-the-loop is crucial: The paper strongly advocates that human analysts, with their ability to interpret context and make nuanced decisions, are indispensable for effective attack investigation, especially for complex, evolving threats. PROVEXA is designed to augment, not replace, human expertise.
- Iterative refinement is key: Attack investigation is rarely a one-shot process. PROVQL's ability to bind and reuse intermediate results allows analysts to progressively narrow down their focus, mimicking a real-world investigative workflow.
- Domain-specific language matters: PROVQL's expressive power and concise syntax significantly simplify the formulation of complex investigative queries compared to general-purpose languages like SQL or Cypher.
- Decomposition beats monolithic queries: Breaking down complex provenance queries into smaller, domain-aware steps and executing them iteratively is far more efficient than relying on generic database optimizers for monolithic queries.
Key Results
- Effectiveness in uncovering attack sequences: PROVEXA achieved a significantly higher F1-score (0.8766) compared to baselines like BackTracker (0.2526), PrioTracker (0.2526), and DepImpact (0.2604). It also demonstrated a remarkable Graph Reduction Rate (GRR) of 58,990.7×, meaning it drastically reduced the size of the investigated graphs.
- Query Execution Efficiency: PROVEXA's in-memory management provided speedups of up to 68x compared to SQL/Cypher. The domain-aware scheduler consistently improved performance across different database backends (PostgreSQL, Neo4j, DuckDB), showing speedups of up to 900x in PostgreSQL.
- Query Conciseness: PROVQL queries were significantly shorter and more concise than SQL, Cypher, and Splunk SPL, averaging 15 words for search queries and 19 for tracking queries, compared to hundreds for SQL and Cypher.
- Usability: A user study indicated that participants found PROVQL significantly easier to use and learn than SQL and Cypher, with 95% rating it easier to use than SQL/Cypher and 80% preferring it for attack investigations.
Limitations and Future Work
- Cost Estimation: While PROVEXA's scheduler generally reduces cost estimates, the paper notes that for non-selective constraints, a monolithic query planned by the database might sometimes be more efficient.
- Database Optimization: PROVEXA's gains are amplified when paired with an optimized database configuration. The paper suggests exploring more adaptive database optimizations.
- Automated Query Generation: Currently, analysts must manually write PROVQL queries. Future work could leverage cyber threat intelligence and large language models to automatically generate PROVQL queries aligned with investigative goals.
- Cost-based Fallback: The authors suggest adding a lightweight cost-based fallback mechanism that compares monolithic vs. split query plans and selects the cheaper option dynamically.
Summary updated