Free Reference

Windows Event ID Reference

The Windows events that matter in an investigation, with the log each is written to, the audit setting it needs, what it records and what to look for, plus the audit baseline, a map from attack technique to events, and Get-WinEvent and KQL to find them. Filter by ID or keyword, or jump to a section.

211 Windows event IDs for investigation and detection, from the Security log, the System log, the Operational channels for Task Scheduler, Remote Desktop, WinRM, WMI, BITS, the firewall, AppLocker and App Control, and from Sysmon, PowerShell and Microsoft Defender Antivirus. Each entry gives the log or channel it is written to, what has to be switched on for it to exist, what it records and what to look for. Every event name, log and audit subcategory is checked against Microsoft's documentation or the event manifests Windows ships.

An event you did not audit does not exist. Most Security events need an Advanced Audit Policy subcategory switched on, shown on each entry. Process command lines, script blocks and Sysmon need their own settings. Check auditpol /get /category:* on a host before concluding that something did not happen.

Before you read the events

Which log is which

Windows writes to a handful of classic logs and to hundreds of per-component channels under Applications and Services Logs. Where an event lives decides who can read it, how long it is kept and whether your collection picks it up.

Log or channelWhat writes to itNeeds
SecurityThe audit subsystem (LSASS): logons, Kerberos, accounts, processes, objects, policy changesAdvanced Audit Policy subcategories, and SACLs for object access
SystemWindows components and drivers: Service Control Manager, the kernel, the event log serviceNothing; it is on by default
ApplicationApplications and some Windows servicesNothing; on by default
Applications and Services Logs (Operational channels)One channel per component: Task Scheduler, Remote Desktop, WinRM, WMI, BITS, the firewall, AppLocker, Code Integrity, PowerShell, Defender, SysmonMost are on by default. Some (PrintService, DNS Client) are off until you enable them
Windows PowerShellThe Windows PowerShell 5.1 engine: engine start (400) and module logging (800)Module logging policy for 800

Audit policy: the baseline this page needs

Advanced Audit Policy splits auditing into more than 40 subcategories. The table lists every subcategory an event on this page depends on, built from the entries below, with a starting setting. Success and Failure is suggested where failures are themselves evidence (logons, Kerberos, account changes); Success alone where failures are rare or noisy. Object access subcategories also need SACLs on the objects you care about, and Directory Service Changes needs SACLs in Active Directory.

CategorySubcategoryEvents on this pageTurn on
Account LogonCredential Validation4776Success and Failure
Account LogonKerberos Authentication Service4768, 4771Success and Failure
Account LogonKerberos Service Ticket Operations4769, 4770, 4773Success and Failure
Account ManagementComputer Account Management4741, 4742, 4743Success and Failure
Account ManagementOther Account Management Events4782Success
Account ManagementSecurity Group Management4728, 4731, 4732, 4733, 4735, 4756, 4799Success and Failure
Account ManagementUser Account Management4720, 4722, 4723, 4724, 4725, 4726, 4738, 4740, 4765, 4766, 4767, 4780, 4781, 4794, 4798, 5376, 5377Success and Failure
DS AccessDirectory Service Access4661, 4662Success and Failure
DS AccessDirectory Service Changes5136, 5137, 5139, 5141Success and Failure
Detailed TrackingDPAPI Activity4692, 4693Success
Detailed TrackingPNP Activity6416Success
Detailed TrackingProcess Creation4688Success and Failure
Detailed TrackingProcess Termination4689Success
Logon/LogoffAccount Lockout4625Success and Failure
Logon/LogoffLogoff4634, 4647Success
Logon/LogoffLogon4624, 4625, 4648, 4675Success and Failure
Logon/LogoffOther Logon/Logoff Events4649, 4778, 4779, 4800, 4801, 4802, 4803Success
Logon/LogoffSpecial Logon4672, 4964Success
Object AccessCertification Services4886, 4887, 4888, 4898, 4899, 4900Success and Failure
Object AccessDetailed File Share5145Success and Failure
Object AccessFile Share5140, 5142, 5143, 5144Success and Failure
Object AccessFile System4656, 4658, 4660, 4663, 4670Success
Object AccessFiltering Platform Connection5156, 5157Success
Object AccessHandle Manipulation4658Success
Object AccessKernel Object4656, 4658, 4660, 4663Success
Object AccessOther Object Access Events4698, 4699, 4702Success
Object AccessRegistry4656, 4657, 4658, 4660, 4663, 4670Success
Object AccessRemovable Storage4656, 4663Success
Object AccessSAM4661Success
Policy ChangeAuthentication Policy Change4670, 4706, 4707, 4713, 4716, 4717, 4718, 4739Success
Policy ChangeMPSSVC Rule-Level Policy Change4946, 4947, 4948, 4949, 4950Success
Policy ChangeOther Policy Change Events4826Success
Policy ChangePolicy Change4715, 4719, 4904, 4905, 4906, 4907, 4912Success
Privilege UseNon Sensitive Privilege Use4673, 4674Success
Privilege UseSensitive Privilege Use4673, 4674Success and Failure
SystemSecurity State Change4608, 4616Success
SystemSecurity System Extension4697Success and Failure
SystemSystem Integrity5038Success and Failure

Set it in Group Policy under Advanced Audit Policy Configuration, or test on one machine with auditpol:

:: What is actually audited on this machine, every subcategory (run elevated) auditpol /get /category:* :: Turn subcategories on by name auditpol /set /subcategory:"Process Creation" /success:enable /failure:enable auditpol /set /subcategory:"Kerberos Service Ticket Operations" /success:enable /failure:enable auditpol /set /subcategory:"Directory Service Changes" /success:enable
Legacy and advanced policy fight. The nine legacy categories under Local Policies, Audit Policy and the advanced subcategories conflict when both are set. Microsoft's guidance is to leave "Audit: Force audit policy subcategory settings (Windows Vista or later) to override audit policy category settings" enabled, which sets SCENoApplyLegacyAuditPolicy, and to manage auditing only through subcategories. Process command lines in 4688 need one more setting, "Include command line in process creation events", which is disabled by default.

Collection and log size

An event that rolled off the end of a full log is as gone as one never written. Size the logs for days of activity, not hours, and forward them. Windows Event Forwarding sends events to a collector with no agent; Microsoft's own guidance describes a Baseline subscription for every device and a Suspect subscription that collects more from the devices you add to it, and notes that the local log's maximum size is the buffer when the collector cannot be reached. An agent (Azure Monitor Agent for Sentinel, or your SIEM's) does the same job with more filtering.

:: Size, retention and enabled state of a log wevtutil gl Security :: Raise the Security log to 1 GB: /ms takes bytes wevtutil sl Security /ms:1073741824 :: Turn on a channel that is off by default, then confirm wevtutil sl Microsoft-Windows-PrintService/Operational /e:true wevtutil gl Microsoft-Windows-PrintService/Operational

Kerberos result codes in 4768 and 4771

The Result Code field on a failed Kerberos request, from Microsoft's description of 4768. 4768 also carries a Pre-Authentication Type; a value of 0 means the ticket was issued without pre-authentication.

CodeNameMeaning
0x6KDC_ERR_C_PRINCIPAL_UNKNOWNThe account name does not exist
0x12KDC_ERR_CLIENT_REVOKEDAccount disabled, expired or locked out
0x17KDC_ERR_KEY_EXPIREDThe password has expired
0x18KDC_ERR_PREAUTH_FAILEDWrong password (logged as 4771)
0x19KDC_ERR_PREAUTH_REQUIREDPre-authentication required
0xEKDC_ERR_ETYPE_NOTSUPPNo supported encryption type
0x25KRB_AP_ERR_SKEWClock skew too great

Logon and logoff 15

Logon types, from Microsoft's description of 4624:

TypeNameWhat produces it
2InteractiveAt the keyboard
3NetworkSMB, mapped drives, most remote administration
4BatchScheduled tasks
5ServiceA service starting
7UnlockWorkstation unlocked
8NetworkCleartextPassword sent to the authentication package unhashed, such as IIS basic authentication
9NewCredentialsrunas /netonly: new credentials for outbound connections only
10RemoteInteractiveRemote Desktop
11CachedInteractiveLogon with cached credentials, no domain controller contacted

4625 Status and Sub Status codes:

CodeMeaning
0xC0000064The account name does not exist
0xC000006AWrong password
0xC000006DBad user name or authentication information
0xC000006FOutside permitted logon hours
0xC0000070From a workstation the account may not use
0xC0000072Account disabled
0xC0000193Account expired
0xC0000234Account locked out
0xC000015BLogon type not granted on this machine
4624An account was successfully logged on
SecurityAudit Logon

Records. A logon session was created on the machine that logged it. The Logon Type says how (table below), and the event carries the account, the workstation name and source network address, the logon process and authentication package, and a Logon ID that later events on the same host share.

Look for. Type 10 from an address that never uses RDP, and one account producing Type 3 logons across many hosts in a short window. Type 9 (NewCredentials) comes from runas /netonly and from tools that start a process with other credentials, so read the process that created it. Follow the Logon ID to the processes the session started.

4625An account failed to log on
SecurityAudit Logon or Audit Account Lockout

Records. A logon attempt failed. Status and Sub Status give the reason (table below); the event carries the target account, the logon type and the source address.

Look for. Many 0xC000006A failures for one account from one address is guessing a password; one or two failures each across many accounts from one address is a spray. A run of 0xC0000064 is someone trying names that do not exist. The finding that matters is a 4624 from the same address afterward.

4634An account was logged off
SecurityAudit Logoff

Records. A logon session ended and no longer exists. It shares the Logon ID of the 4624 that opened it.

Look for. Pair it with its 4624 by Logon ID to get the session's length. Network sessions often end without one.

4647User initiated logoff
SecurityAudit Logoff

Records. A logoff was started by the account itself. Microsoft notes it is typical of Interactive and RemoteInteractive sessions, where it often appears in place of 4634.

Look for. For an RDP or console session, 4647 is the end you will usually find.

4648A logon was attempted using explicit credentials
SecurityAudit Logon

Records. A process tried to log on by naming an account's credentials: RUNAS, scheduled tasks and routine operating system activity all produce it. It is logged on the machine where the process ran, with the target server name.

Look for. A user's process naming an administrator account against another server: that is how credential reuse looks from the machine it starts on. Read the process name and the target server together.

4672Special privileges assigned to new logon
SecurityAudit Special Logon

Records. A new logon was given one or more sensitive privileges, such as SeDebugPrivilege, SeBackupPrivilege or SeTcbPrivilege. SYSTEM and service logons produce it constantly.

Look for. Filter out the machine and service accounts, then look for user accounts you did not expect to hold these rights.

4778A session was reconnected to a Window Station
SecurityAudit Other Logon/Logoff Events

Records. A user reconnected to an existing Remote Desktop session, or switched to one with Fast User Switching. It carries the client name and address.

Look for. An RDP session picked up from a new client address, which a 4624 Type 10 alone will not show because no new logon happens.

4779A session was disconnected from a Window Station
SecurityAudit Other Logon/Logoff Events

Records. A Remote Desktop session was disconnected without being logged off.

Look for. Pairs with 4778 to bound RDP activity that never produced a new logon.

4964Special groups have been assigned to a new logon
SecurityAudit Special Logon

Records. A member of a group you have defined as special logged on. It only fires once you list the groups to watch.

Look for. Define your administrator groups and you get a logon event for exactly the accounts that matter.

4649A replay attack was detected
SecurityAudit Other Logon/Logoff Events

Records. A domain controller or server saw a Kerberos request that repeated one it had already processed. Microsoft notes that misconfigured networks can produce it as well as real replay attempts.

Look for. Rare enough that each one is worth a look. Read the account and the workstation, then check the time sync between that client and the server.

4675SIDs were filtered
SecurityAudit Logon

Records. SIDs from a trusted domain were removed from a logon by SID filtering at a trust boundary.

Look for. An account crossing a trust carrying SIDs that the trust is set to reject, which is what a forged SID History looks like from the trusting side.

4800The workstation was locked
SecurityAudit Other Logon/Logoff Events

Records. The workstation was locked, with the account and its Logon ID.

Look for. With 4801, the hours someone was actually at the machine. Useful against an alibi or a claim that an account was in use.

4801The workstation was unlocked
SecurityAudit Other Logon/Logoff Events

Records. The workstation was unlocked. An unlock also produces a 4624 with Logon Type 7.

Look for. An unlock at an hour the user was not working, or on a machine they do not use.

4802The screen saver was invoked
SecurityAudit Other Logon/Logoff Events

Records. The screen saver started for a session.

Look for. Another marker of when a session sat idle.

4803The screen saver was dismissed
SecurityAudit Other Logon/Logoff Events

Records. The screen saver was dismissed for a session.

Look for. The end of an idle period: someone came back to the machine.

Credential validation and Kerberos 6

Ticket encryption types in 4768 and 4769:

ValueSuite
0x11AES128-CTS-HMAC-SHA1-96
0x12AES256-CTS-HMAC-SHA1-96
0x17RC4-HMAC
4776The computer attempted to validate the credentials for an account
SecurityAudit Credential Validation

Records. An NTLM credential check. It is logged on the machine that holds the account: a domain controller for domain accounts, the local machine for local ones. It names the source workstation and an error code.

Look for. NTLM failures against many accounts from one workstation, and successful NTLM where your estate should be using Kerberos.

4768A Kerberos authentication ticket (TGT) was requested
SecurityAudit Kerberos Authentication Service

Records. A domain controller issued, or refused, a ticket-granting ticket. It carries the account, client address, result code and encryption types. Failures with codes 0x10 and 0x18 are logged as 4771 instead.

Look for. A TGT for an account that does not require pre-authentication is what AS-REP roasting asks for. RC4 (0x17) where your domain uses AES is worth explaining.

4769A Kerberos service ticket was requested
SecurityAudit Kerberos Service Ticket Operations

Records. A domain controller issued, or refused, a service ticket. It carries the requesting account, the service name, the client address and the ticket encryption type. Failure code 0x20 is an expired ticket and is routine.

Look for. One account asking for tickets to many user-account services with RC4 (0x17) encryption in a short window is the shape of Kerberoasting. Service names ending in $ are computer accounts and are normally AES.

4771Kerberos pre-authentication failed
SecurityAudit Kerberos Authentication Service

Records. A domain controller refused a TGT at pre-authentication. Code 0x18 is a wrong password; 0x17 is an expired one.

Look for. The Kerberos side of a password spray: many accounts, one or two 0x18 failures each, one client address.

4770A Kerberos service ticket was renewed
SecurityAudit Kerberos Service Ticket Operations

Records. A domain controller renewed a service ticket, with the account, the service and the client address.

Look for. Renewals that keep a service ticket alive far longer than the work that needed it.

4773A Kerberos service ticket request failed
SecurityAudit Kerberos Service Ticket Operations

Records. A service ticket request failed. Microsoft notes that failed requests are normally logged as 4769 failures instead, so this one is seldom seen.

Look for. If it appears, read it as a 4769 failure.

Accounts and groups 28

4720A user account was created
SecurityAudit User Account Management

Records. A user object was created. It is logged on domain controllers for domain accounts and on member servers and workstations for local accounts, with who created it.

Look for. Accounts created during the window of a compromise, and local accounts created on servers at all.

4722A user account was enabled
SecurityAudit User Account Management

Records. A user or computer object was enabled.

Look for. An account you disabled during containment coming back. Find who enabled it.

4724An attempt was made to reset an account's password
SecurityAudit User Account Management

Records. One account tried to reset another account's password. For domain accounts a failure is logged only when the new password breaks policy; an access-denied reset logs nothing.

Look for. Resets of privileged accounts by anyone outside your identity team.

4726A user account was deleted
SecurityAudit User Account Management

Records. A user object was deleted.

Look for. An account created and deleted inside a short window is someone cleaning up.

4738A user account was changed
SecurityAudit User Account Management

Records. A user object changed. Each change is its own event, and attributes that changed appear with their new values.

Look for. User Account Control changes such as "Don't require preauth" or "Password not required", and a changed SID History.

4740A user account was locked out
SecurityAudit User Account Management

Records. An account was locked out. The Caller Computer Name is the machine the failing attempts came from.

Look for. Several accounts locked from one caller is a spray that tripped the threshold. Pull that machine's 4625 or 4771.

4728A member was added to a security-enabled global group
SecurityAudit Security Group Management

Records. A member was added to a domain global security group. Domain groups only; the event carries the group, the member and who added it.

Look for. Any addition to Domain Admins or another privileged group that has no change behind it.

4732A member was added to a security-enabled local group
SecurityAudit Security Group Management

Records. A member was added to a security-enabled local group, one event per member added.

Look for. Additions to the local Administrators group on servers, and to Remote Desktop Users.

4756A member was added to a security-enabled universal group
SecurityAudit Security Group Management

Records. A member was added to a domain universal security group. Enterprise Admins and Schema Admins are universal groups.

Look for. Additions to Enterprise Admins or Schema Admins, which should almost never happen.

4723An attempt was made to change an account's password
SecurityAudit User Account Management

Records. An account tried to change its own password, as opposed to 4724, where one account resets another's.

Look for. A password changed right after a suspicious logon: the attacker locking the owner out.

4725A user account was disabled
SecurityAudit User Account Management

Records. A user account was disabled, with who disabled it.

Look for. Administrator or security tooling accounts disabled outside a change: an attacker removing the people who could stop them.

4767A user account was unlocked
SecurityAudit User Account Management

Records. A locked-out account was unlocked, with who unlocked it.

Look for. Lockouts that are unlocked again and again during a spray, so the guessing can continue.

4781The name of an account was changed
SecurityAudit User Account Management

Records. An account's SAM account name changed, with the old and new names.

Look for. A computer account renamed to look like a domain controller is part of the noPac attack path. Any rename of a privileged account deserves a reason.

4765SID History was added to an account
SecurityAudit User Account Management

Records. A SID was added to an account's SID History attribute, which grants the access that SID has.

Look for. Outside a domain migration, any occurrence. A privileged SID in a normal user's SID History is a backdoor.

4766An attempt to add SID History to an account failed
SecurityAudit User Account Management

Records. An attempt to add SID History failed.

Look for. Someone tried. Find who and from where.

4794An attempt was made to set the Directory Services Restore Mode administrator password
SecurityAudit User Account Management

Records. Someone tried to set the DSRM administrator password on a domain controller.

Look for. Outside a recovery or a planned change, an attacker giving themselves a local administrator account on the domain controller.

4798A user's local group membership was enumerated
SecurityAudit User Account Management

Records. A process listed the local groups an account belongs to, with the process name.

Look for. Enumeration from a process that is not an administrative tool you use, across many hosts: reconnaissance.

4799A security-enabled local group membership was enumerated
SecurityAudit Security Group Management

Records. A process listed the members of a local security group, such as Administrators, with the process name.

Look for. net.exe, PowerShell or an unknown process listing local Administrators across many hosts.

4733A member was removed from a security-enabled local group
SecurityAudit Security Group Management

Records. A member was removed from a local security group.

Look for. An account added to Administrators and removed again within an hour: temporary elevation to do one thing.

4731A security-enabled local group was created
SecurityAudit Security Group Management

Records. A local security group was created.

Look for. New local groups on servers are rare; ask why.

4735A security-enabled local group was changed
SecurityAudit Security Group Management

Records. A local security group's properties changed.

Look for. Changes to the built-in groups that hold administrative rights.

4741A computer account was created
SecurityAudit Computer Account Management

Records. A computer object was created in the domain, with who created it. It is logged only on domain controllers. By default ordinary users can add a small number of computers to the domain.

Look for. A computer account created by a user account rather than your provisioning process: the first step of several Kerberos delegation and certificate attacks.

4742A computer account was changed
SecurityAudit Computer Account Management

Records. A computer object changed, with the attributes that changed.

Look for. Changes to delegation settings, service principal names or the DNS host name of a computer account.

4743A computer account was deleted
SecurityAudit Computer Account Management

Records. A computer object was deleted.

Look for. A computer account created and deleted in a short window.

4780The ACL was set on accounts which are members of administrators groups
SecurityAudit User Account Management

Records. Each hour the domain controller holding the PDC emulator role compares the permissions on protected accounts (members of administrative groups) with AdminSDHolder and resets any that differ; this event records it.

Look for. A change to AdminSDHolder itself (see 5136), because whatever is on it is copied to every protected account.

4782The password hash of an account was accessed
SecurityAudit Other Account Management Events

Records. A domain controller recorded that an account's password hash was read, which happens during password migration.

Look for. Outside an Active Directory Migration Tool job, any occurrence.

5376Credential Manager credentials were backed up
SecurityAudit User Account Management

Records. An account's saved Credential Manager credentials were backed up.

Look for. Backups of stored credentials that the user did not start.

5377Credential Manager credentials were restored from a backup
SecurityAudit User Account Management

Records. Credential Manager credentials were restored from a backup.

Look for. Restores onto an account or machine you did not expect.

Directory services 6

The replication rights that DCSync uses, as they appear in the Properties field of 4662. Each GUID is checked against Microsoft's Active Directory schema documentation.

RightGUID
DS-Replication-Get-Changes1131f6aa-9c07-11d1-f79f-00c04fc2dcd2
DS-Replication-Get-Changes-All1131f6ad-9c07-11d1-f79f-00c04fc2dcd2
DS-Replication-Get-Changes-In-Filtered-Set89e95b76-444d-4c62-991a-0facbeda640c
4662An operation was performed on an object
SecurityAudit Directory Service Access

Records. An operation on an Active Directory object, logged where the object's SACL asks for it. The Properties field holds the GUIDs of the rights or attributes involved.

Look for. DCSync: a replication right (table below) exercised by an account that is not a domain controller. Domain controllers replicate with each other all day, so filter out machine accounts first.

4661A handle to an object was requested
SecurityAudit Directory Service Access or Audit SAM

Records. A handle was requested to an Active Directory or SAM object.

Look for. High volumes of SAM handle requests from one workstation: user and group enumeration.

5136A directory service object was modified
SecurityAudit Directory Service Changes

Records. An attribute of an Active Directory object changed, with the old and new values in separate events. It needs a SACL on the objects.

Look for. Changes to group policy objects, AdminSDHolder, msDS-AllowedToActOnBehalfOfOtherIdentity (resource-based delegation), servicePrincipalName on user accounts, and nTSecurityDescriptor on the domain object.

5137A directory service object was created
SecurityAudit Directory Service Changes

Records. An Active Directory object was created.

Look for. New group policy containers, new certificate templates, and objects created in the domain root or under Configuration.

5139A directory service object was moved
SecurityAudit Directory Service Changes

Records. An Active Directory object moved, with the old and new paths.

Look for. An account moved out of an organizational unit with tighter policy, or into one that delegates control to someone else.

5141A directory service object was deleted
SecurityAudit Directory Service Changes

Records. An Active Directory object was deleted.

Look for. Deleted group policy links and deleted accounts during the incident window.

Domain policy and trusts 7

4739Domain Policy was changed
SecurityAudit Authentication Policy Change

Records. The domain's password, lockout or Kerberos policy changed.

Look for. A lockout threshold raised or removed before a password spray.

4713Kerberos policy was changed
SecurityAudit Authentication Policy Change

Records. The domain Kerberos policy changed, such as maximum ticket lifetimes.

Look for. Longer ticket lifetimes extend how long a stolen ticket stays useful.

4706A new trust was created to a domain
SecurityAudit Authentication Policy Change

Records. A trust to another domain was created.

Look for. Any trust you did not plan: a path into the domain from outside.

4707A trust to a domain was removed
SecurityAudit Authentication Policy Change

Records. A trust to another domain was removed.

Look for. Confirm it was planned.

4716Trusted domain information was modified
SecurityAudit Authentication Policy Change

Records. The settings of an existing trust changed, such as its direction or SID filtering.

Look for. SID filtering turned off on a trust, which makes SID History attacks across it work.

4717System security access was granted to an account
SecurityAudit Authentication Policy Change

Records. An account was granted a logon right, such as the right to log on through Remote Desktop or as a service.

Look for. A logon right granted to a user account on a server, especially "Log on as a service" or Remote Desktop.

4718System security access was removed from an account
SecurityAudit Authentication Policy Change

Records. A logon right was removed from an account.

Look for. Rights removed from the people or tools that would respond.

Certificate Services 6

4886Certificate Services received a certificate request
SecurityAudit Certification Services

Records. A certification authority received a certificate request, with the request ID, the requester and the attributes. It is logged on the CA.

Look for. Requests where the subject or subject alternative name differs from the requester: that is how ESC1-style template abuse asks for a certificate as someone else.

4887Certificate Services approved a certificate request and issued a certificate
SecurityAudit Certification Services

Records. The CA approved a request and issued a certificate.

Look for. Certificates issued to an account for another identity, or from a template that allows the requester to supply the subject.

4888Certificate Services denied a certificate request
SecurityAudit Certification Services

Records. The CA denied a request.

Look for. A run of denials from one requester probing which templates they can use.

4898Certificate Services loaded a template
SecurityAudit Certification Services

Records. The CA loaded a certificate template.

Look for. A template that has not been published before.

4899A Certificate Services template was updated
SecurityAudit Certification Services

Records. A certificate template was updated.

Look for. Template changes that allow the requester to supply the subject, or that add client authentication.

4900Certificate Services template security was updated
SecurityAudit Certification Services

Records. A certificate template's permissions changed.

Look for. Enroll or write rights granted to a broad group: the template is now usable by an attacker.

Privilege use 2

4673A privileged service was called
SecurityAudit Sensitive Privilege Use or Audit Non Sensitive Privilege Use

Records. A process tried to use a privileged service, such as calling a function that needs SeTcbPrivilege, with the privilege, the process and the result.

Look for. SeTcbPrivilege or SeDebugPrivilege used by a process that has no reason to hold them. Volume is high; filter known processes first.

4674An operation was attempted on a privileged object
SecurityAudit Sensitive Privilege Use or Audit Non Sensitive Privilege Use

Records. A process tried an operation on a protected object that needs a privilege, with the object and privilege.

Look for. SeTakeOwnershipPrivilege or SeSecurityPrivilege used on files or keys by an unexpected process.

Processes, services and tasks 9

4688A new process has been created
SecurityAudit Process Creation

Records. A process started, with its image path, its creator process and the account. The command line is empty unless the policy "Include command line in process creation events" is enabled.

Look for. Office applications starting a shell, binaries running from user-writable folders, and encoded or download command lines. Turn on command line capture first: most of the value is in it.

4689A process has exited
SecurityAudit Process Termination

Records. A process exited, with its process ID and exit status.

Look for. Pair with 4688 by process ID and host to find how long something ran.

4697A service was installed in the system
SecurityAudit Security System Extension

Records. A service was installed, with its name, file name, type, start type and account.

Look for. Services whose file name is in a temporary or user folder, runs cmd or PowerShell, or has a random name. Remote execution tools install a service on the target.

7045A service was installed in the system
System (Service Control Manager)Logged without an audit policy

Records. The Service Control Manager's record of a new service. It is in the System log, so it is there on hosts with no Security auditing configured.

Look for. The same reading as 4697. Where both exist they should agree; where only 7045 exists, it is your record.

4698A scheduled task was created
SecurityAudit Other Object Access Events

Records. A scheduled task was created. The event carries the task's full XML: its actions, triggers and the account it runs as.

Look for. Read the action in the XML: PowerShell with an encoded command, a binary in a user folder, or a task created remotely from another host.

4699A scheduled task was deleted
SecurityAudit Other Object Access Events

Records. A scheduled task was deleted.

Look for. A task created and deleted within minutes was used to run something once and then removed.

4702A scheduled task was updated
SecurityAudit Other Object Access Events

Records. A scheduled task was changed, with its new XML.

Look for. An existing, trusted task whose action now points somewhere new.

4692Backup of data protection master key was attempted
SecurityAudit DPAPI Activity

Records. A DPAPI master key backup was attempted. On a domain member, DPAPI backs a new master key up to a domain controller when the key is generated.

Look for. Outside those moments, master key backups can accompany tools that extract DPAPI-protected secrets.

4693Recovery of data protection master key was attempted
SecurityAudit DPAPI Activity

Records. Recovery of a DPAPI master key was attempted, with the recovery server.

Look for. Recovery requests from a workstation to a domain controller for an account that is not the logged-on user.

Objects, shares and the firewall 18

4663An attempt was made to access an object
SecurityAudit File System or Audit Kernel Object or Audit Registry or Audit Removable Storage

Records. An operation was performed on a file, kernel, registry or removable storage object. It is logged only where the object's SACL asks for that access right, so you choose the objects in advance. Directory objects are 4662.

Look for. Put SACLs on the few things that matter (credential stores, sensitive shares) and read who touched them.

4657A registry value was modified
SecurityAudit Registry

Records. A registry value was set, with old and new values. It needs "Set Value" auditing in the key's SACL.

Look for. SACLs on autostart keys give you who changed a Run value and what it now says.

4670Permissions on an object were changed
SecurityAudit File System or Audit Registry or Audit Authentication Policy Change

Records. The permissions of a file system, registry or security token object changed. It does not fire for changes to the SACL itself. Permission changes on directory objects are 5136.

Look for. Permissions loosened on a sensitive folder or key, especially by an account that does not administer it.

5140A network share object was accessed
SecurityAudit File Share

Records. A share was accessed, once per session at the first access, with the share name and the client address.

Look for. Administrative shares (C$, ADMIN$) opened from workstations: that is how files are copied for remote execution.

5145A network share object was checked to see whether client can be granted desired access
SecurityAudit Detailed File Share

Records. Each file or folder accessed through a share, with the relative path. Failures are logged only for share-level denials. It is high volume.

Look for. Enable it on servers you care about to see which files came across a share, such as a binary dropped in ADMIN$.

5156The Windows Filtering Platform has permitted a connection
SecurityAudit Filtering Platform Connection

Records. A connection was permitted, with the process, addresses, ports and direction. It is high volume.

Look for. Useful on servers where you want process-to-connection records and do not run Sysmon event 3.

5157The Windows Filtering Platform has blocked a connection
SecurityAudit Filtering Platform Connection

Records. A connection was blocked, with the same fields as 5156.

Look for. One source blocked on 445, 3389 or 5985 across many hosts is something looking for a way in.

4656A handle to an object was requested
SecurityAudit File System or Audit Kernel Object or Audit Registry or Audit Removable Storage

Records. A process asked for a handle to an object with a set of access rights. It is logged where the SACL asks for it, and failures show up here.

Look for. Failed handle requests to sensitive files: someone without access trying anyway.

4658The handle to an object was closed
SecurityAudit File System or Audit Handle Manipulation or Audit Kernel Object or Audit Registry

Records. A handle to an object was closed. It shares the Handle ID of the 4656 that opened it.

Look for. Pairs with 4656 by Handle ID to bound how long an object was held open.

4660An object was deleted
SecurityAudit File System or Audit Kernel Object or Audit Registry

Records. An object was deleted. It carries the Handle ID but not the name; the name is in the matching 4656 or 4663.

Look for. Deleted files on audited folders. Join on Handle ID to get the path.

5142A network share object was added
SecurityAudit File Share

Records. A share was created, with its name and local path.

Look for. A new share on a workstation, or one pointing at the root of a drive: data being staged for collection.

5143A network share object was modified
SecurityAudit File Share

Records. A share's settings or permissions changed.

Look for. A share opened up to Everyone.

5144A network share object was deleted
SecurityAudit File Share

Records. A share was removed.

Look for. A share created and removed within the incident window.

4946A change has been made to Windows Firewall exception list. A rule was added
SecurityAudit MPSSVC Rule-Level Policy Change

Records. A Windows Firewall rule was added, with the rule name and the profile.

Look for. Inbound rules for 3389, 445 or 5985, or an allow rule for a single unknown binary.

4947A change has been made to Windows Firewall exception list. A rule was modified
SecurityAudit MPSSVC Rule-Level Policy Change

Records. A Windows Firewall rule was changed.

Look for. An existing rule widened to allow any address.

4948A change has been made to Windows Firewall exception list. A rule was deleted
SecurityAudit MPSSVC Rule-Level Policy Change

Records. A Windows Firewall rule was deleted.

Look for. Block rules removed, especially ones protecting management ports.

4949Windows Firewall settings were restored to the default values
SecurityAudit MPSSVC Rule-Level Policy Change

Records. Windows Firewall settings were reset to their defaults.

Look for. A reset you did not do throws away your rules.

4950A Windows Firewall setting has changed
SecurityAudit MPSSVC Rule-Level Policy Change

Records. A firewall setting changed, such as a profile being turned off.

Look for. A profile switched off on a server.

System state and integrity 7

4608Windows is starting up
SecurityAudit Security State Change

Records. Windows started. Microsoft notes it is logged when LSASS starts.

Look for. Unexpected reboots during an incident, often after a driver or a ransomware payload was installed.

4616The system time was changed
SecurityAudit Security State Change

Records. The system time changed, with the old and new times and the process that changed it. Microsoft notes it is logged whatever the Audit Security State Change setting, and that LOCAL SERVICE changes are normal time correction.

Look for. Changes made by anything other than the time service: moving the clock to confuse a timeline or a ticket lifetime.

4826Boot Configuration Data loaded
SecurityAudit Other Policy Change Events

Records. Boot Configuration Data was loaded at startup, with settings such as whether test signing and kernel debugging are on.

Look for. Test signing, kernel debugging or integrity checks turned off: the machine will now load unsigned drivers.

5038Code integrity determined that the image hash of a file is not valid
SecurityAudit System Integrity

Records. Code Integrity found a file whose image hash is not valid, which can mean it was changed on disk.

Look for. A system binary or driver that fails its hash: tampering, or corruption worth ruling out.

6416A new external device was recognized by the System
SecurityAudit PNP Activity

Records. A new device was recognized, with its device ID, class and vendor.

Look for. USB storage on machines where it should not appear, close in time to sensitive file access.

1100The event logging service has shut down
SecurityAlways logged (Other Events)

Records. The event log service shut down. A normal system shutdown stops it too, so read it against the startup and shutdown events around it.

Look for. A shutdown of the logging service with no matching system shutdown: the log stopped recording while the machine kept running.

1104The security log is now full
SecurityAlways logged (Other Events)

Records. The Security log is full and, depending on its settings, has stopped recording or is overwriting.

Look for. Evidence you cannot get back. Size the log (wevtutil sl, below) so it holds days, not hours.

Audit and log tampering 8

1102The audit log was cleared
SecurityAlways logged (Other Events)

Records. The Security log was cleared, with the account that cleared it. It is logged whatever the audit policy says.

Look for. Treat it as an event in the incident, then look at what happened just before the earliest surviving record.

4719System audit policy was changed
SecurityAudit Policy Change

Records. The machine's audit policy changed, naming the subcategory and the change. Microsoft notes it is logged regardless of the Audit Policy Change setting.

Look for. Success or failure auditing removed from a subcategory: switching off the evidence before using it.

4904An attempt was made to register a security event source
SecurityAudit Policy Change

Records. A new security event source was registered.

Look for. Rare outside software installs. Read the process.

4905An attempt was made to unregister a security event source
SecurityAudit Policy Change

Records. A security event source was unregistered.

Look for. A source removed so its events stop.

4906The CrashOnAuditFail value has changed
SecurityAudit Policy Change

Records. The CrashOnAuditFail setting changed.

Look for. Any change outside policy deployment.

4907Auditing settings on object were changed
SecurityAudit Policy Change

Records. The SACL on an object changed, so what is audited on it changed.

Look for. SACLs removed from the objects you rely on, such as credential stores or AdminSDHolder.

4912Per User Audit Policy was changed
SecurityAudit Policy Change

Records. A per-user audit policy changed, which can exclude one account from auditing.

Look for. An account excluded from auditing. Per-user policy is seldom used, so any change is worth explaining.

4715The audit policy (SACL) on an object was changed
SecurityAudit Policy Change

Records. The SACL on the local security policy object changed.

Look for. As 4907, for the policy object itself.

System log 9

Channel events below are checked against the event manifests Windows ships (as extracted in the EVTX-ETW-Resources project), since Microsoft publishes no per-event pages for these channels. Several Operational channels are off by default; wevtutil gl shows whether one is enabled.

104An event log was cleared
SystemLogged without an audit policy

Records. A log other than Security was cleared, with the channel name and the account. The Security log's equivalent is 1102.

Look for. System, Windows PowerShell or Sysmon logs cleared: an attacker removing what 1102 does not cover.

7034A service terminated unexpectedly
System (Service Control Manager)Logged without an audit policy

Records. A service stopped unexpectedly, with how many times it has done so.

Look for. Security agents, backup services or the event log crashing repeatedly: tampering or a failing payload.

7036A service changed state
System (Service Control Manager)Logged without an audit policy

Records. A service entered the running or stopped state.

Look for. Security and backup services stopped shortly before encryption, and remote execution services that start and stop within seconds.

7040A service start type was changed
System (Service Control Manager)Logged without an audit policy

Records. A service's start type changed, such as from automatic to disabled.

Look for. Defender, the firewall, Volume Shadow Copy or backup agents set to disabled.

1The system time changed
System (Kernel-General)Logged without an audit policy

Records. The system time changed, with the old and new times.

Look for. The same reading as Security 4616, on hosts without that subcategory on.

12The operating system started
System (Kernel-General)Logged without an audit policy

Records. The operating system started, with the start time.

Look for. Boundaries for each period the machine was running.

13The operating system is shutting down
System (Kernel-General)Logged without an audit policy

Records. The operating system began a clean shutdown.

Look for. Pair with 12. A start with no shutdown before it was a crash or a power loss.

41The system rebooted without cleanly shutting down
System (Kernel-Power)Logged without an audit policy

Records. The machine restarted without a clean shutdown first, because it stopped responding, crashed or lost power.

Look for. Crashes after a driver loaded, and machines rebooted by pulling power to interrupt a response.

1074A process initiated a restart or shutdown
System (User32)Logged without an audit policy

Records. A process started a restart or shutdown on behalf of a user, with the process, the account and the reason.

Look for. Reboots started by unexpected processes, which ransomware and some wipers use to finish their work.

Task Scheduler 6

106A task was registered
Microsoft-Windows-TaskScheduler/OperationalChannel enabled

Records. A user registered a scheduled task, with the account and the task name.

Look for. The same moment as Security 4698, on hosts without that subcategory on. The task's action is not in this event; read the task file or 4698 for it.

140A task was updated
Microsoft-Windows-TaskScheduler/OperationalChannel enabled

Records. A task's registration was updated.

Look for. A trusted task changed during the incident window.

141A task was deleted
Microsoft-Windows-TaskScheduler/OperationalChannel enabled

Records. A task was deleted.

Look for. A task registered, run once and deleted.

129A task process was created
Microsoft-Windows-TaskScheduler/OperationalChannel enabled

Records. Task Scheduler launched a task's process, with its process ID.

Look for. The process ID ties the task to a process creation event.

200A task action started
Microsoft-Windows-TaskScheduler/OperationalChannel enabled

Records. Task Scheduler started a task's action, with the action name.

Look for. When a persistence task actually ran. The action name is often the program path.

201A task action completed
Microsoft-Windows-TaskScheduler/OperationalChannel enabled

Records. A task's action completed.

Look for. Bounds the run with 200.

Remote Desktop 7

1149Remote Desktop user authentication succeeded
Microsoft-Windows-TerminalServices-RemoteConnectionManager/OperationalLogged by default

Records. Remote Desktop Services recorded a successful user authentication, with the user, domain and source address. It is logged on the machine being connected to.

Look for. Every RDP source address for an account, kept apart from the Security log. It does not mean a session started; read LocalSessionManager 21 or 25 for that.

21Remote Desktop session logon succeeded
Microsoft-Windows-TerminalServices-LocalSessionManager/OperationalLogged by default

Records. A session logon succeeded, with the user, session ID and source address.

Look for. A new RDP session. A source address of LOCAL is a console logon.

22Remote Desktop shell started
Microsoft-Windows-TerminalServices-LocalSessionManager/OperationalLogged by default

Records. The shell started in a session.

Look for. The session reached a desktop.

23Remote Desktop session logoff succeeded
Microsoft-Windows-TerminalServices-LocalSessionManager/OperationalLogged by default

Records. A session logged off.

Look for. The end of a session started by 21.

24Remote Desktop session disconnected
Microsoft-Windows-TerminalServices-LocalSessionManager/OperationalLogged by default

Records. A session was disconnected without logging off, with the source address.

Look for. Sessions left disconnected keep running processes, and keep their credentials in memory.

25Remote Desktop session reconnected
Microsoft-Windows-TerminalServices-LocalSessionManager/OperationalLogged by default

Records. A disconnected session was reconnected, with the source address.

Look for. Pairs with Security 4778. A reconnect from a new address is someone else picking up the session.

1024The RDP client started a connection
Microsoft-Windows-TerminalServices-RDPClient/OperationalLogged by default

Records. The Remote Desktop client on this machine tried to connect to a server, with the server name or address. It is logged on the machine the connection came from.

Look for. The outbound side of lateral movement: which servers an account connected to from this workstation.

WinRM and WMI 7

6A WSMan session was created
Microsoft-Windows-WinRM/OperationalLogged by default

Records. A WinRM client created a session, with the connection string naming the target. It is logged on the client.

Look for. PowerShell remoting and WinRM tools reaching out from a workstation to servers.

91A WSMan shell was created on the server
Microsoft-Windows-WinRM/OperationalLogged by default

Records. A WinRM shell was created on this machine for a remote client, with the resource URI.

Look for. Inbound remoting. Pair with Security 4624 Type 3 and with the process wsmprovhost.exe.

168WinRM authentication was refused
Microsoft-Windows-WinRM/OperationalLogged by default

Records. WinRM returned an HTTP 401 to a client and dropped the connection.

Look for. Repeated 401s from one source: guessing credentials over WinRM.

5857A WMI provider started
Microsoft-Windows-WMI-Activity/OperationalLogged by default

Records. A WMI provider loaded, with the host process and the provider DLL path.

Look for. A provider DLL outside System32 or a known product folder.

5858A WMI operation failed
Microsoft-Windows-WMI-Activity/OperationalLogged by default

Records. A WMI operation returned an error, with the client machine, the user, the client process ID and the operation.

Look for. Remote WMI queries from an unexpected machine, visible here even when they failed.

5860A temporary WMI event consumer was registered
Microsoft-Windows-WMI-Activity/OperationalLogged by default

Records. A temporary event subscription was registered, with the namespace, the query, the user and the client process.

Look for. Temporary subscriptions last until the process ends. Read the query for what it waits for.

5861A permanent WMI event consumer was bound
Microsoft-Windows-WMI-Activity/OperationalLogged by default

Records. A permanent event subscription was bound, with the filter and the consumer.

Look for. WMI persistence: the same subscription Sysmon 19 to 21 records, on hosts without Sysmon.

BITS and the firewall log 7

3A BITS job was created
Microsoft-Windows-Bits-Client/OperationalLogged by default

Records. A Background Intelligent Transfer Service job was created, with its name and owner.

Look for. Jobs created by script hosts or by users on servers. BITS downloads survive reboots and use the machine's proxy.

59A BITS transfer started
Microsoft-Windows-Bits-Client/OperationalLogged by default

Records. A BITS job started transferring, with the URL.

Look for. The URL is the finding: a download from an address nothing else on the estate uses.

60A BITS transfer stopped
Microsoft-Windows-Bits-Client/OperationalLogged by default

Records. A BITS job stopped, with the URL and a status code.

Look for. Pairs with 59.

2004A firewall rule was added
Microsoft-Windows-Windows Firewall With Advanced Security/FirewallLogged by default

Records. A rule was added to Windows Defender Firewall, with the rule name, the application, the ports and who added it.

Look for. The same reading as Security 4946, with more detail and no audit policy needed.

2005A firewall rule was modified
Microsoft-Windows-Windows Firewall With Advanced Security/FirewallLogged by default

Records. A firewall rule was changed.

Look for. As Security 4947.

2006A firewall rule was deleted
Microsoft-Windows-Windows Firewall With Advanced Security/FirewallLogged by default

Records. A firewall rule was deleted, with who deleted it.

Look for. As Security 4948.

2033All firewall rules were deleted
Microsoft-Windows-Windows Firewall With Advanced Security/FirewallLogged by default

Records. Every rule was deleted from the firewall configuration, with who did it.

Look for. Any occurrence outside a rebuild.

AppLocker and App Control 9

8002An executable or DLL was allowed
Microsoft-Windows-AppLocker/EXE and DLLAppLocker policy for executables

Records. An executable or DLL was allowed by AppLocker policy, with its path and hash.

Look for. A record of what ran even where you have no other process logging.

8003An executable or DLL would have been blocked (audit mode)
Microsoft-Windows-AppLocker/EXE and DLLAppLocker policy in audit mode

Records. A file ran that the policy would have blocked if enforced.

Look for. What enforcement would stop, and what an attacker ran from a user-writable path.

8004An executable or DLL was blocked
Microsoft-Windows-AppLocker/EXE and DLLAppLocker policy enforced

Records. A file was blocked from running.

Look for. Something tried. Find what dropped it.

8005A script or installer was allowed
Microsoft-Windows-AppLocker/MSI and ScriptAppLocker policy for scripts and installers

Records. A script or installer was allowed.

Look for. As 8002, for scripts.

8006A script or installer would have been blocked (audit mode)
Microsoft-Windows-AppLocker/MSI and ScriptAppLocker policy in audit mode

Records. A script or installer ran that enforcement would have blocked.

Look for. As 8003, for scripts.

8007A script or installer was blocked
Microsoft-Windows-AppLocker/MSI and ScriptAppLocker policy enforced

Records. A script or installer was blocked.

Look for. As 8004, for scripts.

3033A file did not meet the required signing level
Microsoft-Windows-CodeIntegrity/OperationalLogged by default

Records. A process tried to load a file that did not meet the signing level required. Microsoft notes it can occur with or without an App Control policy, and often means a revoked signature.

Look for. Unsigned or revoked DLLs loaded into protected processes.

3076App Control would have blocked a file (audit)
Microsoft-Windows-CodeIntegrity/OperationalApp Control policy in audit mode

Records. The file would have been blocked if the App Control policy were enforced.

Look for. What enforcement would stop: the list to read before turning enforcement on, and the record of what an attacker ran meanwhile.

3077App Control blocked a file
Microsoft-Windows-CodeIntegrity/OperationalApp Control policy enforced

Records. App Control blocked a file.

Look for. Something tried to run outside policy.

Other useful channels 6

307A document was printed
Microsoft-Windows-PrintService/OperationalChannel enabled

Records. A document was printed, with its name, owner, printer, size and page count.

Look for. Printing as a data theft channel, in insider cases. The channel is often off; check before relying on it.

316A printer driver was added
Microsoft-Windows-PrintService/OperationalChannel enabled

Records. A printer driver was added or updated, with its files.

Look for. Driver installs outside your print management: the PrintNightmare family of attacks installs a driver to run code.

3000A client used SMB1
Microsoft-Windows-SMBServer/AuditSMB1 access auditing on

Records. A client connected to this server over SMB1, with its address.

Look for. Which clients still need SMB1 before you turn it off.

1009Anonymous SMB access was denied
Microsoft-Windows-SMBServer/SecurityLogged by default

Records. The server denied an anonymous session, with the client name and address.

Look for. Anonymous enumeration attempts against file servers.

31001SMB client authentication failed
Microsoft-Windows-SMBClient/SecurityLogged by default

Records. This machine failed to authenticate to an SMB server, with the server name and the account.

Look for. The client side of failed lateral movement: which servers an account tried to reach and could not.

3008A DNS query completed
Microsoft-Windows-DNS Client Events/OperationalChannel enabled

Records. The DNS client completed a query, with the name, type, status and results.

Look for. Names resolved on a host with no Sysmon 22. It does not say which process asked.

Sysmon 30

1Process creation
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed

Records. A process started, with the full command line, the parent process, the hashes the configuration asks for and a ProcessGuid that is unique across the domain.

Look for. The same questions as 4688, plus hashes to look up and a ProcessGuid that ties every other Sysmon event to the process.

2A process changed a file creation time
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed

Records. A process explicitly set a file's creation time. Microsoft notes many processes do this legitimately.

Look for. Timestomping: an executable in a user folder whose creation time was moved back to look like part of Windows.

3Network connection
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed, enabled in configuration

Records. A TCP or UDP connection, tied to the process by ProcessGuid, with addresses, ports and host names. Disabled by default.

Look for. Script hosts and built-in binaries talking to the internet, and connections at a steady interval.

5Process terminated
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed

Records. A process ended, with its ProcessGuid.

Look for. Bounds a process's lifetime with event 1.

6Driver loaded
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed

Records. A driver loaded, with hashes and signature information.

Look for. Unsigned drivers, or signed drivers known to be vulnerable, loaded before security tools stop working.

7Image loaded
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed, enabled in configuration

Records. A module loaded into a process, with hashes and signature. Disabled by default and noisy if enabled broadly.

Look for. A signed program loading an unsigned DLL from its own folder is DLL side-loading.

8CreateRemoteThread
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed

Records. A process created a thread in another process, with StartAddress and, where it can be inferred, StartModule and StartFunction.

Look for. A remote thread whose start is outside any loaded module, or into lsass.exe or a browser.

10ProcessAccess
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed

Records. A process opened another, with the access rights granted. Microsoft names reading lsass.exe memory as what it is for, and warns it is noisy without filters.

Look for. TargetImage lsass.exe from a SourceImage that is not a security product or Windows component.

11FileCreate
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed

Records. A file was created or overwritten, with the process that did it.

Look for. Executables written to temporary, download and startup folders.

12RegistryEvent (Object create and delete)
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed

Records. A registry key or value was created or deleted.

Look for. Keys created under autostart locations and services.

13RegistryEvent (Value Set)
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed

Records. A registry value was set. The value written is recorded for DWORD and QWORD types.

Look for. Run and RunOnce values, service ImagePath, and Defender exclusion keys.

15FileCreateStreamHash
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed

Records. A named stream was created, with hashes, including the Zone.Identifier mark of the web.

Look for. Where a file came from: the Zone.Identifier stream records the download source.

17PipeEvent (Pipe Created)
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed

Records. A named pipe was created.

Look for. Pipe names used by known command-and-control frameworks.

18PipeEvent (Pipe Connected)
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed

Records. A client connected to a named pipe.

Look for. Pairs with 17 to show which process talked to the pipe.

19WmiEvent (WmiEventFilter activity detected)
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed

Records. A WMI event filter was registered, with namespace, name and query.

Look for. With 20 and 21, a WMI event subscription: persistence that survives reboots with no file in an autostart folder.

20WmiEvent (WmiEventConsumer activity detected)
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed

Records. A WMI consumer was registered, with its name and destination.

Look for. A CommandLineEventConsumer or ActiveScriptEventConsumer: the part that runs code.

21WmiEvent (WmiEventConsumerToFilter activity detected)
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed

Records. A consumer was bound to a filter.

Look for. The binding completes the subscription. Read 19 and 20 for what it runs and when.

22DNSEvent (DNS query)
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed

Records. A process made a DNS query, successful or not.

Look for. The process behind a suspicious domain, which DNS server logs cannot tell you.

23FileDelete (File Delete archived)
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed

Records. A file was deleted and a copy was saved to the archive directory (C:\Sysmon by default).

Look for. Recover a tool an attacker deleted. Watch the archive's size.

25ProcessTampering (Process image change)
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed

Records. Process hiding such as hollowing or herpaderping was detected.

Look for. Any occurrence deserves a look.

26FileDeleteDetected (File Delete logged)
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed

Records. A file was deleted, without keeping a copy.

Look for. Tools and output deleted after use.

4Sysmon service state changed
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed

Records. The Sysmon service started or stopped.

Look for. Sysmon stopped outside maintenance: someone turning off the sensor.

9RawAccessRead
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed

Records. A process read a drive directly with the \\.\ notation. Microsoft notes malware uses it to read locked files and to avoid file auditing.

Look for. Raw reads by anything other than backup and disk tools: reading NTDS.dit or the SAM hive from under Windows.

14RegistryEvent (Key and Value Rename)
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed

Records. A registry key or value was renamed, with the new name.

Look for. Renames that move a value into an autostart location.

16ServiceConfigurationChange
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed

Records. The Sysmon configuration changed, such as its filtering rules.

Look for. A configuration change you did not deploy: someone blinding the sensor without stopping it.

24ClipboardChange (New content in the clipboard)
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed, enabled in configuration

Records. The clipboard contents changed.

Look for. In RDP sessions, data copied in or out of a server.

27FileBlockExecutable
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed, rules configured

Records. Sysmon blocked an executable file from being created.

Look for. An attempt to drop a binary where your rules forbid one.

28FileBlockShredding
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed, rules configured

Records. Sysmon blocked file shredding by a tool such as SDelete.

Look for. Someone trying to destroy files beyond recovery.

29FileExecutableDetected
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed, rules configured

Records. Sysmon detected a new executable file being created.

Look for. Executables written to user folders and shares.

255Error
Sysmon (Microsoft-Windows-Sysmon/Operational)Sysmon installed

Records. Sysmon hit an error, which can happen under heavy load or when integrity conditions are not met.

Look for. Errors in a run on one host can mean someone is interfering with the driver.

PowerShell 4

4104Script block logging
Microsoft-Windows-PowerShell/Operational (Windows PowerShell 5.1); PowerShellCore/Operational (PowerShell 7)Script Block Logging policy

Records. The text of each script block PowerShell processed. Long blocks are split across several events. The policy is Turn on PowerShell Script Block Logging.

Look for. Decoded download cradles, FromBase64String, Invoke-Expression and AMSI tampering. The logged block is what PowerShell compiled, after an encoded command was decoded.

4103Module logging (pipeline execution)
Microsoft-Windows-PowerShell/OperationalModule Logging policy

Records. Pipeline execution details for the modules module logging is turned on for: the commands and their parameter values.

Look for. Cmdlets and parameters actually run, which can survive where script text was obfuscated.

400Engine started
Windows PowerShellLogged without a policy

Records. A PowerShell engine started. The event data includes the host application's command line and the engine version.

Look for. A HostApplication with -EncodedCommand, and an engine version of 2, which has no script block logging.

800Pipeline execution details
Windows PowerShellModule Logging policy

Records. Pipeline execution details written to the Windows PowerShell log, which is where Microsoft's Group Policy documentation places module logging.

Look for. The same reading as 4103.

Microsoft Defender Antivirus 14

1116Malware detected
Microsoft-Windows-Windows Defender/OperationalDefender Antivirus on

Records. Defender Antivirus detected malware or potentially unwanted software, with the threat name, severity and path.

Look for. Read the next event for the same threat to see what was done about it.

1117Action taken
Microsoft-Windows-Windows Defender/OperationalDefender Antivirus on

Records. Defender Antivirus took action to protect the system.

Look for. The same threat detected and removed again and again means something keeps putting it back.

1118Action failed
Microsoft-Windows-Windows Defender/OperationalDefender Antivirus on

Records. Defender Antivirus tried to act on a threat and failed.

Look for. The threat may still be there. Treat it as live.

1119Action critically failed
Microsoft-Windows-Windows Defender/OperationalDefender Antivirus on

Records. Defender Antivirus hit a critical error acting on a threat.

Look for. As 1118.

1121Attack surface reduction rule blocked
Microsoft-Windows-Windows Defender/OperationalASR rules in block mode

Records. An attack surface reduction rule fired in block mode, with the path and the rule.

Look for. Office applications creating child processes or writing executables, blocked: something tried.

5001Real-time protection disabled
Microsoft-Windows-Windows Defender/OperationalDefender Antivirus on

Records. Real-time protection was disabled.

Look for. Who or what disabled it, and what ran in the minutes after.

5007Configuration changed
Microsoft-Windows-Windows Defender/OperationalDefender Antivirus on

Records. Defender Antivirus configuration changed, with old and new values.

Look for. Exclusions added for a path, process or extension: the folder an attacker is about to use.

5010Malware scanning disabled
Microsoft-Windows-Windows Defender/OperationalDefender Antivirus on

Records. Scanning for malware and potentially unwanted software was disabled.

Look for. As 5001.

5012Virus scanning disabled
Microsoft-Windows-Windows Defender/OperationalDefender Antivirus on

Records. Scanning for viruses was disabled.

Look for. As 5001.

5013Tamper protection blocked a change
Microsoft-Windows-Windows Defender/OperationalTamper protection on

Records. Tamper protection blocked a change to Defender Antivirus settings.

Look for. Something tried to turn Defender off and failed. Find the process.

1006Malware detected (scan)
Microsoft-Windows-Windows Defender/OperationalDefender Antivirus on

Records. The antimalware engine found malware or potentially unwanted software.

Look for. Read with 1116; older tooling and some scans report through this ID.

1007Action taken (scan)
Microsoft-Windows-Windows Defender/OperationalDefender Antivirus on

Records. The antimalware platform took action against malware.

Look for. Read with 1117.

1015Suspicious behavior detected
Microsoft-Windows-Windows Defender/OperationalDefender Antivirus on

Records. The antimalware platform detected suspicious behavior.

Look for. Behavior detections catch tools that a file scan did not.

2001Security intelligence update failed
Microsoft-Windows-Windows Defender/OperationalDefender Antivirus on

Records. The security intelligence update failed.

Look for. Updates failing on a host that updates fine elsewhere: blocked update servers or a tampered configuration.

From technique to events

The same technique leaves different events on the machine it came from and the machine it reached. Read both sides when you have both, and treat each row as where to look, not a detection on its own: every one of these events also happens for ordinary reasons.

TechniqueOn the machine it came fromOn the target or domain controllerWhat it does not prove
Remote service (PsExec and similar)4648 if other credentials were supplied; Sysmon 1 and 3 for the tool4624 Type 3; 5140 for ADMIN$ and 5145 for the file copied; 7045 and 4697 for the service; 4688 or Sysmon 1 for the service binary under services.exeWhich tool did it. Any remote service creation leaves the same shape; the service name and binary are the clues.
WMI remote execution4648 if other credentials were supplied; Sysmon 1 for wmic or PowerShell4624 Type 3; 4688 or Sysmon 1 with WmiPrvSE.exe as the parent; WMI-Activity 5857 for the provider hostWhat the command did after it started. Read the child process and what it touched.
PowerShell remoting and WinRMWinRM 6 with the target in the connection string; PowerShell 4104 on the client4624 Type 3; WinRM 91; wsmprovhost.exe in 4688 or Sysmon 1; PowerShell 4104 and 4103 for what ranIntent. Administrators use remoting all day; the script blocks are the evidence.
Remote DesktopRDPClient 1024 naming the server; 4648 if credentials were typed for another accountRemoteConnectionManager 1149; 4624 Type 10; LocalSessionManager 21, 22, 24, 25 and 23; 4778 and 4779 for reconnectsWhat was done inside the session. Pair it with process and file events in the same Logon ID.
Remote scheduled task4648 if other credentials were supplied4624 Type 3; 4698 with the task XML; Task Scheduler 106, then 200 and 201 when it ran; 4699 or 141 if it was removedWho wrote the task XML. The registering account can be a stolen one.
Password sprayingNothing useful on the attacker's machineOn domain controllers: 4771 code 0x18 and 4776 failures across many accounts from one address; on member servers: 4625 Sub Status 0xC000006A; 4740 lockouts; then a 4624 from the same addressThat the success is the attacker. Confirm with what the account did next.
KerberoastingNothing on the domain controller from the cracking, which happens offline4769 for many user-account services in a short window, often with encryption type 0x17 (RC4)That a password was cracked. It proves the tickets were requested.
AS-REP roastingNothing; the hash is cracked offline4768 with Pre-Authentication Type 0 for an account that does not require pre-authentication; 4738 if someone turned that setting onThat the password was cracked.
DCSyncSysmon 3 from the tool to a domain controller on the RPC ports4662 on the domain controller with a replication right GUID in Properties, by an account that is not a domain controllerWhich accounts were pulled. Assume all of them, krbtgt included.
LSASS memory accessSysmon 10 with TargetImage lsass.exe; Defender 1116 or 1015 if it was caughtNot applicable: this is localThat credentials were taken off the machine. Look for the dump file (Sysmon 11) and an outbound copy.
PersistenceNot applicableServices 7045 and 4697; tasks 4698 and 106; Run keys in Sysmon 13 or 4657; WMI in Sysmon 19 to 21 and WMI-Activity 5861; new accounts 4720 with 4732 to local Administrators; 4741 for new computer accountsThat it ever ran. Check for the matching execution events.
Defense evasionNot applicableLogs cleared: 1102 and System 104; the log service stopped: 1100; audit policy: 4719, 4912, 4907; Defender: 5001, 5007, 5013; the firewall: 4946 to 4950 and 2004 to 2033; the clock: 4616 and Kernel-General 1; Sysmon: 4 and 16What was hidden. The gap before the earliest surviving record is the question.

Query a host with Get-WinEvent

On a live host, or against exported .evtx files, Get-WinEvent with -FilterHashtable filters in the event log service and is far faster than piping everything through Where-Object. Event data fields are in the XML, which the first example turns into properties. Every cmdlet and parameter below is checked against its Microsoft reference page.

Network and RDP logons in the last day, by account and source

$since = (Get-Date).AddDays(-1) Get-WinEvent -FilterHashtable @{ LogName = 'Security'; Id = 4624; StartTime = $since } | ForEach-Object { $d = @{} ([xml]$_.ToXml()).Event.EventData.Data | ForEach-Object { $d[$_.Name] = $_.'#text' } [pscustomobject]@{ User = $d.TargetUserName; Type = $d.LogonType; From = $d.IpAddress } } | Where-Object { $_.Type -in '3', '10' } | Group-Object User, Type, From | Sort-Object Count -Descending | Select-Object Count, Name -First 25

Services and scheduled tasks created in the last week

$since = (Get-Date).AddDays(-7) Get-WinEvent -FilterHashtable @{ LogName = 'System'; Id = 7045; StartTime = $since } | Select-Object TimeCreated, Message Get-WinEvent -FilterHashtable @{ LogName = 'Security'; Id = 4698; StartTime = $since } | Select-Object TimeCreated, Message

Remote Desktop sessions: logons, disconnects and reconnects

$lsm = 'Microsoft-Windows-TerminalServices-LocalSessionManager/Operational' Get-WinEvent -FilterHashtable @{ LogName = $lsm; Id = 21, 24, 25 } -MaxEvents 200 | Select-Object TimeCreated, Id, Message

Evidence of tampering: logs cleared, audit policy changed, Defender changed

Get-WinEvent -FilterHashtable @{ LogName = 'Security'; Id = 1102, 4719 } -ErrorAction SilentlyContinue | Select-Object TimeCreated, Id, Message Get-WinEvent -FilterHashtable @{ LogName = 'System'; Id = 104 } -ErrorAction SilentlyContinue | Select-Object TimeCreated, Message $def = 'Microsoft-Windows-Windows Defender/Operational' Get-WinEvent -FilterHashtable @{ LogName = $def; Id = 5001, 5007, 5013 } -ErrorAction SilentlyContinue | Select-Object TimeCreated, Id, Message

Read an exported .evtx file instead of the live log

Get-WinEvent -Path .\Security.evtx -FilterXPath '*[System[(EventID=4624 or EventID=4625)]]' | Select-Object TimeCreated, Id, Message -First 50

Find them in Microsoft Sentinel

Security events land in the SecurityEvent table; System, Sysmon, PowerShell and the other channels collected as Windows event logs land in Event. Every query below ran without error on practice data and uses only columns in Microsoft's schema for its table. Thresholds are starting points.

Who logged on over the network or RDP, and to how many hosts

SecurityEvent | where TimeGenerated > ago(7d) | where EventID == 4624 and LogonType in (3, 10) | summarize Logons = count(), Hosts = dcount(Computer) by TargetUserName, LogonType, IpAddress | order by Hosts desc

Why logons are failing

SecurityEvent | where TimeGenerated > ago(1d) | where EventID == 4625 | summarize Failures = count(), Accounts = dcount(TargetUserName) by IpAddress, Status, SubStatus | order by Accounts desc

A spray that worked: many accounts failed, then one succeeded

let fails = SecurityEvent | where TimeGenerated > ago(1d) | where EventID == 4625 | summarize Accounts = dcount(TargetUserName), LastFail = max(TimeGenerated) by IpAddress; SecurityEvent | where TimeGenerated > ago(1d) | where EventID == 4624 and LogonType in (3, 10) | join kind=inner fails on IpAddress | where Accounts >= 10 and TimeGenerated > LastFail | project TimeGenerated, IpAddress, TargetUserName, Computer, Accounts

Kerberos service tickets with RC4, by requester

SecurityEvent | where TimeGenerated > ago(1d) | where EventID == 4769 | parse EventData with * 'TicketEncryptionType">' Enc '<' * | parse EventData with * 'ServiceName">' Svc '<' * | where Enc == "0x17" and not(Svc endswith "$") | summarize Services = dcount(Svc) by TargetUserName, IpAddress | where Services >= 5

Members added to privileged groups

SecurityEvent | where TimeGenerated > ago(7d) | where EventID in (4728, 4732, 4756) | project TimeGenerated, Computer, EventID, Group = TargetUserName, Member = MemberName, AddedBy = SubjectUserName | order by TimeGenerated desc

Services installed, from either log

union (SecurityEvent | where EventID == 4697 | project TimeGenerated, Computer, Detail = ServiceFileName), (Event | where EventLog == "System" and EventID == 7045 | project TimeGenerated, Computer, Detail = RenderedDescription) | where TimeGenerated > ago(7d) | order by TimeGenerated desc

Logs cleared or audit policy changed

SecurityEvent | where TimeGenerated > ago(30d) | where EventID in (1102, 4719) | project TimeGenerated, Computer, Activity, SubjectUserName

Sysmon: something opened lsass.exe

Event | where TimeGenerated > ago(1d) | where Source == "Microsoft-Windows-Sysmon" and EventID == 10 | where EventData has "lsass.exe" | parse EventData with * 'SourceImage">' SourceImage '<' * | summarize Opens = count(), Hosts = dcount(Computer) by SourceImage

PowerShell script blocks with download or decode patterns

Event | where TimeGenerated > ago(7d) | where Source == "Microsoft-Windows-PowerShell" and EventID == 4104 | where RenderedDescription has_any ("FromBase64String", "DownloadString", "Net.WebClient", "Invoke-Expression") | project TimeGenerated, Computer, RenderedDescription

DCSync: replication rights used by an account that is not a domain controller

let repl = dynamic(["1131f6aa-9c07-11d1-f79f-00c04fc2dcd2", "1131f6ad-9c07-11d1-f79f-00c04fc2dcd2", "89e95b76-444d-4c62-991a-0facbeda640c"]); SecurityEvent | where TimeGenerated > ago(7d) | where EventID == 4662 | where Properties has_any (repl) | where not(SubjectUserName endswith "$") | project TimeGenerated, Computer, SubjectUserName, SubjectDomainName

AS-REP roasting: TGTs issued without pre-authentication

SecurityEvent | where TimeGenerated > ago(7d) | where EventID == 4768 | parse EventData with * 'PreAuthType">' PreAuth '<' * | where PreAuth == "0" | summarize Tickets = count() by TargetUserName, IpAddress

Computer accounts created by users

SecurityEvent | where TimeGenerated > ago(30d) | where EventID == 4741 | where not(SubjectUserName endswith "$") | project TimeGenerated, Computer, NewComputer = TargetUserName, CreatedBy = SubjectUserName

SID History added, and trusts created or changed

SecurityEvent | where TimeGenerated > ago(30d) | where EventID in (4765, 4766, 4706, 4716) | project TimeGenerated, Computer, Activity, SubjectUserName, TargetUserName

Certificates requested, by requester

SecurityEvent | where TimeGenerated > ago(7d) | where EventID in (4886, 4887) | summarize Requests = countif(EventID == 4886), Issued = countif(EventID == 4887) by Requester | order by Requests desc

System time changed by something other than the time service

SecurityEvent | where TimeGenerated > ago(30d) | where EventID == 4616 | where SubjectUserSid != "S-1-5-19" // LOCAL SERVICE corrects the clock | project TimeGenerated, Computer, SubjectUserName, ProcessName

Remote Desktop authentications, by account and source

Event | where TimeGenerated > ago(7d) | where Source == "Microsoft-Windows-TerminalServices-RemoteConnectionManager" | where EventID == 1149 | extend Params = extract_all(@"<Param>([^<]*)</Param>", ParameterXml) | extend User = tostring(Params[0]), Address = tostring(Params[2]) | summarize Sessions = count(), Hosts = dcount(Computer) by User, Address

Logs other than Security cleared, and services set to disabled

Event | where TimeGenerated > ago(30d) | where EventLog == "System" | where (EventID == 104 and Source == "Microsoft-Windows-Eventlog") or (EventID == 7040 and RenderedDescription has "disabled") | project TimeGenerated, Computer, EventID, RenderedDescription

Defender exclusions added

Event | where TimeGenerated > ago(30d) | where Source == "Microsoft-Windows-Windows Defender" and EventID == 5007 | where RenderedDescription has "Exclusions" | project TimeGenerated, Computer, RenderedDescription

Quick lookup

QuestionEvents
Who logged on, and how?4624, Logon Type
Why did a logon fail?4625 Sub Status, 4771 and 4768 result codes, 4776
Was a password sprayed?4625, 4771 and 4776 across many accounts, 4740, then 4624
Who came in over RDP?4624 Type 10, RemoteConnectionManager 1149, LocalSessionManager 21 and 25
Where did this machine RDP to?RDPClient 1024
Was an RDP session picked up?4778, 4779, LocalSessionManager 24 and 25
Was PowerShell remoting used?WinRM 6 (client), WinRM 91 (server), 4104
Was Kerberos abused?4769 encryption type, 4768 Pre-Authentication Type, 4770
Was the directory replicated (DCSync)?4662 with a replication right GUID
Were certificates abused?4886, 4887, 4899, 4900
Was an account created or promoted?4720, 4741, 4738, 4728, 4732, 4756, 4765
Was a trust or domain policy changed?4706, 4716, 4739, 4713
What ran?4688 with command line, Sysmon 1, 4104, AppLocker 8002, App Control 3076
What persists?4697, 7045, 4698, Task Scheduler 106, Sysmon 13, 19 to 21, WMI-Activity 5861
What touched lsass.exe?Sysmon 10, Defender 1116 and 1015
What came across a share?5140, 5145, 5142
What did it download?BITS 59, Sysmon 3 and 22, DNS Client 3008
Was a USB device used?6416
When was the machine on?4608, Kernel-General 12 and 13, Kernel-Power 41, User32 1074
Was the evidence tampered with?1102, 104, 1100, 4719, 4907, 4912, 4616, Sysmon 4 and 16, Defender 5001, 5007, 5013

From reading one event to reconstructing what happened

Windows Endpoint Investigation teaches the method these events serve: correlating logons, processes, services and artifacts on a host into a timeline you can defend, and proving each step.

Read the first module free →

Weekly security engineering insights

Detection techniques, architecture patterns, and operational judgment, every Tuesday.

No spam. Unsubscribe anytime.