Workflow Tools Control Yard

Home / Logs

Sysmon event ID lookup

Type a Sysmon event ID, a name such as NetworkConnect or a word such as dns, or paste an event: its text as Event Viewer shows it, or its XML from the Details tab. The page says what the event records, which filter tag selects it in a Sysmon configuration and what each field holds. It reads only what you give it.

Sysmon events

Sysmon writes its events to the log Applications and Services Logs, Microsoft, Windows, Sysmon, Operational; its name for queries is Microsoft-Windows-Sysmon/Operational, and the events come from the provider Microsoft-Windows-Sysmon. The times in the events are in UTC. Event Viewer shows the filter tag in the task name, as in Process Create (rule: ProcessCreate).

The fields are those of the newest schema (4.90) in the event manifest that Microsoft publishes for both the Windows and the Linux versions of Sysmon. Events 27 to 29 are not in that manifest; sysmon64 -s prints the schema of the version you have installed, fields and types included. Event 1 has its hashes in the field Hashes, with the algorithms that the configuration names in HashAlgorithms (SHA1, MD5, SHA256, IMPHASH, or * for all).

IDEventFilter tagWhat it recordsFields
1Process creationProcessCreateA process started. The event has its full command line and its parent's, the hashes of its image file, and a ProcessGuid that is unique to this process across a domain, which the other events use to point at it.RuleName, UtcTime, ProcessGuid, ProcessId, Image, FileVersion, Description, Product, Company, OriginalFileName, CommandLine, CurrentDirectory, User, LogonGuid, LogonId, TerminalSessionId, IntegrityLevel, Hashes, ParentProcessGuid, ParentProcessId, ParentImage, ParentCommandLine, ParentUser
2A process changed a file creation timeFileCreateTimeA process set the creation time of a file. Attackers do it to make a file look as old as the system, but many programs do it for ordinary reasons.RuleName, UtcTime, ProcessGuid, ProcessId, Image, TargetFilename, CreationUtcTime, PreviousCreationUtcTime, User
3Network connectionNetworkConnectA TCP or UDP connection, tied to its process by ProcessId and ProcessGuid, with the source and destination addresses, host names and ports. Off by default.RuleName, UtcTime, ProcessGuid, ProcessId, Image, User, Protocol, Initiated, SourceIsIpv6, SourceIp, SourceHostname, SourcePort, SourcePortName, DestinationIsIpv6, DestinationIp, DestinationHostname, DestinationPort, DestinationPortName
4Sysmon service state changedNoneThe Sysmon service started or stopped. It cannot be filtered.UtcTime, State, Version, SchemaVersion
5Process terminatedProcessTerminateA process ended.RuleName, UtcTime, ProcessGuid, ProcessId, Image, User
6Driver loadedDriverLoadA driver was loaded, with its hashes and signature. Sysmon works out the signature separately, for speed, and says if the file was removed after loading.RuleName, UtcTime, ImageLoaded, Hashes, Signed, Signature, SignatureStatus
7Image loadedImageLoadA module was loaded into a process, with its hashes and signature. Off by default; logging every load makes a great many events, so filter it.RuleName, UtcTime, ProcessGuid, ProcessId, Image, ImageLoaded, FileVersion, Description, Product, Company, OriginalFileName, Hashes, Signed, Signature, SignatureStatus, User
8CreateRemoteThreadCreateRemoteThreadA process started a thread in another process, a way that malware runs its code inside other processes. The event names both processes and where the thread starts; StartModule and StartFunction are worked out by Sysmon and can be empty.RuleName, UtcTime, SourceProcessGuid, SourceProcessId, SourceImage, TargetProcessGuid, TargetProcessId, TargetImage, NewThreadId, StartAddress, StartModule, StartFunction, SourceUser, TargetUser
9RawAccessReadRawAccessReadA process read a drive directly through \\.\, which malware uses to copy files that are locked and to get past file auditing.RuleName, UtcTime, ProcessGuid, ProcessId, Image, Device, User
10ProcessAccessProcessAccessA process opened another process, as tools that read the memory of lsass.exe for credentials do. Diagnostic tools do it all the time, so turn it on with filters that leave out the expected cases.RuleName, UtcTime, SourceProcessGUID, SourceProcessId, SourceThreadId, SourceImage, TargetProcessGUID, TargetProcessId, TargetImage, GrantedAccess, CallTrace, SourceUser, TargetUser
11FileCreateFileCreateA file was created or overwritten. Useful for autostart locations such as the Startup folder, and for temporary and download folders.RuleName, UtcTime, ProcessGuid, ProcessId, Image, TargetFilename, CreationUtcTime, User
12RegistryEvent (Object create and delete)RegistryEventA registry key or value was created or deleted. Sysmon writes the root keys short: HKLM, HKU, HKCR and HKLM\System\CurrentControlSet.RuleName, EventType, UtcTime, ProcessGuid, ProcessId, Image, TargetObject, User
13RegistryEvent (Value Set)RegistryEventA registry value was set. For DWORD and QWORD values the event has the value written.RuleName, EventType, UtcTime, ProcessGuid, ProcessId, Image, TargetObject, Details, User
14RegistryEvent (Key and Value Rename)RegistryEventA registry key or value was renamed. The event has the new name.RuleName, EventType, UtcTime, ProcessGuid, ProcessId, Image, TargetObject, NewName, User
15FileCreateStreamHashFileCreateStreamHashA named stream of a file was created, such as the Zone.Identifier stream (the mark of the web) that a browser adds to a download. The event has hashes of the file's contents and of the stream.RuleName, UtcTime, ProcessGuid, ProcessId, Image, TargetFilename, CreationUtcTime, Hash, Contents, User
16ServiceConfigurationChangeNoneThe Sysmon configuration changed, for example its filters. It cannot be filtered.UtcTime, Configuration, ConfigurationFileHash
17PipeEvent (Pipe Created)PipeEventA named pipe was created.RuleName, EventType, UtcTime, ProcessGuid, ProcessId, PipeName, Image, User
18PipeEvent (Pipe Connected)PipeEventA client connected to a named pipe.RuleName, EventType, UtcTime, ProcessGuid, ProcessId, PipeName, Image, User
19WmiEvent (WmiEventFilter activity detected)WmiEventA WMI event filter was registered, one of the ways malware gets itself run. The event has the namespace, the filter's name and its query.RuleName, EventType, UtcTime, Operation, User, EventNamespace, Name, Query
20WmiEvent (WmiEventConsumer activity detected)WmiEventA WMI consumer was registered: its name, log and destination.RuleName, EventType, UtcTime, Operation, User, Name, Type, Destination
21WmiEvent (WmiEventConsumerToFilter activity detected)WmiEventA WMI consumer was bound to a filter: the consumer's name and the filter's path.RuleName, EventType, UtcTime, Operation, User, Consumer, Filter
22DNSEvent (DNS query)DnsQueryA process made a DNS query, answered or not, from the cache or not. Windows 8.1 and later.RuleName, UtcTime, ProcessGuid, ProcessId, QueryName, QueryStatus, QueryResults, Image, User
23FileDelete (File Delete archived)FileDeleteA file was deleted, and Sysmon kept a copy in its archive folder (C:\Sysmon unless set otherwise), which can grow large. Event 26 logs deletions without keeping copies.RuleName, UtcTime, ProcessGuid, ProcessId, User, Image, TargetFilename, Hashes, IsExecutable, Archived
24ClipboardChange (New content in the clipboard)ClipboardChangeThe contents of the clipboard changed.RuleName, UtcTime, ProcessGuid, ProcessId, Image, Session, ClientInfo, Hashes, Archived, User
25ProcessTampering (Process image change)ProcessTamperingSysmon found a process whose image was changed, a sign of hiding techniques such as hollowing.RuleName, UtcTime, ProcessGuid, ProcessId, Image, Type, User
26FileDeleteDetected (File Delete logged)FileDeleteDetectedA file was deleted. Only logged: no copy is kept.RuleName, UtcTime, ProcessGuid, ProcessId, User, Image, TargetFilename, Hashes, IsExecutable
27FileBlockExecutableFileBlockExecutableSysmon blocked the creation of an executable file (PE format).Not in the shared manifest
28FileBlockShreddingFileBlockShreddingSysmon blocked a tool such as SDelete from shredding a file.Not in the shared manifest
29FileExecutableDetectedFileExecutableDetectedSysmon saw a new executable file (PE format) being created.Not in the shared manifest
255ErrorNoneSysmon had an error: the system was too busy for some task, a bug in the service, or a security or integrity condition that was not met.UtcTime, ID, Description

Filters in a Sysmon configuration

A configuration file (installed with sysmon64 -i config.xml, changed with sysmon64 -c config.xml) has one filter tag per event under EventFiltering, such as <NetworkConnect onmatch="include">. With onmatch="include" only the events that match a rule are logged; with onmatch="exclude" all events are logged except those that match. A tag can have both an include and an exclude set, and exclude wins. Inside a set, rules on the same field are joined with OR and rules on different fields with AND. Each rule names a field of the event and can name a condition:

ConditionMatches when
isThe field equals the value. The default when a rule names no condition.
is anyThe field equals one of the values, separated by ;.
is notThe field differs from the value.
containsThe value is somewhere in the field.
contains anyOne of the values (separated by ;) is in the field.
contains allAll of the values (separated by ;) are in the field.
excludesThe value is not in the field.
excludes anyAt least one of the values (separated by ;) is not in the field.
excludes allNone of the values (separated by ;) is in the field.
begin withThe field starts with the value.
end withThe field ends with the value.
not begin withThe field does not start with the value.
not end withThe field does not end with the value.
less thanThe field sorts before the value (compared as text).
more thanThe field sorts after the value (compared as text).
imageMatches an image path, written in full or as the file name alone: lsass.exe matches c:\windows\system32\lsass.exe.

Conditions do not care about upper and lower case. Events 4 and 16 have no filter tag and are always logged.

Reading the log

The last 50 network connections, in PowerShell:

Get-WinEvent -LogName Microsoft-Windows-Sysmon/Operational -FilterXPath "*[System[EventID=3]]" -MaxEvents 50

The event log query builder writes such commands, and the XML for a custom view in Event Viewer, for any event IDs and time span.

Sources

More Logs tools