55. Endpoint telemetry in the console: hunt, process trees, attack stories and profiles
This guide describes Lawliet 1.6.3.b (the current release, a beta: earlier releases are beta. The first stable release will be 2.0.0). Screens, commands and procedures may change in later versions; the usage guide is updated with each release. Check the version your server runs under Settings > Platform or with ./lawliet version, and see the Releases page for what changed.
Agents on Windows and Linux report what runs on the host: processes started and ended with their command lines, network connections, DNS lookups and writes to sensitive files. The server keeps this telemetry in the log store, runs the detection rules on it, and the console shows it on four screens under Detect > SIEM > Telemetry, plus a health panel on each agent. Telemetry follows the demo rule like every other screen: demo hosts show demo telemetry, only with the demo licence, and Clear demo data removes it.
Permissions: reading follows the log store; the hunt also needs the forensics module in the licence. Changing a profile or the retention needs Manage telemetry (manage_telemetry); uploading and activating Sysmon needs Publish agent releases. Telemetry > Overview lists every host with its collector, profile, cost, lost events and state.
55.1 Hunt: search every host#
Telemetry > Hunt builds a search over the telemetry of all hosts, for example who ran certutil in the last 7 days.
- Pick a field (host, process image, command line, parent image, user, SHA-256, destination IP, file path, DNS name, event kind, collector, OS), an operator (is, is not, contains, starts with, ends with) and a value.
*is a wildcard. Choose Add condition for more; every condition must match. - Choose the Time range (1 hour to 31 days).
- To count instead of list, tick one or more Count by boxes (host, image, command line, user, destination IP, parent image, event kind).
- Choose Run hunt. The Query box shows exactly what is sent; you may edit it by hand (the label then says so). It is the log query language, never SQL; a bad field gets an error naming it. The query uses full field names such as
fields.process.executable, so it also runs unchanged in SIEM. - Event rows show time, host, kind, image, command line, user, parent, destination and path; the + at the start of a row opens the full event (every field and the raw event). Counts show one column per group.
- In the results, Host adds a "host is ..." condition so you can narrow to that machine, and Tree opens the process tree of that process.
Save hunt keeps the query and its time range under a name; saved hunts appear as buttons, one click runs one, and the bin icon deletes it. Saved hunts are stored with the console's saved searches (a hunt: prefix in the name), private to you. A saved hunt keeps at most 30 days even if the hunt itself ran over 31; the console says so when it cuts the range.
55.2 Process tree#
Telemetry > Process tree shows one process on one host with its ancestors and descendants. Pick a host; the console lists its recent process starts to choose from, or you arrive from a hunt result, an attack story or a link with the host and process already set.
Each row shows the program, process id, user, start time, command line, and small counters for connections and file writes. The row of the process you came for is highlighted. Click a row to open its details: image path, integrity level, SHA-256, start and end, exit code, every network connection (direction, addresses, ports), every file write and the DNS names it looked up. The chevron collapses or expands the branch. The search box filters by image, command line, user, hash, process id, address, file or DNS name and keeps the path from the top to every hit, so a match is always shown in context.
A note says when the tree was cut at the server's size cap, and rows marked "seen as parent only" are processes known only because a child named them.
55.3 Attack story#
Telemetry > Attack story, or Attack story in an alert's drawer in SIEM > Alerts, expands one alert into its chain: the process that started it, its children, their connections and the files they wrote, in time order, with the ATT&CK techniques of the alert at the top and of each step that carries one. The process tree sits underneath with the alert's process highlighted and open. An alert with no telemetry says so instead of showing an empty chain. Opened without an alert, the page lists the newest alerts that have a story (endpoint telemetry among their evidence) with their host; choose one, or type an alert number.
55.4 Profiles and retention#
Telemetry > Profiles sets how much each group of hosts reports.
| Profile | Collects | Budget on the host |
|---|---|---|
| Light | process start and end, outbound connections | under 1% CPU, 60 MB |
| Standard (default) | adds inbound connections, DNS, writes to sensitive paths | under 2% CPU, 120 MB |
| Full | adds module loads and broad file writes | under 5% CPU, 250 MB |
- Find the host group (or Default, for hosts in no configured group).
- Choose the Mode - Off, On demand or Always on (see 55.6) - and the profile (for On demand: the Profile while recording).
- Optionally open Filters (one entry per line): images to leave out, the only paths whose writes are reported, and destination networks (CIDR) to leave out. Globs only, no regular expressions.
- Save group. Agents pick the change up on their next heartbeat. Collecting less than now (a lower profile, switching off, more exclusions) needs a second administrator where approvals are required; the page then says it was sent as a request.
A group with no setting of its own is marked inherits the default; Give this group its own setting creates one and Revert to default removes it again (four-eyes when it collects less). Notes at the top say when the licence does not include telemetry or the server has it switched off.
Retention (14 days by default, 1 to 365) applies to all telemetry. On a standalone (SQLite) install the page says telemetry is limited to the light profile and 3 days, and the other profiles and the retention field are locked.
55.5 Agent telemetry health#
Open an agent in Agents and read Endpoint telemetry: the collector in use (Sysmon, ETW without Sysmon, eBPF, or the proc-connector fallback on older Linux kernels, or "none running"), the profile, EDR CPU and EDR memory (what the telemetry itself costs: the only numbers judged against the profile's budget), Whole agent CPU (the agent process, plus "spawned" for the programs it starts) and Whole agent memory (private memory), dropped events (events filtered by your policy are not counted as loss) and the last batch time. An agent older than 1.5.16.s does not report the EDR share: it is not judged against the budget, a host the server had stepped down goes back to its group's profile, and the warning says to update the agent. If the telemetry was over budget for 10 minutes and stepped down a profile, a warning says from which to which. On Windows, "reboot required" in the Sysmon line means Windows finishes turning the built-in Sysmon on at the next restart; the agent applies the Lawliet configuration after it.
A warning from the server, and any lost events (batches the store refused, kept on the host) are shown with Acknowledge to clear the note (Manage telemetry). A stepped-down host has Reset to <profile> to put it back on its group's profile. macOS hosts show that telemetry covers Windows and Linux only.
On Windows hosts the panel also shows the Sysmon state of the host (for example lawliet config, builtin feature, absent), the policy, and the binary on offer. Lawliet never ships Sysmon: until it is present the agent collects with ETW. With Publish agent releases the panel also lists the uploaded binaries:
- Upload Sysmon64.exe (the file from Microsoft). The server keeps it only when it is signed by Microsoft Corporation and the signature covers that exact file; otherwise it says why. An identical file is refused as a duplicate.
- Activate offers it to every Windows agent. This is the four-eyes step: a second administrator approves it, and the panel shows the request number. Agents install it on their next heartbeat after approval.
- Withdraw stops offering it (hosts that already installed Sysmon keep it). Delete removes an inactive binary. Both ask you to confirm.
The panel shows the Sysmon policy (management automatic or off, and whether Lawliet's configuration replaces the site's). Changing it, the domain-controller list and the configuration download are in 52.4 and 52.5.
The Lost events figure is the server's count of events lost on the host; events refused by the store are shown separately as quarantined, and events filtered by your policy are not loss.
55.6 Recording on demand (1.5.16.s)#
On demand, a host collects nothing until a detection names it, then records for a set number of minutes and stops again by itself. It keeps endpoint telemetry for the moments that matter without the cost of collecting all the time.
Defaults. A new installation starts with the default setting on On demand: a new host records only after a SIEM detection or a decoy trip, for 30 minutes. An installation upgraded from an earlier release keeps what it had (every host Always on, unless you had switched it off): an upgrade never stops collection that rules, hunts or Under Attack chains rely on. Telemetry > Profiles then shows a note offering On demand.
Set it up
- Telemetry > Profiles, on Default or on a host group: choose On demand.
- Record for N minutes (5 to 1440; 30 by default) after each detection. A new detection on a host that is already recording moves the end out to N minutes from then; a burst of detections within a minute counts once.
- Tick what starts a recording:
- A SIEM detection names the host - any detection rule alert whose events name the host (on by default). The name matches case-insensitively. A full name in the log (
web01.corp.example) matches that host, or a host enrolled under the bare nameweb01- never aweb01in another domain. A short name matches the host of that name or with that first label, but only when exactly one host fits; when several do, nothing records and the audit log hastelemetry_trigger_ambiguous_hostwith the candidates. An IP address in the host field matches the agent's address.localhostand loopback addresses never match. A rollup alert (a rule that fired for more subjects than one evaluation alerts on) names no host and records none; - A decoy on the host is tripped (on by default);
- A high or critical DLP incident on the host (off by default);
- A critical file-integrity change on the host (off by default);
- Also record the enrolled host at the detection's source address - for example the host a decoy was touched from (off by default).
- A SIEM detection names the host - any detection rule alert whose events name the host (on by default). The name matches case-insensitively. A full name in the log (
- Stop after H hours of continuous recording (1 to 72; 4 by default). A rule that keeps firing extends the window at most that far - also when the last extension would move the end by only seconds; then it stops, and while the detections keep coming (each within one window of the last) they do not start it again. The host shows
capped after 4 h (trigger still firing). Record now restarts it at once; once the detections have been quiet for a window, the next one starts a new window. - Choose the Profile while recording and Save. Switching from Always on to On demand, a shorter window, a lower cap or unticking a trigger collects less: it needs a second administrator where approvals are required.
Off means no host collects, and detections never start a recording; Record now still works for one host. YARA scan results do not start a recording; detection rules that run on telemetry or Sysmon logs do (they are SIEM detections).
What each host is doing. Telemetry > Overview has a Recording column: recording until 14:32Z (trigger: SIEM: SIEM rule ... (alert 41)), always on, off or on demand, not recording. The line under it is what the agent's own batches show was recorded, for example recorded 14:03Z-14:20Z (from the agent's batches) - only batches that stored events count; no batch from the agent yet and last window: nothing received from the agent say that a window was open but nothing arrived (the agent offline, or older than 2.1.14.s). The console never shows a window as a recording. Times are UTC.
Record now and Stop (Manage telemetry):
- In the Recording column of the host, enter the minutes and choose Record now (or Extend while it records). The agent starts at its next heartbeat.
- Stop ends the window now. It collects less, so it needs a second administrator where approvals are required; the page then says it was sent as a request, and the approver reads the host name, the trigger and the end time. A host on Always on has neither button.
How it reaches the host. No agent change: the server sends the telemetry profile in the signed heartbeat policy only while a window is open, and agents 2.1.14.s stop collecting (and remove their audit rules on Linux) at the first heartbeat without it. The end is decided by the server clock at every heartbeat, so a server restart never leaves a host recording. After the end the host keeps its profile 60 seconds more, so the agent ships everything it queued inside the window before it stops (the console does not count those 60 seconds as recording); its last batch is still accepted for 3 minutes after the end. Every start, extension, stop and end is in the audit log (telemetry_recording_started, _extended, _capped, _stopped, _expired) with the trigger.