Lesson 1.7

Guided Collection and YARA memory scanning

Two collection options that go beyond fixed file lists: Guided Collection follows Windows persistence to the files it launches, and YARA memory scanning checks running processes.

12 minEveryone
At a glance for experienced analysts
  • Guided Collection (Windows): parses Run keys, Winlogon, IFEO, services, scheduled tasks, WMI consumers, Startup folders and PowerShell profiles, follows each reference to its payload, and collects what it cannot trust.
  • YARA memory scanner (live hosts): scans process memory with bundled or your own rules; optionally archives matched memory regions and executables.
  • CLI: --guided-collection, --yara-memory-scanner, --yara-rule <file>, --yara-memory-collect-dumps, --yara-memory-collect-executables.

Profiles collect fixed lists of files. Real intrusions hide in places a list cannot predict: a service pointing at a binary in an odd folder, a scheduled task running a script that loads something else. Two options go after those.

Guided Collection (Windows)

Guided Collection reads the places programs start from on Windows:

  • Run and RunOnce keys, Winlogon, Image File Execution Options and similar autostarts;
  • services and scheduled tasks;
  • WMI event consumers;
  • local accounts;
  • Startup folders and PowerShell profiles.

For each entry, it follows the reference breadth-first through shortcuts, scripts and interpreters to the file that finally runs. It checks signatures and catalog trust along the way, and collects what it cannot trust.

Everything it decides is written down. The archive gains three metadata files:

File Contents
metadata/persistence_findings.json Every persistence location parsed, with its technique and references
metadata/reference_chains.json Every chain walked, with per-step trust and collection decisions
metadata/guided_engine_versions.json Versions of the engines used to read registry, shortcuts, signatures and catalogs

Collected files appear in the archive’s guided category and in the collection log like any other file. In our Windows demo, the persistence records it gathered led the AI investigator straight to the backdoor service, scheduled task and Run value.

YARA memory scanning (live hosts)

YARA rules describe patterns found in malware. The YARA memory scanner checks the memory of running processes on a live host against the bundled rules, or against rule files you supply, and records matches in the archive. Arcsentry parses the results as their own event types.

Option in the app Command line Effect
YARA memory scanner --yara-memory-scanner Scan live process memory
Custom YARA rule paths --yara-rule <file> (repeatable) Use your rules instead of the bundled set
Collect process dumps --yara-memory-collect-dumps Archive the matched memory regions
Collect matched executables --yara-memory-collect-executables Archive the executable behind each matching process
Max dump bytes --yara-memory-max-dump-bytes <n> Cap each dump’s size
.\arcsentry-collect.exe collect --local -t windows::profile::triage::priority `
  --guided-collection --yara-memory-scanner `
  -o E:\IR -f HF-WS01.arcx --password-file E:\IR\pw.txt

--target can be left out when --guided-collection or --yara-memory-scanner supplies the work.

Analysis options in the Collector app123
(1) YARA memory scanner and its dump options, (2) Guided collection, (3) dump size limit and custom rule paths.

Check yourself

1. A scheduled task runs a PowerShell script that downloads and starts an executable in a user's AppData folder. What does Guided Collection collect?

Try it

In the Collector app, open Analysis options and read the description under each option. Which one would you use on a powered-off host's disk image?

Show the answer

Guided Collection, because it reads persistence from the registry, tasks and file system. YARA memory scanning needs running processes, so it only applies to a live host.

Progress is saved in this browser only.