In this section

0.1 Remote Live Response and Its Limits

Module 0

Introduction

Remote live response is the practice of asking questions of an endpoint while it runs, over the network, and getting answers back in minutes rather than days.

It sits beside the older practice of copying a disk or a large triage set to one place and examining it there, and it changes what an investigation can do: it can ask the same question of every host in an estate, it can see state that exists only while the machine is running, and it can do both without anyone driving to a data center.

It also has limits that are easy to forget once the answers start arriving. A query reaches only an endpoint that runs the client and is connected to the server, it reads only what the host still holds, and a result that looks complete can be empty for reasons that have nothing to do with the evidence.

This lesson sets out how Velociraptor answers a question, then runs it in instant mode on a lab machine and shows each of those limits as the server reports it, so that you can tell an answer from an absence before a finding depends on it.

1

Live Response Against Acquiring Everything

Why the model changed

Traditional forensic practice preserves first and asks later. An examiner images the disk or copies a large triage set from each host into one place, then searches the copies with the tools of the day. That model is defensible and slow. It keeps a frozen copy that can be examined again next month, and it costs a full collection from every host before the first question is answered.

Velociraptor's own documentation puts the scale problem bluntly: a basic triage collection across 100,000 hosts is simply not viable. Even at a few hundred megabytes per host, the transfer, the storage and the processing grow with the estate, while the question an investigator has on day one is usually narrow.

Was this file ever on any machine? Which hosts are running this service? Who logged on to these three servers last night?

Remote live response turns the order around. The question goes to the endpoint, the endpoint evaluates it against its own disk, registry, logs and process table, and only the rows that answer it travel back. A query across an estate returns in minutes because each host does its share of the work.

Acquire, then searchAsk, then collectHost 1Host 1Host 2Host 2Host 3Host 3Host 4Host 4Host 5Host 5storeserverrows onlyEvery host sends everything before any question is askedEach host evaluates the query and sends back the answer

The scale argument in one picture. The bar each host sends on the left is its whole triage set; on the right it is the rows that matched.

The difference is easy to put a number on, even on one small lab machine. Three folders an acquisition would copy hold several gigabytes, and the answer to one targeted question about them, which scheduled entries run from /tmp, came back as 103 bytes:

$ du -sh /etc /usr /var 2>/dev/null
9.0M	/etc
7.1G	/usr
243M	/var
$ velociraptor query --nobanner --format json \
    "SELECT User, Command FROM Artifact.Linux.Sys.Crontab(source='CronTabs')
     WHERE Command =~ '/tmp/'" | wc -c
103

Multiply the first figure by every host in an estate and the second by the same count, and the scale argument makes itself.

Neither model replaces the other. The acquired copy survives the host being rebuilt and can be re-examined when new questions arise; the live answer reflects the host at one moment and changes when it is asked again.

Live response also touches the system it examines: running a query starts a process, reads files and writes to the client's own working directories. On most investigations that cost is small and the speed is worth it, but it is a cost, and it is why a case that may end in court is often handled with both.

ComparisonTwo ways to answer a question about many hosts
Acquire, then searchCopy disks or large triage sets to one place, then process them centrally
Ask, then collectSend a targeted query to each endpoint and bring back only the rows
What the first keepsA frozen copy that can be re-examined later without the host
What the second keepsSpeed, scale and state that exists only while the host is running

The rest of this course works in the second model. Knowing what the first one keeps is what tells you when to switch to it.

2

Queries Go to the Evidence

How a question reaches an endpoint

Velociraptor treats the endpoint as the source of truth. Its documentation describes the design in one sentence: the server pushes queries to the endpoints and parses artifacts directly on the endpoint itself. Everything else in the product follows from that choice.

The unit of work is an artifact: a named, reusable set of VQL queries with parameters and a description, such as Linux.Sys.Pslist for the process list on Linux or Windows.EventLogs.EvtxHunter for searching event logs. Artifacts are written in YAML, and the definition is readable from the binary itself. Here is the start of the Linux process list artifact, with its parameter, its precondition and its query:

$ velociraptor artifacts show Linux.Sys.Pslist | sed -n '1,24p'
name: Linux.Sys.Pslist
description: |
  Lists processes and their associated binaries.

aliases:
  - MacOS.Sys.Pslist

parameters:
  - name: processRegex
    default: .
    type: regex

precondition: |
  SELECT OS From info() where OS =~ 'linux|darwin'

sources:
  - query: |
        SELECT Pid, Ppid, Name, CommandLine, Exe,
               hash(path=Exe) as Hash,
               Username, CreateTime,
               MemoryInfo.rss AS RSS,
               Exe =~ "\\(deleted\\)$" AS Deleted
        FROM process_tracker_pslist()
        WHERE Name =~ processRegex

Two lines in it matter for this lesson. The precondition is the check from section 6 below, written out, and the query reads process state from the live system, which is why it can only ever describe the moment it runs.

When you collect an artifact from a client, the server compiles it and the artifacts it depends on into plain VQL, sends that VQL to the client, and the client evaluates it locally. Parsing, filtering and matching all happen on the endpoint, and the client sends back rows, plus any files the query was told to upload.

Analystchooses an artifactServercompiles it to VQLClientevaluates the VQLClientsends rows and uploadsServerstores them in the flowthe persistent connection: the query goes out once and the rows come backOne collection, end to end

Where the work happens. Parsing and filtering run on the client, so the server receives answers, not raw evidence.

Clients hold a persistent connection to the server rather than checking in on a timer, so a collection starts as soon as it is scheduled. The connection is TLS, 1.3 by default, and since release 0.72 it can run over websockets.

One request and one response is usually the whole exchange: a query that lists processes running from a temporary folder and uploads their binaries is a single VQL request, not a conversation.

The server keeps an index of every client that has enrolled. Each client has a client ID that never changes, beginning with C., and the index records its hostname, operating system and when it was last seen. On a fresh instant-mode server, the index holds exactly one client:

VQL1 row
SELECT client_id, os_info.hostname AS Hostname,
       os_info.system AS OS, os_info.release AS Release
FROM clients()
client_idHostnameOSRelease
C.f8daaed3c4e96968ir-lablinuxubuntu24.04

The server's client index after instant mode started: one enrolled client, the lab machine itself.

Every collection is a flow, with its own flow ID beginning with F., a state, and the rows it produced. The flow is the record of what was asked and what came back, and almost every check in this lesson reads one.

3

One Binary, Three Roles

Server, client and utility

Velociraptor ships as a single executable per operating system and architecture. The same file runs as the server, as the client on an endpoint, or as a command-line utility that evaluates VQL locally, collects artifacts into a zip or builds an offline collector. Which role it plays depends on the command and the configuration it is given, not on which file you downloaded.

$ velociraptor version
name: velociraptor
version: 0.77.4
commit: f48c1eb21
build_time: "2026-11-23T00:38:06Z"
compiler: go1.27.2
system: linux
architecture: amd64

That output is from the release this course is built on, 0.77.4, on the Linux build used for the lab. The server is fully supported only on Linux; the documentation is explicit that other platforms are for non-production use, and that bugs affecting only unsupported server platforms may not be fixed. Clients run on Windows, Linux and macOS, with capabilities that differ by platform.

Two consequences of the single binary matter in practice. First, version discipline is simple and strict at the same time: the server and the clients should run the same release, and a release note that changes an artifact or a protocol changes both.

Release 0.75 added a compression scheme that works only with 0.75 clients, and 0.77 renamed and removed several built-in artifacts. Second, the utility role gives you a way to test a query on your own machine before sending it to a thousand others: velociraptor query runs VQL locally, with no server at all.

CommandsWhat decides the role
velociraptor frontendThe server: client connections, the GUI and the datastore
velociraptor clientThe endpoint agent, with a client configuration
velociraptor guiInstant mode: a server and one client in one process
velociraptor queryVQL evaluated locally, or sent to a server with --api_config
velociraptor artifacts collectAn artifact run locally, into a zip if asked

The last row is worth noticing early. With --api_config, velociraptor query sends the query to a server and it runs there, which is how the results in this lesson were produced from the command line.

4

Instant Mode as a Lab

A server and a client in one process

Instant mode is the fastest way to have a working Velociraptor deployment: one command starts a self-contained server and one client in a single process.

The server listens only on the loopback interface, the client connects to it over loopback, and a single administrator account called admin is created. Started on the lab machine with a datastore folder named explicitly, it printed this, among a few hundred lines of service startup:

$ velociraptor gui --datastore ~/vr-lab --nobrowser --nocolor
[INFO] 2026-12-02T18:47:35Z This is Velociraptor 0.77.4 built on 2026-11-23T00:38:06Z (f48c1eb2…
[INFO] 2026-12-02T18:47:36Z Initial user admin not present, creating
[INFO] 2026-12-02T18:47:37Z GUI is ready to handle TLS requests on https://127.0.0.1:8889/
[INFO] 2026-12-02T18:47:37Z Frontend is ready to handle client TLS requests at https://127.0.0.…
[INFO] 2026-12-02T18:47:37Z Enrolling
[INFO] 2026-12-02T18:47:37Z Enrolling

Read the lines in order. The configuration was generated because none existed, the admin user was created, the GUI is listening on port 8889 and the frontend that clients talk to on port 8000, both on 127.0.0.1, and the client enrolled. It enrolled twice because a fresh instant-mode server creates two orgs, the root org and a second one called ACME Inc, and the built-in client joins both:

VQL2 rows
SELECT Name, OrgId FROM orgs()
NameOrgId
<root>root
ACME IncO123

The orgs a fresh instant-mode server creates. The second one is why the startup log shows Enrolling twice.

Orgs are separate tenants inside one server, each with its own clients, users and data. The second org in instant mode is a convenience for trying the feature, and it is the first place this course meets multi-tenancy, which Module 2 returns to when it reads the 2026 advisories about permissions applied across orgs.

Two settings decide whether instant mode is a lab or a liability. Without --datastore, data goes to a temporary folder that some systems clear, so a lab that should survive a reboot needs the flag.

And instant mode is not a production server: the documentation says so, and it also warns that running it on a machine under investigation can pollute forensic data, because it writes a datastore, a configuration and a running client onto the very disk you might later need to examine. Run it on your own machine or a lab virtual machine, and bring evidence to it.

5

What a Connected Endpoint Can Answer

Collecting from the lab client

With the client connected, a collection is a request that the endpoint answers in seconds. Collecting Linux.Sys.Pslist from the lab client produced a flow that finished with 70 rows, one per process.

The rows are not shown on screen when the collection finishes; they are stored in the flow on the server, and you read them back from there, in the GUI's results tab or with the source() plugin in a notebook.

VQL1 row
SELECT Pid, Ppid, Name, Username, CommandLine
FROM source(client_id='C.f8daaed3c4e96968',
            flow_id='F.DC86FJGRCVUK8',
            artifact='Linux.Sys.Pslist')
WHERE Name = 'velociraptor' AND CommandLine =~ ' gui '
PidPpidNameUsernameCommandLine
18371796velociraptorroot/opt/velociraptor/velociraptor gui --datastore /home/analyst/vr-lab --nobrowser --nocolor

One of the 70 rows the client returned: the Velociraptor process itself, seen from the endpoint.

The query filters the 70 rows to one: the Velociraptor process itself, seen from the endpoint, with the command line that started it.

That row carries three facts the server could not have produced on its own. It came from the client's process table, it was read at the moment the collection ran, and it is tied to a client ID and a flow ID that record exactly where and when it was taken.

Running state is the clearest case for live response. The processes on a host, its network connections, the users logged on and the services loaded exist only while the machine runs. A disk image taken tomorrow will not contain them, and a reboot erases them.

A live collection is the only way to have them at all, which is why order of volatility, the subject of Module 5, decides what to collect first on a host that may be shut down.

Files and logs are different. They persist on disk, so a live collection reads them in place, without imaging the disk, and only for the paths and the time window the question needs. That is how a fleet-wide question about one file name or one logon becomes practical: every host searches its own disk and returns only the matches.

Collected artifacts
  1. WAITINGGeneric.Client.InfoF.DC86FIG013N260 rows
  2. FINISHEDLinux.Sys.PslistF.DC86FJGRCVUK870 rows
  3. FINISHEDWindows.System.PslistF.DC86FKAV2E4BE0 rows
  4. RUNNINGLinux.Sys.PslistF.DC86FN2LFC2NE0 rows

Every collection on the lab client, oldest first. Two finished with rows, one finished with none, and one is still waiting.

The list holds every collection the lab client has received, and the first two are the ordinary case: the interrogation the server runs when a client enrolls, and the process collection above. A connected endpoint can answer a question about its running state now and about its recorded past as far back as its records go, and no further.

6

Finished Is Not Found

Reading an empty result

The third collection in the list is the one that misleads. Windows.System.Pslist was collected from the same Linux client, and the flow finished with zero rows. Read as a result, that says the endpoint had no processes. Read as a record, it says something else entirely, and the flow's own log is where the record is kept:

VQL4 rows
SELECT level, message
FROM flow_logs(client_id='C.f8daaed3c4e96968', flow_id='F.DC86FKAV2E4BE')
levelmessage
INFOStarting query execution for Windows.System.Pslist.
INFOWindows.System.Pslist: Skipping query due to preconditions
INFOCollection Windows.System.Pslist is done after 6.556078ms
DEBUGQuery Stats: {"RowsScanned":1,"PluginsCalled":1,"FunctionsCalled":6,"ProtocolSearch":0,"ScopeCopy":4}

The log of the Windows collection that finished with no rows. The second line is the whole explanation.

The query never ran. Artifacts carry preconditions: VQL that runs before the main query and decides whether the source is relevant or safe on this endpoint. The documentation states the rule plainly: if the precondition returns no rows, the collection is skipped. Windows.System.Pslist checks that the host runs Windows, the lab client runs Linux, and so the source was skipped and the flow ended normally, with nothing to report.

The flow state cannot tell you this. FINISHED means the collection ended, not that it searched. The same state, and the same zero, come back when a query runs and genuinely finds nothing, when a precondition fails, and when a parameter points at a path that does not exist on that host. Each means something different, and only one of them is a negative finding.

ReadingsThree empty flows, three meanings
Query ran, found nothingA negative result, scoped to what the query searched
Precondition failedThe question was never asked on this host
Wrong parameter or pathThe question asked was not the one you meant
Read the log before the zero

Preconditions are what make it safe to collect an artifact across a mixed fleet, because the Windows artifact quietly skips the Linux hosts instead of failing on them.

In a hunt across thousands of machines that is exactly what you want, and it is also why a hunt's result count is not a count of hosts that were checked. The habit this section asks for is small: before a zero becomes a statement, open the flow log and confirm the query ran.

7

When the Endpoint Is Not There

The limits no query crosses

The last flow in the list is still RUNNING with no rows. It was scheduled after the lab server was restarted without its client, which is the situation of every laptop that is asleep, every server behind a firewall that blocks the frontend port, and every host whose client was never installed.

The server queued the collection and will deliver it when the client next connects. Until then the flow waits, and when it completes it will describe the host as it is then, not as it was when you asked.

That is the first limit: a query reaches only a host that runs the client and is connected. The client index records when each client was last seen:

VQL1 row
SELECT client_id, timestamp(epoch=last_seen_at) AS LastSeen FROM clients()
client_idLastSeen
C.f8daaed3c4e969682026-12-02T18:47:51.762897Z

The client index while the last collection waited: the time the client was last heard from.

The timestamp is the server's record of the last time it heard from the client, and checking it before reading anything into a missing result is the cheapest test in the product. The second limit is time.

Memory and running state are gone after a reboot, logs rotate on a schedule, and files are overwritten. A collection run today reads what the host holds today. The third limit is what the operating system never wrote down: no query recovers a command line that was not logged, or a file access nobody audited.

Reachable nowconnected clientrunning statefiles on diskReachable lateroffline client: the flow waitsno client: an offline collectora disk image: remappingNot reachablememory lost at rebootlogs already rotatedwhat was never recordedTime moves evidence from left to right; nothing moves it back

The reach of remote live response, by when the question is asked. The middle zone is why the course spends a module on agentless collection.

Velociraptor has answers for part of the middle column. A host that cannot run the client can be collected with an offline collector, a standalone binary that runs chosen artifacts into an encrypted zip that is imported into the server later; Module 6 builds one.

A disk image can be analyzed by a virtual client that runs the same artifacts against the image through remapping, which Module 4 covers. Neither recovers what the right-hand column has lost.

LimitsWhere a live query cannot reach
No clientThe host never had Velociraptor installed, or it was removed
Not connectedAsleep, off the network, or blocked from the server
Already goneOverwritten, rotated, or lost at the last reboot
Not recordedThe operating system never wrote it down
Wrong platformAn artifact whose precondition fails on that OS
Plan for these first

Planning an investigation starts from this list, not from the artifact catalog. Before deciding what to collect, decide which hosts can be reached now, which can be reached later and how, and which questions no collection will answer, so that the report states those gaps instead of discovering them.

8

Asking an Assistant

Getting a collection, not a shortcut

An assistant is useful from the first day with Velociraptor: it drafts VQL, names the artifact you are looking for and explains a plugin's parameters faster than the reference does. It is also confident about where a query runs, and that is the mistake this lesson's first answer contains.

Asked briefly how to list processes, the assistant suggested a notebook cell running pslist(), and on a lab machine that answer appears to work.

Processes on the lab clientCaptured: Claude Opus 5.5, 2 December 2026
  1. You

    How do I list running processes with Velociraptor?

  2. Assistant

    Open Notebooks, add a VQL cell and run: SELECT Name, Pid, Ppid, CommandLine FROM pslist(). You will get one row per running process.

  3. Velociraptor
    VQL1 row
    SELECT Pid, Name, CommandLine FROM pslist()
    WHERE Name = 'velociraptor' AND NOT CommandLine =~ 'api_config'
    PidNameCommandLine
    1941velociraptor/opt/velociraptor/velociraptor gui --datastore /home/analyst/vr-lab --nobrowser --nocolor --noclient
    The command line ends in --noclient: no client was connected when this row was produced.

    The assistant's first suggestion, run in a notebook while the client was disconnected. It answered anyway, because it ran on the server.

  4. You

    I have a Velociraptor 0.77.4 server in instant mode with one Linux client. I need the processes running on that client, as the client sees them, not on the server. Give me the VQL or the GUI steps to collect them from the client, how I read the rows afterwards, and how I can tell from the result that it came from the client.

  5. Assistant

    A notebook cell runs on the server, so pslist() there lists the server's processes. To reach the client, schedule a collection of Linux.Sys.Pslist on it: open the client, then Collected Artifacts, then New Collection, or from a notebook use collect_client(client_id=..., artifacts='Linux.Sys.Pslist'). Read the rows with source(client_id=..., flow_id=..., artifact='Linux.Sys.Pslist'). The result carries the client ID and a flow ID, and the flow stays RUNNING until the client answers, so a result that appears while the client is offline did not come from it.

  6. Velociraptor
    Collected artifacts
    1. WAITINGGeneric.Client.InfoF.DC86FIG013N260 rows
    2. FINISHEDLinux.Sys.PslistF.DC86FJGRCVUK870 rows
    3. FINISHEDWindows.System.PslistF.DC86FKAV2E4BE0 rows
    4. RUNNINGLinux.Sys.PslistF.DC86FN2LFC2NE0 rows

    Every collection on the lab client, oldest first. Two finished with rows, one finished with none, and one is still waiting.

The first result in the session came back while the client was disconnected. Notebook cells are evaluated on the server, so pslist() read the server's own process table, and the row's command line ends in --noclient.

On an instant-mode lab, where the server and the client are the same machine, the two answers look identical, which is exactly why the shortcut survives until it is used against a real endpoint and quietly returns the server's processes instead.

The second prompt fixed it by saying three things the first did not: which machine the answer must come from, that a collection was expected, and that the answer should carry its own check. The annotations show which words did each job.

PromptThe prompt that gets a collection
I have a Velociraptor 0.77.4 server in instant mode with one Linux client. I need the processes running on that client, as the client sees them, not on the server. Give me the VQL or the GUI steps to collect them from the client, how I read the rows afterwards, and how I can tell from the result that it came from the client.
  1. Velociraptor 0.77.4 server in instant modenames the version and the setup, so the answer fits the server you run
  2. as the client sees them, not on the serverrules out the notebook shortcut that answers from the wrong machine
  3. collect them from the clientasks for a collection, the only route a query has to an endpoint
  4. how I read the rows afterwardsgets the second half of the job: rows arrive in the flow, not on screen
  5. how I can tell from the resultasks for the check, so the answer comes with its own evidence

Two things in the session are worth taking further. The assistant saved real time on the syntax of collect_client() and source(), which is where it is strongest. And the check that settled the question was not the assistant's explanation but the flow list, which showed a collection that finished on the client and another that waited while the client was away.

What the decision rests on
  1. HoldsThe first answer came from the serverpslist() returned the gui process started with --noclient
  2. HoldsA collection reaches the clientLinux.Sys.Pslist finished on C.f8daaed3c4e96968 with 70 rows
  3. HoldsAn offline client leaves the flow runningF.DC86FN2LFC2NE stayed RUNNING with 0 rows
DecisionCollect from the client and read the rows from the flow; treat any notebook answer as the server's.

The decision line is the part to keep. An assistant's account of where a query runs is a claim like any other, and in Velociraptor the flow list settles it in seconds: a client ID, a flow ID and a state say where the rows came from and whether they arrived at all.

Do

Practice

Which of these can the endpoint answer?
your own Velociraptor

The scenario holds four results a colleague ran on an instant-mode lab server with one Linux client: the collections, the client record, the log of the Windows collection and a notebook cell. Answer each question from the tabs, then check your reasoning against the explanation.

Then do it on your own machine. Download the release binary for your platform from the Velociraptor downloads page, start instant mode with a datastore folder of your own (velociraptor gui --datastore ~/vr-lab, or a folder of your choice), and sign in as admin.

Collect the process artifact for your operating system from your client, read the rows from the flow, then collect an artifact for a different operating system and open the flow log to find the line that says it was skipped. Finally, run pslist() in a notebook and compare it with the collection: on your own machine the rows will match, and you now know why that proves nothing.

Remote live response answers questions on a running endpoint by sending the query to it and bringing back only the rows. It reaches a host that runs the client and is connected, and reads what that host still holds; everything else is either reached later, by an offline collector or an image, or not at all.

Lesson 0.2 turns to the trust that makes the connection safe: how a server and its clients prove who they are to each other.

Resources

Velociraptor changes quickly; where its documentation and this lesson disagree, the documentation is newer.

Stuck? Spotted an error?