· by · 9 min read

4688 or Sysmon 1: what your detections lose without Sysmon


whoami.exe, started by powershell.exe. In the Security log, Event 4688 stops right there. In Sysmon, the same launch also tells you that this powershell.exe was running with -noP -sta -w 1 -enc SQBGACgAJABQAFMAVgBl…, the calling card of an Empire agent. An alert on one side, a boring line on the other.

“Do we need Sysmon if we already collect 4688 with command lines?” comes up in every Windows logging project. It usually gets an answer based on principle. I wanted one based on numbers, from real logs and from the rules people actually deploy. My opinion is at the end, and it isn’t neutral.

Scope first. If you run Microsoft Defender for Endpoint, DeviceProcessEvents already gives you the parent’s command line (InitiatingProcessCommandLine) and file hashes. This post is for SOCs that detect on Windows event logs shipped to a SIEM, which is still a very common setup.

What the documentation says

Both events describe the same thing, a process being created, with different fields. Putting Microsoft’s documentation for Event 4688 next to Sysmon’s:

Matrix comparing Security 4688 and Sysmon 1 across nine items. Both give the image, command line and parent image, though 4688 only gives the command line when the Include command line GPO is on. Only Sysmon gives the parent command line, hashes and OriginalFileName, and a unique ProcessGuid. Only 4688 gives the UAC elevation type and consistently separates creator account from process account. 4688 is built in and all or nothing; Sysmon has to be deployed and is filtered by rules.
Nine items, two sources. Neither wins every row. Diagram: PurpleLog, based on Microsoft documentation.

Three rows deserve a closer look.

The parent’s command line. Sysmon writes it into every Event 1 (ParentCommandLine). 4688 only gives the parent’s path (ParentProcessName) and its PID (ProcessId, which the docs call “Creator Process ID”). To get the parent’s command line, you have to find the 4688 that created the parent, by PID, on the same host.

The identifier. Sysmon adds a ProcessGuid, “a unique value for this process across a domain” per the docs. 4688 only has the PID, and Windows recycles PIDs.

File metadata. Hashes, OriginalFileName, Description, Product, Company: everything that lets you recognize a renamed binary comes from Sysmon. 4688 only knows the path.

On real logs

I went back to the 52 OTRF Security-Datasets captures (MIT-licensed) already used on this blog. The lab machines had both sources enabled, with command lines in 4688. That’s 408 Event 4688 records and 506 Sysmon Event 1 records.

Comparison summary over 52 OTRF datasets. 408 Event 4688 and 506 Sysmon 1 records. The parent command line is present in 506 of 506 Sysmon 1 events. Only 104 of 408 Event 4688 records have a parent whose own 4688 is in the dataset. 36 Sysmon 1 events have powershell.exe as parent, 28 of them with an -enc parent; 4688 also has 36, but the join recovers the -enc parent for only 10. 25 Event 4688 records show a UAC elevation, 87 a creator account different from the process account. 216 of 506 Sysmon 1 events lack a ProcessId field in the collected data.
The number that matters: 10 out of 36. Real output, capture: PurpleLog, OTRF Security-Datasets data.

The third line is the one that got me. Out of 408 Event 4688 records, only 104 have a parent whose creation is also in the dataset. The other parents started before recording began: svchost.exe (161 times), services.exe (62), but also powershell.exe (22) and GruntHTTP.exe (6). In other words, the attackers’ agents.

OTRF datasets are short, a few minutes each, so that number is on the pessimistic side. The situation it describes is very real, though. An implant that’s been running for three weeks was created long before your query window, sometimes before your SIEM’s retention period. Its command line is gone from your 4688 data. In Sysmon, it gets copied into every process it spawns. Concretely, for the 36 processes started by powershell.exe: with Sysmon, 28 carry their parent’s -enc command line right there in the event. With 4688 and a PID join, I could only recover it for 10.

What 4688 does better

Stopping there would be unfair. Two pieces of 4688 have no direct equivalent in Sysmon Event 1.

Elevation type. TokenElevationType is %%1937 when the user started the program with “Run as administrator”, according to the docs. The corpus has 25 of those. Sysmon gives you the integrity level (IntegrityLevel: High), which can’t tell an admin account with UAC turned off from an explicit elevation. Microsoft’s own monitoring guidance suggests watching for %%1937 on standard workstations when the account is a real user.

Creator versus target. Since Windows 10, 4688 separates the account that asked for the process (Creator Subject) from the account the process runs as (Target Subject), when they differ. The corpus has 87 of those. A real example: WORKSTATION6$ creates whoami.exe for account pgustavo, with WmiPrvSE.exe as the parent. That’s what remote WMI execution looks like. Sysmon gives User, and ParentUser only in more recent schema versions; 39 of the 506 events in the corpus have it.

And a practical advantage that matters more than it sounds: 4688 is built in. No driver to deploy, no config to maintain, no service that an attacker with admin rights can unload.

On the rule side: 76 blind, 622 degraded

Logs are only half the story. The other half is the rules. Most SigmaHQ process_creation rules are written to work with both 4688 and Sysmon, provided your SIEM maps NewProcessName to Image and ParentProcessName to ParentImage. Some, though, rely on fields only Sysmon fills in.

To measure it, I parsed SigmaHQ’s 1,190 Windows process_creation rules (repository pulled on October 16, 2026) with pySigma. For each rule, I treated every criterion on a Sysmon-only field as always false, then checked whether the condition could still evaluate to true.

Output of sigma_4688.py. Of 1,190 Windows process_creation rules, 492 use no Sysmon-only field, 622 are degraded but keep a working path, 76 are blind with 4688 alone. The most used Sysmon-only fields are OriginalFileName (586 rules), Description (70), ParentCommandLine (58), Product (47), Hashes (39), Company (19), CurrentDirectory (8) and ParentUser (3).
More than half the rules lose something without Sysmon. Real output, capture: PurpleLog, SigmaHQ rules.

The “degraded” count comes almost entirely from one very common SigmaHQ pattern:

selection_img:
    - Image|endswith: '\certutil.exe'
    - OriginalFileName: 'CertUtil.exe'

With 4688, the first line still works. What you lose is resistance to renaming: copy certutil.exe to notepad2.exe and the rule goes blind. The 76 blind rules are mostly the ones where that field was the whole point: 25 of the 34 proc_creation_win_renamed_* rules, plus tool detections based on imphash or PE metadata. Others depend on the parent’s command line, like proc_creation_win_msiexec_embedding, which looks for cmd.exe or powershell.exe launched by MsiExec.exe -Embedding.

One genuinely surprised me. proc_creation_win_powershell_decrypt_pattern puts Image|endswith and OriginalFileName in the same selection map, which makes them an AND rather than an OR. With 4688 alone, OriginalFileName doesn’t exist, so the rule can never fire. Even with Sysmon, it misses a renamed powershell.exe, the exact opposite of what that pattern is for. You only catch this sort of thing by running rules against a specific hypothesis.

A caveat on method: the analysis treats each criterion independently, so it may overstate what’s still reachable. Take 76 as a floor.

Recovering the parent with a join

If 4688 is all you have, a join on the creator PID is the only way to get the parent’s command line back. In KQL, against SecurityEvent:

// 4688: recover the parent's command line through the creator PID
let lookback = 1d;
let creations = SecurityEvent
    | where TimeGenerated > ago(lookback)
    | where EventID == 4688
    | project TimeGenerated, Computer, NewProcessId, ProcessId, NewProcessName, CommandLine;
creations
| join kind=inner (
    creations
    | project Computer, ParentPid = NewProcessId, ParentStart = TimeGenerated, ParentCommandLine = CommandLine
    ) on Computer, $left.ProcessId == $right.ParentPid
| where ParentStart <= TimeGenerated
// Windows recycles PIDs: keep the most recent parent creation before the child
| summarize arg_max(ParentStart, ParentCommandLine) by TimeGenerated, Computer, NewProcessId, NewProcessName, CommandLine

It passes Microsoft’s official KQL parser against the documented SecurityEvent schema; I haven’t run it on a real workspace. The OTRF corpus shows its two limits nicely. It finds nothing when the parent started before the window, and widening the window gets expensive fast since the join runs over every 4688. And PID reuse can mislead it on a host with long uptime; arg_max reduces that risk without removing it.

One more thing: is your data complete?

While putting this together, I hit a problem I wasn’t looking for. In 216 of the corpus’s 506 Sysmon Event 1 records, the ProcessId field is simply missing from the collected JSON, even though Sysmon always writes it. And in 17 of the 408 Event 4688 records, the creator PID field is called ProcessID and holds 4: that’s the value of Execution ProcessID in the event’s System section (the System process PID, as in Microsoft’s sample XML). It looks a lot like a collision between two fields whose names differ only by case, somewhere in the lab’s collection pipeline. I can’t prove it, and for a research dataset it doesn’t really matter. A rule or a join that depends on those fields would be blind there without knowing it, though.

The same goes for your SIEM. Before comparing two sources, check that the fields you need actually arrive, from every host. A query counting empty values per field and per source, once a month, takes ten minutes.

Where I land

If I could only keep one for detection on Windows endpoints and servers, I’d keep Sysmon Event 1. Having the parent’s command line in every event, plus OriginalFileName, changes the quality of what you can write, and the numbers above show it: 10 parents recovered out of 36 on one side, 28 read straight off the event on the other, and 76 SigmaHQ rules that can’t work without it.

But I wouldn’t choose. 4688 with command lines costs you one GPO, gives you UAC elevation and the creator/target split, and keeps working on the day an attacker unloads the Sysmon driver. Both together is how the OTRF lab machines were set up, and it’s what I’d recommend. On domain controllers, where installing a third-party driver sometimes gets vetoed, 4688 alone is far better than nothing. As long as you know, rule by rule, what you’ve given up.

References

How I check the rules and queries published here →