Tag: Open Source

Velociraptor in practice: hunting a whole fleet with one VQL query

Velociraptor in practice: hunting a whole fleet with one VQL query

When the 3CX desktop app supply-chain compromise broke, every defender with that softphone in the estate had the same question: which of our machines are running the bad build, right now? The team at Pentest Partners answered it with Velociraptor. They ran four checks across the estate (file hashes, process memory, AMCache and YARA), each of which they say came back in minutes, and they labelled the hits for follow-up. A community artifact already covered the checks.

That is the job Velociraptor is built for: ask one question of a whole fleet of endpoints and get a table back. This first Tools & Labs post is not based on my own lab run: the hands-on section is built on what practitioners and the issue tracker report, with links.

At a glance

ToolVelociraptor (Rapid7, code in the Velocidex GitHub org)
What it doesEndpoint visibility, collection and hunting, driven by a query language (VQL)
TypeDefensive
License and costAGPL-3.0, free; Rapid7 also offers a hosted version
PlatformsClients: Windows, Linux, macOS (amd64 and arm64). Server: fully supported on Linux only
Latest version0.77.4, released November 23, 2026
Best forIR teams, MSSPs and SOCs that can run a Linux server and learn VQL
VerdictUse it

What it is and how it works

Velociraptor has two halves. A server, in the cloud or on premises, holds the GUI, the API and the data. A client (the agent) runs as a service on each endpoint and keeps a persistent connection back to the server, so you can task it at any moment instead of waiting for a check-in window. Rapid7 bought Velocidex, the company behind the project, in April 2021; the code is still on GitHub under the AGPL-3.0.

Everything the client does is a VQL query. VQL, the Velociraptor Query Language, looks like SQL, but its “tables” are plugins that list processes, parse NTFS, read the registry or walk event logs. Queries are packaged as artifacts: YAML files with a name, parameters and the VQL inside. The same language runs on the server for post-processing and automation, and as event queries for continuous monitoring (the docs mention ETW on Windows and eBPF on Linux for real-time data).

There is no database to install. The server keeps everything as regular files and directories on its own filesystem, which can sit on NFS or cloud file storage. The documentation is blunt that the server is only fully supported on Linux, and that bugs affecting other server platforms will not be fixed. For production the docs strongly recommend single sign-on rather than the quickstart’s self-signed certificates and basic authentication.

Use cases

1. Hunting one indicator across the fleet

The situation: a vendor or a threat report hands you hashes, file paths or a YARA rule, and you need to know which hosts match. In the Hunt Manager you create a hunt, pick the artifacts and their parameters, and target or exclude clients by label. Hunts start paused, and the docs advise testing on one or two endpoints before you press Start. A hunt runs until it expires (one week by default), so laptops that come online on Thursday still get it, once each.

What you get out is a results table per artifact, plus a notebook where you can filter and group with VQL. The docs show this to pull one artifact’s results from a hunt:

SELECT * FROM hunt_results(hunt_id="H.123", artifact="Windows.System.Pslist")

This is the 3CX workflow from the hook: existing artifacts for the checks, then labels on infected hosts so follow-up collections target only the labelled hosts. Sources: the official hunting docs and the Pentest Partners write-up.

Five-step workflow of a Velociraptor fleet hunt: pick the artifact, create the hunt, test then start, review results in the notebook, label the hits so follow-up collections target only them.
A fleet hunt in five steps, based on the Velociraptor hunting docs and the Pentest Partners 3CX write-up.

2. First-pass event log triage with Sigma rules

The situation: you suspect a host is compromised and want a quick picture before deciding where to dig. Velociraptor has a built-in Sigma engine, and the project ships a curated port of the Hayabusa rules for it. The official “Triaging Logs” playbook goes like this: import Windows.Hayabusa.Rules with the Server.Import.CuratedSigma server artifact, collect it from the endpoint with all rules enabled, remove the default LIMIT 50 in the notebook, sort by rule title and use stacking to see each rule with its hit count.

What you get is a ranked list of “what fired and how often”, which you then judge against what is normal for that environment. The playbook is honest about the cost: with all rules on you typically get many thousands of rows, the rules are not tuned for low false positives like SIEM rules, and the whole method depends on local logs that an attacker may have cleared. Source: the Velociraptor triage playbook.

3. Offline collection where you cannot install an agent

The situation: a client’s server, a roaming laptop or a segregated network that will never reach your Velociraptor server. You build an offline collector, which is a normal Velociraptor binary with your chosen artifacts and settings embedded. Someone on site runs it, and it writes an encrypted ZIP locally or uploads it to an AWS or Google Cloud bucket, an Azure SAS URL, an SMB share or SFTP. You import the ZIP into your server and work on it like any other collection.

The GUI builder is the recommended path. For automated builds, the docs show the collector command, which prints a template spec when run without one:

./velociraptor collector --datastore /tmp/datastore/ /tmp/datastore/spec.yaml

Use X.509 encryption: the docs warn that with a password, anyone holding the binary can extract it. Thomas Millar at TrustedSec describes using offline collectors in incident response cases for two years, and walks through importing a collection from a macOS host. Sources: the offline collection docs and the TrustedSec post.

What practitioners report

No lab notes of my own here; this is what people who run it have published.

  • Speed at scale is the headline. Adam Harwood (Pentest Partners, October 2023) says each 3CX check ran across the estate in minutes. The write-up also claims a single server can handle upward of 15,000 clients. The docs publish no supported maximum, so treat that number as one practitioner’s claim.
  • VQL is the entry fee. The same write-up says you need the VQL fundamentals before the tool’s capabilities become clear, and that host quarantine comes with caveats.
  • Offline collections work but have rough edges. Millar’s macOS test returned results for 14 of 22 artifacts, and because the collector ran with sudo the ZIP was owned by root, so the import failed with “Permission Denied” until the ownership was changed.
  • A full server disk can hurt. In GitHub issue #4463 a user on 0.74.5 reported that when the datastore went read-only, clients kept calling back: about 3.7 TB of traffic in a day from roughly 500 endpoints. The maintainer said the fix landed in 0.75.3 and needs a client push.
  • Upgrades can break things you rely on. Issue #4473 reported that after moving from 0.72.4 to 0.74.5, any artifact with an IOPS limit never completed; issue #5144 reported a 0.77.3 server crashing when a hunt was created under heavy load. Both are closed, but they tell you to stage upgrades.

Project health as of December 6, 2026: latest release 0.77.4 (November 23, 2026), AGPL-3.0, maintained by Rapid7 in the Velocidex GitHub org, 61 open issues, 123 pull requests merged since September 1, 2026, and the last push to the repository on December 4, 2026.

Limits and gotchas

  • The server is a crown jewel with a busy patch history. The project’s advisory page lists 24 CVEs fixed across 0.77.2, 0.77.3 and 0.77.4, mostly permission checks, multi-org isolation and crashes; for some of them the page describes the attacker as a malicious authenticated GUI user. A separate advisory published November 28, 2026 (GHSA-r73w-c35x-wmm3) lets a low-privilege reader see other orgs’ data on multi-org or backup-enabled servers with case-insensitive filesystems. It covers versions up to and including 0.77.3 and lists no patched version, so it does not say whether 0.77.4 fixes it. My advice: run the current release, keep the server on Linux, keep GUI roles tight and do not expose the GUI to the internet.
  • Plan for a Linux server. The docs say the server is only fully supported on Linux and that bugs affecting other server platforms won’t be fixed, and the advisory above only bites servers on case-insensitive filesystems such as Windows NTFS and default macOS APFS.
  • Attackers like it too. Sophos described an intrusion, investigated in August 2025, where the attacker installed Velociraptor pointed at their own server and used it to launch a VS Code tunnel. Cisco Talos (October 9, 2025) saw an outdated 0.73.4.0 build used for persistence in ransomware attacks, still running after host isolation. Rapid7’s guidance: confirm every server and agent is yours, flag unsigned binaries, and watch outbound connections on ports 8000, 8001 and 8889.
  • Offline collectors are often one-shot. Changing artifacts means rebuilding and redistributing, the embedded config is capped at about 80 KB, the collector sends no progress back, and on macOS you need the Generic collector because repacking breaks code signatures.
  • Noise is your problem. The Sigma triage playbook says outright that its rules are not tuned for low false positives.

Alternatives

ToolPick it instead when
GRR Rapid Response (Google, Apache-2.0)You want another open-source remote live forensics platform, maintained by Google; latest release 4.0.0.0 in December 2025.
osquery (Apache-2.0 or GPL-2.0)You mainly want SQL-style host inventory and monitoring and already have a fleet manager to run queries at scale.
KAPE (Kroll)You want a standalone triage tool that collects files with Targets and processes them with Modules, with no server to run; read Kroll’s license terms for your use first.

My take

My verdict is Use it. To me Velociraptor is the strongest free answer I know to the first question of most incidents: where else is this? It gives a small team fleet-wide hunting, offline collection and Sigma triage with one query language, and the project ships often. You have to run a Linux server, treat it like a domain controller, patch it on the project’s cadence, and climb the VQL learning curve (the project’s own training course is 7 sessions of 2 hours).

I would adopt it if you do incident response for a living, run an internal IR or threat hunting function, or are an MSSP that needs a collector you can hand to a client. I would not adopt it as a replacement for EDR (it is not a prevention product), or if nobody on the team will own the server. And whether you use it or not, hunt for Velociraptor binaries you did not deploy; the 2025 abuse cases show why.

What would change my verdict: another run of permission-check CVEs like 2026’s without a calmer stable branch, or a clear slowdown in maintenance, would move it to Use with care.

Scorecard for Velociraptor with author's 1-5 scores for capability, cost, ease of use, maintenance, security record and documentation, verdict Use it.
Author’s scores, based on the sources listed below.

Sources