Execution
Sysmon Event Log
Sysmon cheat sheet: Operational log location, key event IDs, ProcessGuid and hash correlation, config in the registry, tampering signs and parsing tools.
- Location
- C:\Windows\System32\winevt\Logs\Microsoft-Windows-Sysmon%4Operational.evtx
- Proves
- Process creation with full command line and hashes, network connections, file, registry and DNS activity, as filtered by the config
- Timestamps
- UtcTime field in each event (UTC, millisecond string) plus the EVTX TimeCreated (UTC, FILETIME precision)
- Retention
- Circular log, commonly 64 MB by default; high-volume configs can roll over in hours
- Access
- Administrator to read or export; the live .evtx is locked by the Event Log service
- Evidence of
- ExecutionNetwork & remote accessPersistence
- Type
- Event log
- Windows
- Vista / 78 / 8.11011
- KAPE target
- EventLogs
- Velociraptor
- Windows.Triage.Targets:EventLogs
Tools
Compare all tools- EVTX ParserIn browser
- EvtxECmdCLI
- ChainsawCLI · open source
- HayabusaCLI · open source
- Get-WinEventCLI · built into Windows
- VelociraptorPlatform · open source
What it is
System Monitor (Sysmon) is a free Sysinternals tool made of a service (Sysmon.exe or Sysmon64.exe) and a kernel minifilter driver (SysmonDrv, altitude 385201). It writes detailed telemetry about processes, network connections, file and registry activity into its own event log channel. It is not installed by default: finding it on a host means someone deployed it, usually the security team. Recent Windows 11 and Server 2025 builds also ship Sysmon as an optional Windows feature, but it still has to be enabled and configured.
What gets logged depends entirely on the XML configuration loaded at install time (sysmon -accepteula -i config.xml) or later (sysmon -c config.xml). Community baselines such as SwiftOnSecurity's or Olaf Hartong's sysmon-modular are common.
Location
| Item | Location |
|---|---|
| Event log | C:\Windows\System32\winevt\Logs\Microsoft-Windows-Sysmon%4Operational.evtx |
| Service binary | C:\Windows\Sysmon.exe or C:\Windows\Sysmon64.exe (name can be changed by renaming the binary) |
| Driver | C:\Windows\SysmonDrv.sys (name can be changed with -d) |
| Active config | HKLM\SYSTEM\CurrentControlSet\Services\SysmonDrv\Parameters (Rules binary blob, HashingAlgorithm, Options) |
| Deleted file archive | C:\Sysmon\ by default (ArchiveDirectory, events 23) |
Current Sysmon releases target Windows 10/11 and Server 2012 R2 or later; older releases ran on Windows 7. Check the version you find (Sysmon.exe file version or sysmon -c output).
What it proves
- Execution with context: image path, full command line, parent process, user, integrity level and file hashes (event 1). This is some of the richest evidence of execution you can get.
- Network activity per process: source and destination IP and port, plus hostname when resolved (event 3), and DNS queries per process (event 22).
- Persistence and defence evasion: registry run keys (12–14), dropped files (11), driver loads (6), process injection (8, 10, 25).
It does not prove anything the config excluded. An absent event means "not logged", not "did not happen". Check the loaded config before drawing negative conclusions.
Key fields
| Event ID | Name | Key fields |
|---|---|---|
| 1 | Process Create | Image, CommandLine, ParentImage, User, Hashes, ProcessGuid, ParentProcessGuid, LogonId |
| 2 | File creation time changed | TargetFilename, CreationUtcTime, PreviousCreationUtcTime |
| 3 | Network connection | SourceIp, DestinationIp, DestinationPort, Initiated |
| 4 | Sysmon service state changed | State (Started/Stopped) |
| 5 | Process terminated | ProcessGuid, UtcTime |
| 6 | Driver loaded | ImageLoaded, Hashes, Signed, Signature |
| 7 | Image loaded (DLL) | ImageLoaded, Signed, Signature |
| 8 | CreateRemoteThread | SourceImage, TargetImage, StartAddress |
| 10 | ProcessAccess | SourceImage, TargetImage, GrantedAccess, CallTrace |
| 11 | FileCreate | TargetFilename, CreationUtcTime |
| 12 / 13 / 14 | Registry create-delete / value set / rename | TargetObject, Details |
| 15 | FileCreateStreamHash | TargetFilename, Hash, Contents (Zone.Identifier text) |
| 16 | Sysmon config change | Configuration, ConfigurationFileHash |
| 17 / 18 | Pipe created / connected | PipeName, Image |
| 22 | DNS query | QueryName, QueryResults, Image |
| 23 / 26 | File delete archived / logged | TargetFilename, Hashes, Archived |
| 25 | Process tampering | Image, Type (image replaced, hollowing) |
| 29 | FileExecutableDetected | TargetFilename, Hashes |
| 255 | Error | ID, Description |
ProcessGuid is unique per process instance, unlike PIDs which are reused. Pivot on it to tie events 1, 3, 7, 11, 22 and 5 into one process story.
Timestamps
| Timestamp | Meaning | Pitfalls |
|---|---|---|
UtcTime (EventData) | When Sysmon observed the activity, UTC | Stored as a string with milliseconds |
TimeCreated (System) | When the record was written | Usually within milliseconds of UtcTime |
CreationUtcTime / PreviousCreationUtcTime (event 2) | New and old file creation time | Direct evidence of timestomping, noisy for installers and browsers |
Retention and clearing
- The Operational channel is circular; its default maximum is commonly 64 MB. With process, image-load or network logging enabled, busy hosts can wrap in hours. Check
wevtutil gl Microsoft-Windows-Sysmon/Operational. - Clearing this channel is recorded as event 104 in the System log, not as Security 1102.
- Tampering signs: event 4 with
State: Stopped, event 16 (new config, compareConfigurationFileHash), event 255 errors, a gap in otherwise steady event flow,fltMC.exe unload SysmonDrvin process telemetry, or service changes in the System log (7036, 7040). Uninstall (sysmon -u) removes the driver and service but the.evtxnormally survives.
Collection
The EventLogs KAPE and Velociraptor targets include this channel. Export and record the active config:
wevtutil epl Microsoft-Windows-Sysmon/Operational E:\case\Sysmon.evtx
wevtutil gl Microsoft-Windows-Sysmon/Operational
Sysmon64.exe -c
reg export HKLM\SYSTEM\CurrentControlSet\Services\SysmonDrv\Parameters E:\case\SysmonDrv.reg
Get-WinEvent -Path E:\case\Sysmon.evtx -FilterXPath "*[System[EventID=1]]" |
Select-Object TimeCreated, @{n='Cmd';e={$_.Properties[10].Value}}
Parsing tools
- EvtxECmd (Eric Zimmerman): Sysmon maps flatten EventData into CSV columns for Timeline Explorer.
- Chainsaw and Hayabusa: Sigma-based hunting, most rules are written for Sysmon fields.
- Get-WinEvent: quick XPath filtering on live hosts or exported files.
- Velociraptor: EVTX hunting artifacts across a fleet.
Investigation tips
- Start with event 1 filtered on unusual parents (
w3wp.exe,winword.exe,wmiprvse.exe) and LOLBins, then pivot onProcessGuid. - Use
Hashesto match binaries against threat intel or Amcache SHA-1 values, even after the file is deleted. LogonIdin event 1 links processes to a Security 4624 logon session.- Event 10 against
lsass.exewith suspiciousGrantedAccessvalues (for example0x1010,0x1410) is a classic credential dumping lead; confirm with the call trace. - Before relying on it, read the config: many baselines exclude noisy but relevant paths.
Related artifacts
- Windows event logs (EVTX)Windows event log cheat sheet: EVTX locations, must-know event IDs for logons, processes, services and log clearing, retention, audit policy and parsing tools.
- PowerShell logs and historyPowerShell forensics: 4103/4104 script block logs, 400/403/800 engine events, PSReadLine ConsoleHost_history.txt, transcripts and logging policy keys.
- Microsoft Defender logs and quarantineMicrosoft Defender forensics: Operational events 1116/1117/5001/5007, MPLog files, DetectionHistory, encrypted quarantine, exclusion keys and tampering traces.
- Windows ServicesWindows services cheat sheet: Services key values (ImagePath, Start, Type, ServiceDll), 7045 and 4697 install events, PsExec traces and pitfalls.
- Event Trace Logs (ETL files)ETL files cheat sheet: what ETW trace logs are, forensically useful .etl files (WDI boot traces, Wifi.etl, DiagTrack), collection, tracerpt and etl-parser.
- Prefetch Files (.pf)Windows Prefetch cheat sheet: .pf location per version, run count, the last eight run times, referenced files, retention limits and how to parse.
Glossary terms
- Windows event IDThe number identifying an event type within a given provider; it only has meaning when paired with its provider and log channel.
- Evidence of executionArtifacts that show a program actually ran on a Windows system, as opposed to merely existing on disk, and how strongly each one supports that claim.
- TimestompingAn anti-forensic technique that alters a file's timestamps to hide when it was created, modified, or accessed.
- Anti-forensicsTechniques used to destroy, hide or falsify evidence, such as log clearing, timestomping, wiping and deleting shadow copies or the USN journal.
- LOLBin (living-off-the-land binary)A legitimate, signed Windows binary that attackers abuse to download, execute or hide payloads without dropping their own tools.
Guides
- Windows Event Log Forensics: EVTX, Event IDs and HuntingA practitioner guide to Windows event logs: EVTX format, key channels, Security and Sysmon event IDs, audit policy, cleared-log recovery and hunting tools.
- Hunting Windows Persistence: Registry, Tasks, WMI and MoreFind attacker persistence on Windows: Run keys, services, scheduled tasks, WMI, Winlogon, IFEO, COM hijacking and BITS, mapped to MITRE ATT&CK, with tools.
- Detecting Windows Anti-Forensics: What Survives the CleanupDetect log clearing, timestomping, secure deletion, VSS deletion and Defender tampering on Windows, mapped to MITRE ATT&CK, with the traces each one leaves.
- Credential Access Forensics: LSASS, DCSync and KerberoastingInvestigate Windows credential theft: LSASS dumps, SAM and NTDS.dit extraction, DCSync, DPAPI, Kerberoasting and AS-REP roasting, with event IDs and ATT&CK.