Skip to content

Lesson 5 of 14 · 15m

Sysmon Fills the Gaps

Security.evtx has no DNS, no network connects, no memory-access events — Sysmon event IDs 1, 3, 10, and 22 are where triage actually lives.

A stock Windows box doesn't log DNS queries, doesn't log outbound network connections with process attribution, and can't tell you that something opened lsass.exe's memory. The Security log was designed in the NT era for "who logged on," not for "what did this process reach." Sysmon — the free Sysinternals driver/service — is what closes that gap, and in a SOC that has it deployed, its events carry most of the triage weight.

The event IDs that matter

  • EID 1 — process creation. Full CommandLine, Hashes, IntegrityLevel, User, and — the field Security's 4688 gives you but Sysmon enriches — ParentImage and ParentCommandLine. The parent-child pair is where macro chains, LOLBin abuse, and "why is winword.exe spawning powershell.exe" live.
  • EID 3 — network connect. Process + destination IP/port/hostname. This is the event that answers "did anything actually connect out."
  • EID 10 — ProcessAccess. SourceImage opened TargetImage with GrantedAccess mask. The crown jewel: anything reading lsass.exe with masks like 0x1010, 0x1410, or 0x1fffff is credential-access-shaped — the Mimikatz pattern. 0x1010 = QUERY_LIMITED_INFORMATION + VM_READ, which is exactly what a memory dumper needs.
  • EID 11 — FileCreate, 12/13/14 — registry create/value-set/rename (persistence lives here: Run keys, services, IFEO debuggers), 15 — alternate data stream creation, 8 — CreateRemoteThread (injection into another process).
  • EID 22 — DNS query. The hostname a process resolved, attributed to the process. When a temp-folder binary resolves xj4k2.cloudfront-c2.example, this is the event that catches it — and it catches DGA and tunneling traffic that the Security log can't even represent.
  • EID 23/26 — file delete (with archive on 23 — deleted malware can be recovered from Sysmon's capture folder).

Deploy it or you don't have it

sysmon64.exe -i sysmonconfig.xml
sysmon64.exe -c sysmonconfig.xml   # apply updated config

The driver (SysmonDrv.sys) and service (Sysmon64) install under C:\Windows. The config file is the whole game — Sysmon with no config still logs its default set — process create and terminate, driver loads, file-time changes, RawAccessRead, CreateRemoteThread — but never EID 3, 10, 11, or 22. SwiftOnSecurity's sysmon-config and Olaf Hartong's sysmon-modular are the community baselines everyone starts from; the art is exclusions, not inclusions — image-load events (EID 7) and network events (EID 3) on a busy box generate volume that drowns the pipeline if you log everything.

The wrong mental model

Two. First: "Windows logs what I need." It doesn't — without Sysmon, there is no DNS log, no per-process network log, no process-access log. The Security log's process auditing (4688) is a subset even when fully enabled. Second: "the EDR makes Sysmon redundant." EDR telemetry goes to the vendor's console and is filtered by their detection pipeline; Sysmon goes to your SIEM where you keep it, query it across the fleet, and — critically — it survives when the EDR agent is tampered with or its egress is filtered. They're complementary recorders with different failure modes.

Also worth killing: "Sysmon is free so it's cheap." The license is free; the event volume isn't. EID 3 and 7 on a terminal server will eat a Splunk license. Tuning the config — excluding known-good high-volume images — is a detection-engineering task, not a set-and-forget.

What it catches in the real world

The comsvcs.dll MiniDump trick — rundll32.exe C:\Windows\System32\comsvcs.dll, MiniDump <lsass_pid> C:\temp\lsass.dmp full — dumps LSASS with a signed Microsoft binary, no malware file needed. Security.evtx sees a benign process creation. Sysmon EID 1 shows the exact command line, EID 10 shows the process access on lsass.exe, and EID 11 shows the dump file appearing. That three-event chain is the difference between "attacker invisible" and "escalate in the next five minutes."

For triage: when an alert says "suspicious process," the Sysmon 1 record is ground truth for what ran; Sysmon 3 and 22 tell you what it reached. Pull those three first and most "suspicious process" alerts resolve in minutes.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.