Enabling Efficient Attack Investigation via Human-in-the-Loop Security Analysis

Saimon Amanuel Tsegai, Xinyu Yang, Haoyuan Liu, Peng Gao

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 features a novel domain-specific language (PROVQL) and an optimized execution engine that allows human analysts to iteratively sift through data, filter out noise, and uncover attack sequences more effectively than existing methods.

What Problem Does This Paper Address?

Modern cyberattacks, especially Advanced Persistent Threats (APTs), are increasingly sophisticated and involve intricate sequences of actions across multiple systems. Investigating these attacks generates an enormous volume of system provenance data (e.g., system call logs), creating a "needle in a haystack" problem for security analysts. Existing methods for analyzing this data, often based on causal dependency tracking, struggle with "dependency explosion"—generating overwhelmingly large graphs that bury critical attack-relevant events. This makes it difficult and time-consuming to pinpoint the actual attack path, its entry points, and its ramifications. Furthermore, current approaches often lack the flexibility for analysts to iteratively refine their investigations and incorporate their domain knowledge.

Methods

PROVEXA tackles this problem with a two-pronged approach:

  1. PROVQL (Provenance Query Language): This is a novel, domain-specific language (DSL) designed for human analysts. PROVQL offers two primary query syntaxes:
  2. Attack Pattern Search: Allows analysts to define and search for complex sequences of events that indicate malicious behavior.
  3. Attack Dependency Tracking: Enables tracing causal relationships between events, either backward (to find entry points) or forward (to understand consequences). PROVQL's key innovation lies in its expressive primitives and user-defined constraints, which allow analysts to focus the search and tracking on relevant parts of the provenance data, thereby mitigating dependency explosion. It also supports binding intermediate results to variables for iterative refinement of investigations.

  4. Optimized Execution Engine: PROVEXA includes a domain-aware query scheduler. Instead of translating entire complex queries into a single, inefficient database query, PROVEXA decomposes PROVQL queries into smaller, manageable sub-queries. These sub-queries are then executed in an optimized order, prioritizing those with higher "pruning power" (ability to reduce the search space) and considering semantic dependencies. This approach leverages the strengths of underlying databases while adding a crucial layer of domain-specific optimization.

Additionally, PROVEXA incorporates an in-memory management technique to store intermediate results, further speeding up iterative investigations.

Datasets

The paper evaluates PROVEXA using a comprehensive benchmark of 30 attack cases. These cases were drawn from:

  • Internal Testbed: 23 attacks executed in their own controlled network environment.
  • Publicly Available Datasets: 7 attacks sourced from existing system audit log datasets.

The benchmark covers a diverse range of attack strategies and complexities, including:

  • Multi-step attacks: Involving initial penetration, malware infection, lateral movement, and data exfiltration.
  • Malicious exploits: Leveraging known vulnerabilities.
  • Malware samples: Executing various types of malware.
  • DARPA TC cases: Real-world APT attack scenarios.
  • ATLASv2 cases: Realistic system logs with background noise.

The collected logs for evaluation comprised over 1.5 million system entities and 58 million events across 20 hosts.

Key Insights and Ideas

  • Human-in-the-Loop is Crucial: The paper strongly advocates for human analysts' role in cybersecurity, emphasizing their ability to interpret context and make nuanced decisions that automated systems struggle with. PROVQL is designed to empower these analysts.
  • DSL for Domain Specificity: A domain-specific language like PROVQL is far more effective for attack investigation than general-purpose languages like SQL or Cypher, which lack native support for causality tracking and become overly verbose.
  • Iterative Refinement is Key: Attack investigation is not a one-shot process. PROVQL's ability to bind and reuse intermediate results is vital for analysts to progressively narrow down their focus and refine findings.
  • Decomposition Over Monolithic Queries: Breaking down complex provenance queries into smaller, domain-aware steps, rather than relying on a single, massive database query, significantly improves performance and manageability.
  • Balancing Expressiveness and Efficiency: PROVQL strikes a balance by offering expressive primitives for analysts while its execution engine ensures efficient processing of large datasets.

Key Results

  • Attack Investigation Effectiveness: PROVEXA significantly outperforms existing methods (BackTracker, PrioTracker, DepImpact) in uncovering attack sequences, achieving a high F1-score (0.8766) and drastically reducing noise (NR = 0.1658) and misses (MR = 0.0525). It achieved an impressive graph reduction rate of 58,991x.
  • Query Execution Efficiency: PROVEXA's in-memory management provides substantial speedups (up to 41x) compared to re-querying the database. Its domain-aware scheduler delivers significant performance gains (up to 900x in PostgreSQL) by optimizing query execution.
  • Query Conciseness: PROVQL queries are significantly shorter and more concise than equivalent SQL or Cypher queries, averaging 19 words for tracking and 15 for search, compared to hundreds for SQL and Cypher.
  • Usability: A user study confirmed PROVQL's superior usability, with participants finding it easier to use, write queries with, and interpret results compared to SQL and Cypher, especially for complex attack investigations.

Limitations and Future Work

  • Database Optimization Dependency: While PROVEXA's scheduler offers significant gains, its performance is further amplified when layered on top of optimized database configurations. Future work could explore more adaptive database optimizations.
  • Cost-Based Fallback: For certain non-selective constraints, a monolithic query might be more efficient. The authors suggest adding a lightweight cost-based fallback mechanism to dynamically choose between split and monolithic plans.
  • Automated Query Generation: Currently, analysts write PROVQL queries manually. Future work could explore leveraging cyber threat intelligence and large language models to automatically generate PROVQL queries aligned with investigative goals.

Summary updated

BibTeX
@article{tsegai2022enabling,
  author = {Saimon Amanuel Tsegai and Xinyu Yang and Haoyuan Liu and Peng Gao},
  title = {{Enabling Efficient Attack Investigation via Human-in-the-Loop Security Analysis}},
  journal = {Proceedings of the VLDB Endowment},
  year = {2022},
}
Figure