☼
⌃
☰

velociraptor

Table of Contents

Velociraptor

Description

Velociraptor is a modern DFIR tool that goes beyond simple logging and focuses on endpoint visibility at scale. It uses a pull-based architecture where a central server sends structured queries to deployed agents (clients) across the network. This architecture allows security analysts and incident responders to hunt for complex threats and gather forensic evidence quickly and efficiently, even in large enterprise environments.

VQL (Velociraptor Query Language)

The core of Velociraptor is the Velociraptor Query Language (VQL). VQL is a declarative query language that allows analysts to express what data they want to collect, rather than how to collect it.

  • DFIR Abstraction: VQL abstracts the complexities of different operating systems (Windows, Linux, macOS) and forensic artifacts. A single VQL query can be run against all agents, simplifying cross-platform hunting.
  • Artifact Collection: Velociraptor ships with hundreds of pre-defined Artifacts (pre-packaged VQL queries) that target common forensic evidence, such as browser history, registry keys, process memory, MFT records, and anti-forensics measures.

Architecture

Velociraptor typically runs as a lightweight, persistent agent on endpoints. The server-client model enables:

  1. Event Monitoring: Continuous, low-overhead monitoring for specific suspicious events.
  2. On-Demand Collection: The ability to immediately gather forensic data from a specific group of machines in response to an active incident.

Examples

  • Remote Log Collection (VQL Example): Instead of manually logging into hundreds of machines to check the last few entries of an event log, an analyst can use a single VQL query to gather the data simultaneously:

    VQL
    # VQL query to collect the last 10 entries from the Windows Security Event Log
    SELECT *
    FROM wmi_event_logs(log="Security")
    ORDER BY Timestamp DESC
    LIMIT 10
    

    The results from all endpoints are then aggregated on the server for immediate analysis.

  • Hunting for a Specific Persistence Mechanism: An analyst suspects a new malware variant is using a specific run key in the registry for persistence. They execute a pre-built Artifact or a custom VQL query that rapidly checks this specific registry path on all endpoints. If any agent returns a positive match, the machine is immediately isolated and flagged for in-depth forensic investigation.
  • Memory Dump and Analysis: During an active breach, an analyst can use a Velociraptor command to instruct a compromised endpoint's agent to:
    1. Take a full memory dump (RAM image) of the running system.
    2. Compress the dump.
    3. Securely upload the memory dump to the central Velociraptor server, allowing the analyst to perform offline analysis with tools like Volatility.