Reading width
Wide uses the full column for everything, text, diagrams, code, and exercises. Narrow keeps the standard reading width.
Text size
Scales the body text. Headings and code blocks keep their size.
In this section
0.6 Agentless Evidence Collection
Introduction
Not every host can run a Velociraptor client. A partner's server, a regulated system that cannot take new software, a machine cut off from the network as part of containment, or simply a host the deployment has not reached yet: each still holds evidence, and the investigation still needs it.
Velociraptor's answer is the offline collector, a copy of the same binary with its instructions built in, which runs the chosen artifacts on the host and writes the results to a container that comes back later.
This lesson collects from a host with no client, named db-legacy-02 for the run, using the same binary and artifacts as everything earlier in the module. It lists what the container holds, encrypts one, reads a collection in place without unpacking it, and imports it into a lab server, where it becomes a client that has never connected.
Module 6 builds and runs real collectors; here the aim is to know what an agentless collection can and cannot give, and how to handle what comes back.
When the Agent Cannot Go
The cases for an offline collectionRemote live response, as lesson 0.1 set out, reaches only a host that runs the client and is connected to the server. The cases outside that are common enough that every deployment needs an answer to them before an incident forces one.
The Velociraptor documentation calls these out-of-band collections. The offline collector is a full Velociraptor binary with a custom configuration and a list of artifacts embedded in it. Its instructions are baked in rather than received from a server, and it writes its results to a local container instead of sending them anywhere. Started with no command-line arguments, it runs the collection; nothing has to be installed, enrolled or approved.
The collector carries every decision with it. Whatever was not decided at build time cannot be asked on the host.
The figure's red stretch is the whole difference from everything earlier in the module. From the moment the binary is handed over until the container comes back, there is no server in the loop: no progress, no log arriving in the GUI, and no way to ask a follow-up question.
Every decision about what to collect, how to protect it and where to send it is made when the collector is built.
That single property shapes every section that follows. An agentless collection is planned like a site visit with no return trip: decide what the investigation will need, collect it all in one pass, and make sure the result can be trusted once it is back.
The Same Artifacts, No Server
Collecting on a host with no clientThe engine inside an offline collector is the one the client uses, which means the artifacts behave exactly as they do on a live host. The quickest way to see that is the artifacts collect command, which runs artifacts locally and writes them to a container, with no server and no client involved. On db-legacy-02 it collected the process list, the crontabs and the user accounts:
$ velociraptor artifacts collect Linux.Sys.Pslist Linux.Sys.Crontab Linux.Sys.Users \
--output $PWD/db-legacy-02.zip --timeout 600 --cpu_limit 50 --nobanner 2>/dev/null
[
{
"Container": "/home/analyst/collections/db-legacy-02.zip",
"Error": null
}
]
The output path is given in full, with $PWD, for a reason found while building this lesson: given a bare file name, 0.77.4 reported the container as /db-legacy-02.zip and wrote it to the root of the filesystem rather than the current folder. Whatever the release, read the Container line it prints and confirm the file is where you expect before moving on.
Two of the flags are the ones an offline collection should always carry. --timeout stops the collection if it runs too long, so an artifact that meets an unexpectedly large folder does not keep the host busy for hours, and --cpu_limit caps the share of the processor the collection takes, so a production database keeps serving while it runs.
A collector built in the GUI carries the same settings, chosen in advance because nobody will be watching to stop it.
The command's own output is a single line of record: the container it wrote and an empty error. That is all the person running it sees, which is why the decisions inside the collector matter more than its interface.
A partner's administrator who runs it and sends back the file has done everything that can be asked of them; whether the file answers the investigation depends on what was built in.
The command is also the cheapest way to test a collection plan. Before a collector goes to someone else's host, run the same artifacts with artifacts collect on a lab machine of the same operating system, check that each one returns rows, and read how long it took and how large the container grew.
A collector built in the GUI differs in packaging, not in behavior: it carries the artifact list, parameters and settings inside the binary and starts collecting when run with no arguments, so the person running it needs no flags at all. Anything that fails in the lab will fail on the host, where nobody can see it fail.
The artifacts collected here are the same ones lessons 0.3 and 0.5 used on a live client, and they found the same evidence, as the next sections show. What changed is not the collection but everything around it: when it ran, who ran it, how the results traveled and how they will be identified.
What the Container Holds
Results, uploads and the record of the runThe container is an ordinary zip file with a fixed layout, and listing it shows how a collection is recorded:
$ unzip -l db-legacy-02.zip | grep -E 'results/[^ ]*json$|client_info|log.json$|cron.d/sys'
1945 1980-00-00 00:00 results/Linux.Sys.Crontab%2FCronTabs.json
3084 1980-00-00 00:00 results/Linux.Sys.Crontab%2FCronScripts.json
64 2026-12-02 19:28 uploads/auto/etc/cron.d/sys-update
4896 1980-00-00 00:00 results/Linux.Sys.Crontab%2FUploaded.json
6712 1980-00-00 00:00 results/Linux.Sys.Users.json
93756 1980-00-00 00:00 results/Linux.Sys.Pslist.json
4341 1980-00-00 00:00 log.json
671 2026-12-02 19:28 client_info.json
Each artifact source has its own results file, named for the artifact and source with the slash encoded, so Linux.Sys.Crontab%2FCronTabs.json holds the parsed cron entries. The process list alone is 93,756 bytes, one JSON row per process.
Files the artifacts uploaded keep their original paths under uploads/auto, which is why the cron file from lesson 0.3 appears there as a copy. And two small files make the container a record rather than a bundle of output: log.json, the collection's own log, and client_info.json, what the collector knew about the host it ran on.
The results files are plain JSON lines, one object per row, so they can be read with any tool, not only Velociraptor. That matters when a container is handed to someone who does not run a server: jq or a spreadsheet import will open them.
The client_info.json file is the collector's description of the host it ran on: here the hostname db-legacy-02, the platform and kernel version, and a HostID read from the machine. The import in section 6 builds its client record from that file, which is why it deserves a careful look before the import trusts it.
The log deserves the same habit lessons 0.1 and 0.3 asked for. An artifact whose precondition failed, or one that hit the timeout, still leaves a results file or none at all, and only the log says which. Reading log.json before concluding that something is absent is the offline equivalent of opening the flow log.
Protecting What Travels
Encryption, and why a fixed password is weakA collection container holds exactly the material an attacker would want: process lists, account names, configuration files, sometimes credentials in uploaded files. It travels by email, file share, cloud bucket or USB stick, so it is encrypted before it leaves the host. With a password set, the same command writes a container that looks very different from the outside:
$ velociraptor artifacts collect Linux.Sys.Crontab --output $PWD/sealed.zip --password 'Rotate-Me-2026' \
--nobanner > /dev/null 2>&1
$ unzip -l sealed.zip | sed -n '4p'; unzip -o sealed.zip -d sealed < /dev/null 2>&1 | tail -n 1
13216 1980-00-00 00:00 data.zip
skipping: data.zip unsupported compression method 99
The listing shows one entry, data.zip, and nothing else; the real file names are inside it. That wrapping is deliberate, since the documentation notes that a zip's file names and sizes stay visible even when its contents are encrypted. The inner archive uses AES encryption, compression method 99, which unzip reports it cannot handle without the right tool and key. Nothing in the container is readable without the password.
Why the container is wrapped. A plain zip shows every file name and size in its listing; the wrapper leaves a reader with one encrypted entry and nothing else.
The collector builder offers more than a password, and the choice matters:
$ velociraptor artifacts show Server.Utils.CreateCollector | grep -A2 'name: encryption_scheme'
- name: encryption_scheme
description: |
Encryption scheme to use. Currently supported are Password or X509
On 0.77.4 the builder's description names two schemes, Password and X509. The offline-collections page also describes PGP, which this release removed along with PGP support in several functions, and no encryption at all, and it is clear about where each belongs.
The documentation is direct about why a password is the weak choice: it is fixed in the collector's configuration, and anyone who has the binary can extract it.
With X509, the collector makes a random password for each run, encrypts the container with it and seals that password to the server's certificate, so only the server's private key can open it, and imports decrypt it without anyone typing anything. A collector handed to someone outside the team should use X509.
Encryption protects the container, not the route it takes. A collector can upload its container on its own, to a cloud bucket, an SFTP server or a file share, and the credentials for that upload are built into the collector just as a password would be.
Anyone holding the binary holds those credentials, so they should allow writing new objects to one place and nothing else: no listing, no reading back, no deleting. A partner who keeps a copy of the collector after the incident then holds nothing that opens your storage or the containers already in it.
The certificate the X509 scheme uses is the server's, and the matching private key never leaves it. That is the property that makes the scheme safe to hand out: the collector can seal a container it has no way to open, and losing the binary loses nothing.
Reading a Collection Where It Lies
The zip accessorA container does not have to be unpacked or imported to be read. Lesson 0.4's accessors include zip, which opens an archive as if it were a folder, and every plugin can read through it. The cron question from lesson 0.3, asked of the results file inside the container, returns the same answer it gave on the live machine:
SELECT User, Command
FROM parse_jsonl(
filename=pathspec(DelegateAccessor='file',
DelegatePath='/home/analyst/collections/db-legacy-02.zip',
Path='results/Linux.Sys.Crontab%2FCronTabs.json'),
accessor='zip')
WHERE Command =~ '/tmp/'The collection read where it lies, through the zip accessor: the cron entry from lesson 0.3, found on a host with no client.
That is the fastest way to triage a returned collection: read the few rows the question needs without loading anything into a server, on an analyst's own machine. It also means a container can be checked the moment it arrives, before it is trusted with an import, by listing its results and reading its log.
There is a caution in the result. The row is evidence from a host whose identity rests entirely on the container: the file name, the hostname the collector recorded, and the account of whoever ran it.
On a live client, the client ID was derived from a key the host holds, as lesson 0.2 showed. Here there is no key, and the chain of custody does the work the key did. Record who built the collector, who ran it, when, and how the container traveled, in the same notes as the findings.
The hash is the line most often skipped and the one that makes the rest checkable. Taken when the container arrives, before anything opens it, it lets anyone later confirm that the file the findings came from is the file that came back from the host.
The other three lines are only as good as the people who supply them, which is the reason to write them down at the time rather than reconstruct them for a report weeks later.
Importing It as a Client
A host that never connectedImporting a container makes it look like any other client's collection, which is what lets the rest of the server's tooling work on it. The Server.Utils.ImportCollection artifact, or the import_collection() function behind it, reads the zip from the server's file system, creates a client record and a flow, and loads the results into it. After importing db-legacy-02's container, the lab server had a client it had never heard from:
SELECT client_id, os_info.hostname AS Hostname, os_info.system AS OS
FROM clients()The lab server after the import: a client that has never connected, created from the container.
The record is honest about its origin if you know how to read it. The client ID is the HostID the collector read on db-legacy-02 and wrote into client_info.json, with its dashes turned into underscores, not an ID derived from a client key.
The hostname, platform and kernel version come from the same file, and the operating system field the server fills by interrogation is empty because no interrogation ever ran. The collection itself arrives as a finished flow, with every row the collector wrote:
- FINISHEDLinux.Sys.Pslist, Linux.Sys.Crontab, Linux.Sys.UsersF.DC872QFAH3VMA147 rows
The imported collection as a finished flow, with every row the collector wrote.
The import runs on the server and reads the container from the server's own file system, so a returned zip is first copied there; an X509 container is decrypted during the import with the server's key.
The function takes the path to the zip and, optionally, a client ID and a hostname; left to itself it uses the host information inside the collection, which is where db-legacy-02's ID came from. Once imported, the flow sits beside live collections and every tool that works on flows works on it: notebooks, exports, and the hunts and timelines of later modules.
From here everything works as it would for a live client. A notebook query over the imported flow returns the same row the zip accessor read:
SELECT User, Command
FROM source(client_id='C.86bc6de5_ee66_085f_d19c_8d780ef28d86', flow_id='F.DC872QFAH3VMA',
artifact='Linux.Sys.Crontab/CronTabs')
WHERE Command =~ '/tmp/'The same question asked of the imported flow, exactly as it would be of a live client's.
The difference between the two kinds of client is worth keeping visible. An imported client cannot be collected from again, so scheduling a new collection on it simply waits forever, like the offline client in lesson 0.1. Naming conventions or labels that mark imported clients save the next analyst from asking a host that will never answer.
What a Collection Without an Agent Gives Up
Planning for one passThe offline collector is a powerful tool with a cost that is easy to forget until the container comes back without the one artifact the investigation now needs. The documentation lists the limitations plainly.
The first row dominates. On a live client the investigation is a conversation: collect, read, ask the next question. Offline, it is a single message, and the questions have to be anticipated.
That argues for a broader first collection than a live response would take: running state as well as files, the artifacts that parse evidence on the host rather than raw files to parse later, and enough context to interpret what comes back, such as the users and the scheduled tasks, even if the immediate question is narrower.
Take db-legacy-02 as the worked case. The question was scheduled execution, and cron answered it, but a responder sending one binary to a partner would also take the process list and network connections, because the host's running state is gone by the time anyone reads the container, along with systemd timers and units, shell histories, user accounts and the authentication logs.
None of those were needed for the first question; each is the kind of second question that cannot be asked later. The cost is a larger container and a longer run, which is why the timeout and CPU limit matter more as the list grows.
The packaging limits shape what can be included. An embedded configuration is limited to about 80KB, so a collector with many large artifacts uses the Generic collector instead, a separate file that the binary reads; the same option is required on macOS, where embedding a configuration breaks the code signature that Apple checks.
Tools the artifacts call, such as a YARA rule set or a third-party binary, must be packed in advance and add to the size.
Finally, the collector runs blind. Artifacts run in an effectively random order with two running at a time by default, and nothing reports progress. Set the timeout and the CPU limit as a courtesy to the host's owner, ask them to send the container whatever happens, and read its log before anything else.
Asking an Assistant
Describing the constraint, not just the toolAsked how to make an offline collector, an assistant described the builder: choose artifacts, download, run. That is accurate, and it leaves every decision that matters to whoever is building it.
- You
How do I make a Velociraptor offline collector?
- Assistant
In the GUI, open Server Artifacts and build an offline collector, choose the operating system and the artifacts you want, and download the binary. Run it on the target and it writes a zip.
- You
A partner's Linux database server cannot run the Velociraptor client, and their administrator will run one binary for us and send back the result. Using Velociraptor 0.77.4, what should the collector collect, given we cannot go back for a second pass, how should the result be protected in transit, and how do we load it into our server and confirm nothing was lost? Name the settings and artifacts.
- Assistant
Because there is no second pass, include the running state as well as the files: Linux.Sys.Pslist, Linux.Network.Netstat, Linux.Sys.Crontab and Linux.Sys.Users at least, with parsing done in the collector, since the server is not built for parsing raw files centrally. Use the X509 encryption scheme, so the password is random and sealed to your server's certificate rather than written into the binary. Set a timeout and a CPU limit so the administrator is not left with a busy server. When the zip arrives, import it with Server.Utils.ImportCollection and check that every artifact you asked for has rows, and read log.json for errors before concluding anything is absent.
- Velociraptor
- FINISHEDLinux.Sys.Pslist, Linux.Sys.Crontab, Linux.Sys.UsersF.DC872QFAH3VMA147 rows
The imported collection as a finished flow, with every row the collector wrote.
The second prompt described the constraint that makes offline collection hard: someone else's server, one run by someone else, and no second pass. The reply widened the artifact list to include running state, chose X509 for the container, set limits for the host's sake and ended with an import check, the parts of the job that an incident tends to discover too late.
- cannot run the Velociraptor clientsays why the collection is agentless
- their administrator will run one binarysays who runs it, which decides how simple it must be
- we cannot go back for a second passmakes the one-shot constraint the center of the answer
- protected in transitasks for the encryption choice, not just the build steps
- confirm nothing was lostasks for the check after import
The time it saved was in assembling the list and the settings in one place. What it could not do was know the constraint, and the second prompt is the one a responder should be able to write before the collector is built.
- HoldsThe container was written without errorsartifacts collect returned Error: null for db-legacy-02.zip
- HoldsEvery artifact asked for came backflow F.DC872QFAH3VMA: Pslist, Crontab and Users, 147 rows
- HoldsThe imported rows match the containerthe cron entry from the zip and from source() are the same row
- FailsThe import proves which host this wasthe client ID comes from the HostID the collector reported; no key proves it
The failing line is the one that belongs in the report. An imported host's identity is a claim made by people and paperwork, not by a key, and the report should say so.
Practice
Is this collection enough? your own VelociraptorThe scenario holds a container collected from db-legacy-02, its import into a lab server, the cron rows and an encrypted second container. Decide what the collection establishes and what has to be recorded about it.
Then make one yourself. On a Linux or Windows machine with the Velociraptor binary, run velociraptor artifacts collect with the process list and scheduled-execution artifacts for that operating system, --output and a --timeout. List the container, read one results file through the zip accessor with parse_jsonl(), and import it into your instant-mode server with Server.Utils.ImportCollection. Then collect it again with --password and try to open the result with unzip.
An offline collector carries the client's engine and the investigation's questions to a host the server cannot reach, and brings the answers back in a container. It gives up the second question, live telemetry and the host's key-based identity, so it is planned for one pass, encrypted with X509, read in place or imported, and recorded with its custody.
Lesson 0.7 turns the other way, from one host with no client to every host with one, and what it costs to ask them all at once.
Resources
Velociraptor changes quickly; where its documentation and this lesson disagree, the documentation is newer.