Velociraptor: Hunting Across Every Endpoint at Once
On this page
In the Kuiper post I mentioned my manager had asked me to research open-source DFIR tooling, and that two names kept coming up. Kuiper was the first — the place artifacts go after you collect them. Velociraptor is the other half of that sentence: the thing that reaches out and does the collecting, live, across your whole fleet.
This is the getting-to-know guide, not the comparison. Velociraptor is deep enough that the first time I opened it I under-used it badly, so this is the tour I wish I’d had: what it is, how its one big idea works, and every major feature with commands you can run.
What Velociraptor actually is
Velociraptor is an open-source endpoint visibility, DFIR and live-response platform, built by Mike Cohen and the Velocidex team (now part of Rapid7). You run a server; you deploy lightweight clients (agents) to your endpoints; the server tasks those clients and collects the results through a web GUI.
Here’s the one idea that makes everything else fall into place: a Velociraptor client is just a VQL engine. Every task you send — list processes, grab a registry key, hunt a hash across 5,000 machines — is a VQL query the client executes and streams back. Learn VQL and you haven’t learned “a feature”; you’ve learned the whole tool.
Step 1 — Instant Velociraptor, in two minutes
Velociraptor is a single Go binary — no dependencies, no installer. The fastest way to see it is standalone GUI mode, which runs a server and one client (itself) on your own machine, bound to loopback:
# download the one binary for your OS from the releases page, then:
./velociraptor gui
# Windows: velociraptor.exe gui
That launches a local server, enrols a single client (your machine), creates an admin / password login, and opens your browser to the GUI. By default it writes to a temp folder — point it somewhere persistent if you want it to survive a reboot:
./velociraptor gui --datastore ~/velo-datastore
Five minutes in, you can already run artifacts against your own box. That’s the right way to learn VQL before you deploy anything.
Step 2 — from laptop to fleet
For real use you generate a config, run the server on a Linux VM, and push clients out.
# interactively generate matched server + client configs
./velociraptor config generate -i
# -> writes server.config.yaml and client.config.yaml
# create your admin user
./velociraptor --config server.config.yaml user add admin --role administrator
# run the server (GUI + frontend that clients connect to)
./velociraptor --config server.config.yaml frontend -v
Then package the client for your endpoints — a Debian package, an MSI, or a service install — all built from that single binary plus client.config.yaml:
# build a Debian client package
./velociraptor --config server.config.yaml debian client
# or install as a Windows service on an endpoint
velociraptor.exe --config client.config.yaml service install
Server note: the client runs anywhere, but the server is only fully supported on Linux for production. Treat Instant Velociraptor as the lab, a Linux VM as the real thing.
VQL: the one idea that runs everything
VQL looks like SQL but is built for forensics. The shape is always SELECT columns FROM plugin(args) WHERE condition, where the plugins are the forensic capabilities — process lists, file globbing, registry, EVTX parsing, and hundreds more.
-- processes, with their command lines and parents
SELECT Name, Pid, Ppid, CommandLine, Exe FROM pslist()
-- anything dropped into a Downloads folder
SELECT FullPath, Mtime, Size
FROM glob(globs="C:/Users/*/Downloads/*")
WHERE NOT IsDir
-- call another artifact as a function and filter it
SELECT * FROM Artifact.Windows.System.Pslist()
WHERE CommandLine =~ "-enc"
Because every capability is a plugin, you compose them: glob for files, hash each one, look each hash up against a set, and return only the hits — one query, no scripting.
Artifacts: pre-built investigations you can run
Writing VQL from scratch every time would be exhausting, so Velociraptor wraps reusable queries as artifacts: named, parameterised YAML files you run by name. Hundreds ship built in — a few I lean on:
| Artifact | What it gets you |
|---|---|
Windows.System.Pslist |
Running processes with hashes |
Windows.EventLogs.Evtx |
Parse and query EVTX logs |
Windows.Forensics.Prefetch |
Execution evidence from prefetch |
Windows.Forensics.SRUM |
App/network usage history |
Windows.Registry.NTUser |
Per-user registry keys (Run, RecentDocs…) |
Windows.KapeFiles.Targets |
Collect KAPE-style target sets over the wire |
Generic.Client.Info |
Baseline host facts |
Run one from the command line against the local box, or (far more often) pick it in the GUI:
./velociraptor artifacts collect Windows.Forensics.Prefetch
And when the built-ins don’t cover it, the Artifact Exchange is a community library of hundreds more you import with a click — or you write your own artifact (it’s just VQL plus a parameter block).
Collections and the VFS
Tasking one client for one artifact is a collection — the result is stored on the server, browsable and downloadable. Alongside it, the VFS (Virtual File System) lets you browse that endpoint’s actual filesystem through the GUI, lazily, as if it were mounted: walk C:\Users, preview a file, download the ones you want for deeper analysis. Live triage without ever RDP-ing in.
Hunts: the whole fleet in seconds
This is the feature that sells it. A hunt is simply “run this artifact on every client (or every client matching a label)”. You pick the artifact, set parameters, launch — and results stream back from thousands of endpoints and aggregate into one table you can sort and filter.
“Which machines have this scheduled task / this hash / this registry value?” stops being a week of manual checks and becomes a coffee-length hunt.
Notebooks: from raw rows to a report
Every collection and hunt has a notebook — interleaved Markdown and VQL cells — so you post-process results right where they live. Re-query the collected data, join it, chart it, write your findings around it, and export. It’s the “turn evidence into a report” step built into the same tool, so your analysis never leaves the platform.
-- inside a notebook cell: summarise a hunt's results
SELECT OSPath, Hash, count() AS Seen
FROM source() -- the hunt's collected rows
GROUP BY Hash
ORDER BY Seen DESC
Live monitoring: client and server events
Beyond point-in-time collections, Velociraptor does continuous monitoring. Client event artifacts (process creation, DNS, service installs…) run permanently on endpoints and stream events up in real time. Server monitoring reacts to those events — raise an alert, kick off a follow-up collection, escalate. That’s the bridge from “DFIR tool you open during an incident” to “detection sensor you leave running.”
Offline collectors and dead disk images
Not every endpoint can talk to a server — air-gapped hosts, a single suspicious laptop, a consultant’s one-off job. Velociraptor builds a standalone offline collector: a self-contained executable (made in the GUI) that someone runs on the target with no server at all, producing a single results .zip you analyse later. And you can point Velociraptor at dead evidence too — a triage collection or a mounted disk image — and run the very same artifacts you’d run live. One skill set, live or post-mortem.
Five ways I’d actually use it
- Fleet-wide IOC sweep. New threat report drops at 9 a.m.; by 9:15 a hunt has told you which of your endpoints match.
- Remote triage, no RDP. Pull processes, autoruns, prefetch and event logs from a suspect host through the GUI while it stays isolated.
- Leave-behind detection. Deploy a handful of client-monitoring artifacts and let Velociraptor stream process-creation and service-install events as a lightweight sensor.
- The one-laptop case. Hand a non-technical colleague an offline collector
.exe; get back a zip you analyse with the same artifacts. - Disk-image triage at speed. Run
Windows.Forensics.*artifacts against a mounted image instead of chaining five standalone CLI parsers.
Where this leaves you
Kuiper and Velociraptor turned out to be the two halves of a cheap, capable DFIR capability: Velociraptor reaches out and collects live from the fleet; Kuiper is the team-scale home where collected artifacts become searchable evidence. My manager’s research question — “what can a small team stand up for free?” — basically answers itself once you’ve met both. Start each in its lab mode, run one real query, and the rest opens up fast.
Worth reading next: the Velociraptor docs, the VQL reference, the Artifact Exchange, and — for the other half — my Kuiper getting-started guide.