Skip to content
Pwnversity
DFIR-TRIAGEintermediate · 12 min · upd. 2026-11

System triage and live response

KAPEVelociraptorUAC

System triage (or live response) is the fast, targeted collection of the forensic artifacts that answer an incident’s first questions: what ran, who logged on, what persists and who the machine is talking to. Instead of cloning whole disks, you extract in minutes the small fraction of data that carries the most information. This page covers triage of the system; quick analysis of a suspicious file lives in sample triage.

A full image of a laptop takes hours; of fifty servers, days. Meanwhile the attacker is still inside and leadership wants to know how many machines are affected. Triage removes that bottleneck:

  • Speed: tens or hundreds of megabytes per host instead of hundreds of gigabytes.
  • Scale: the same collector runs on one host or a thousand.
  • Decision: triage tells you which hosts deserve a full image and memory analysis, which get rebuilt and which are clean.

What it does not solve: triage does not recover deleted files from unallocated space, and it does not replace disk forensics when the case may end up in court or needs exhaustive reconstruction.

flowchart TD
    A["Alert or suspicion<br/>about a host"] --> B{"Is the host<br/>powered on?"}
    B -- "Yes" --> M["1. Memory dump<br/>(most volatile)"]
    M --> T["2. Triage collection<br/>(KAPE · Velociraptor · UAC)"]
    B -- "No" --> O["Offline triage on<br/>the image or mounted disk"]
    T --> H["3. Hash and log in<br/>chain of custody"]
    O --> H
    H --> AN["4. Analysis: execution,<br/>logons, persistence, network"]
    AN --> D{"Compromise<br/>confirmed?"}
    D -- "Yes" --> F["Full image ·<br/>fleet-wide IOC hunt"]
    D -- "No" --> C["Document and close"]

Order matters: memory comes before triage because the collector itself creates processes, opens files and changes memory and access times. This is the order of volatility principle explained in chain of custody.

Question Artifacts Page
What ran? Prefetch, Amcache.hve, Shimcache (in SYSTEM), BAM, SRUM Windows artifacts
Who logged on, and from where? Security.evtx (4624, 4625, 4648, 4672), RDP (TerminalServices-*), PowerShell Operational Windows artifacts
What persists? SYSTEM, SOFTWARE, NTUSER.DAT hives; scheduled tasks; services; WMI Persistence
Which files changed? $MFT, $UsnJrnl:$J, $LogFile Timeline
What did the user do? LNK, Jump Lists, ShellBags, browser history Windows artifacts
Question Artifacts Page
What is running right now? Processes, process tree, /proc/<pid>/exe, cmdline, environ Linux artifacts
Who is it talking to? Open sockets, ARP table, routes, firewall rules Network forensics
Who got in? /var/log/auth.log or secure, wtmp, btmp, lastlog, journal Linux artifacts
What persists? cron, systemd timers and units, .bashrc, authorized_keys, kernel modules Linux artifacts
What changed? Bodyfile with MAC times for the whole file system Timeline
Tool Platform Model Key points
KAPE (Kroll) Windows Targets (what to copy) + Modules (what to run on the copy) Free for internal use; an enterprise license is required to use it on third-party networks or in paid engagements
Velociraptor Windows, Linux, macOS Server + agents running VQL queries, or a standalone offline collector Open source; Windows.Triage.Targets artifact for file triage and Linux.Triage.UAC for Linux
UAC Linux, macOS, BSD, AIX, Solaris, ESXi, NetScaler, Android Dependency-free shell script driven by YAML profiles Follows the order of volatility; can acquire memory with AVML

KAPE copies files the OS keeps locked (hives, $MFT, .evtx) through low-level access and packages them. Compound targets bundle dozens of artifacts.

Ventana de terminal
# Run as administrator from a USB drive or network share, never installed on the host
kape.exe --tsource C: --target KapeTriage --tdest E:\case-014\%m\tout --vhdx %m
# Then process the collection with Eric Zimmerman's parsers
kape.exe --msource E:\case-014\HOST01\tout --module !EZParser --mdest E:\case-014\HOST01\mout
  • --tsource source, --target what to collect, --tdest destination; %m expands to the machine name.
  • --vhdx packages the output into a mountable virtual disk that preserves paths and timestamps.
  • --vss adds shadow copies: more history at the cost of more time and volume.
  • KAPE writes console and copy logs with hashes of everything copied: they are part of the evidence.

For hosts without an agent (or networks with no path to a server), Velociraptor builds a standalone executable that collects the chosen artifacts and leaves a ZIP.

  1. In the server UI: Server Artifacts → Build offline collector (it uses the Server.Utils.CreateCollector artifact under the hood).
  2. Pick the OS, the artifacts (for example Windows.Triage.Targets with the _BasicCollection or _KapeTriage target) and size and time limits.
  3. Choose X.509 encryption: the collector encrypts the container with a random password protected by the server certificate, and the collection decrypts itself on import. Fixed-password and PGP options exist, but the official documentation recommends X.509.
  4. Run the collector on the affected host and move the ZIP to the server to import and analyze it with VQL.

Since version 0.75, Windows.KapeFiles.Targets is no longer built in: file triage is maintained in a separate project and the new artifact is called Windows.Triage.Targets. Many older guides still use the previous name.

Ventana de terminal
# From mounted external media, as root
./uac -p ir_triage /mnt/usb/case-014
# Add an AVML memory dump before the triage (follows the order of volatility)
./uac -a ./artifacts/memory_dump/avml.yaml -p ir_triage /mnt/usb/case-014
# Offline triage of an already mounted image, without live response artifacts
./uac -p full -a \!live_response/\* /mnt/usb/case-014 --mount-point /mnt/ewf --operating-system linux

The standard profiles are ir_triage, full and offline. The output is a single archive with an execution log recording every command that was run.

If no tool is available, a handful of commands captures the most perishable data. Run them from trusted binaries on external media and write the output off the host’s disk:

Ventana de terminal
D=/mnt/usb/case-014/$(hostname)-$(date -u +%Y%m%dT%H%M%SZ); mkdir -p "$D"
date -u > "$D/date_utc.txt"
ps auxwwf > "$D/processes.txt"
ss -tunap > "$D/sockets.txt"
ip neigh show > "$D/arp.txt"
ip route show > "$D/routes.txt"
ls -l /proc/*/exe 2>/dev/null > "$D/process_exe.txt"
who -a > "$D/sessions.txt"
sha256sum "$D"/* > "$D/SHA256SUMS"

With the collection in hand, these indicators give fast results:

  • Deleted binaries still running (Linux): a /proc/<pid>/exe link ending in (deleted) means the file was removed from disk while the process kept running, a common malware technique. The binary can be recovered by copying that link while the process is alive. Example reproduced in a lab:

    $ ls -l /proc/940/exe
    lrwxrwxrwx 1 root root 0 Nov 19 22:26 /proc/940/exe -> /tmp/kworkerx (deleted)
    $ cp /proc/940/exe recovered.bin && sha256sum recovered.bin

    Executables loaded from memory (memfd:) also show as (deleted), and some legitimate programs use them: validate each case.

  • Names that mimic system processes (kworkerx, svchosts.exe) or odd paths (svchost.exe outside System32).

  • Execution from user or temp paths: %TEMP%, %APPDATA%, C:\ProgramData, /tmp, /dev/shm.

  • Network and RDP logons from hosts or at times that do not fit.

  • Persistence created within the incident window: recent services, tasks, Run keys, systemd units or cron lines.

  • Remote administration tools nobody authorized (AnyDesk, ScreenConnect, VS Code or Cloudflare tunnels).

  • Minimize the footprint: run from external media or a network share; install nothing on the host under investigation.
  • Write elsewhere: output never goes to the affected host’s disk, because it overwrites unallocated space that may hold evidence.
  • Log everything: exact command, tool version, UTC time, who ran it. Serious tools generate this log; keep it.
  • Hash when done and record the collection in the chain of custody.
  • Test the kit before the incident: a collector that fails on permissions or gets blocked by an antivirus should be discovered in the exercise, not in the crisis.
  • Rootkits: a kernel rootkit can hide processes, files and connections from any tool that asks the system itself. This is why a memory dump analyzed off the host is more reliable than the live process list (rootkits).
  • Tampered system tools: ps, netstat or ls replaced to lie. Use trusted static binaries from external media.
  • Timestomping: fake timestamps in $STANDARD_INFORMATION; cross-check against $FILE_NAME and the $UsnJrnl.
  • Log wiping and disabling auditing before acting: an absence of events in a specific window is itself an indicator.
  • IR tools used by the attacker: the same triage software can be used to control hosts (see real-world cases).
  • Ivanti Connect Secure (advisory AA24-060B, February 2024): CISA and its partners determined that attackers could deceive the vendor’s internal and external Integrity Checker Tool (ICT), which therefore failed to detect compromise; in a lab, CISA validated that the actor could keep root-level persistence even after a factory reset. Lesson: triage cannot rely solely on a tool run by the compromised system itself; you need external sources (remote logs, traffic, memory).
  • Velociraptor used by attackers (Sophos, August 2025): in an intrusion investigated by Sophos, the attacker installed Velociraptor and used it to download Visual Studio Code and open a tunnel to their C2. Sophos recommends treating unauthorized Velociraptor use as a precursor to ransomware. Lesson: IR tools must be inventoried and monitored too; an agent the security team did not deploy is an alert.
  • Triage kit prepared, tested and with documented versions (KAPE, offline collector, UAC)
  • Memory acquired before the triage collection if the host is powered on
  • Run from external media with output off the investigated disk
  • Command, version, UTC time and operator recorded
  • Collection encrypted in transit (X.509 in Velociraptor) and hashed on receipt
  • Logged in the chain of custody
  • Execution, logons, persistence and network reviewed
  • IOCs extracted and hunted across the rest of the fleet
  • Documented decision: full image, rebuild or close