githubEdit

Windows Event IDs and Others for Situational Awareness

Below is a living list of Windows event IDs and miscellaneous PowerShell snippets that may be useful for situational awareness once you are on a box.

Lock / screensaver

Workstation was locked

Get-WinEvent - Workstation locked
Get-WinEvent -FilterHashtable @{ LogName='security'; Id='4800' }

Workstation was unlocked

Get-WinEvent - Workstation unlocked
Get-WinEvent -FilterHashtable @{ LogName='security'; Id='4801' }

Screensaver invoked

Get-WinEvent - Screensaver invoked
Get-WinEvent -FilterHashtable @{ LogName='security'; Id='4802' }

Screensaver dismissed

Get-WinEvent - Screensaver dismissed
Get-WinEvent -FilterHashtable @{ LogName='security'; Id='4803' }

System ON / OFF

Windows is starting up

Get-WinEvent - Windows starting up
Get-WinEvent -FilterHashtable @{ LogName='security'; Id='4608' }

System uptime

Get-WinEvent - System uptime
Get-WinEvent -FilterHashtable @{ LogName='system'; Id='6013' }

Windows is shutting down

System has been shut down

System sleep / awake

System entering sleep mode

System returning from sleep

Logons

Successful logons

Logons with explicit credentials

Account logoffs

Access

Outbound RDP (client initiated)

Inbound RDP (session creation)

Inbound RDP (RdpCoreTS)

RemoteConnectionManager (RDP reconnections / connection attempts)

Outbound WinRM

Inbound WinRM

WMI activity related to Terminal Services

Inbound Network and Interactive Logons (custom parsing)

This collects 4624 events over a recent timeframe and filters by logon type and source.

Outbound Network Logons (custom parsing)

This parses 4648 events and filters out localhost targets.

Activity

Attempt to install a service

Scheduled task created

Scheduled task updated

Sysinternals usage?

Security

LSASS started as a protected process


(End of content)