Pcornel
Security · Logging & Monitoring

Windows Event Logs

Cheat sheet · https://pcornel.dk/topic.php?topic=4856

Back to the Topic

Answer

Windows event logs record security-relevant activity such as sign-ins (4624/4625), privilege use, account changes, process creation (4688) and policy changes. The Security log, Sysmon and PowerShell logs are the main sources for detection and investigation.

Remember

  • Windows Event ID ≠ meaning independent of provider, version, channel and payload.
  • Security log present ≠ required audit subcategory or event coverage enabled.
  • Source configured ≠ required event generated, transported, retained and queryable.
  • Telemetry observation ≠ root cause, intent or complete security state without independent context.

First checks

  • Get-WinEvent -FilterHashtable @{LogName='Security';Id=4624,4625,4672,4688,4720,4728,1102} -MaxEvents 20 — key events
  • wevtutil gl Security — log size/retention
  • WEF/agent forwarding status — collection

Verify in this order

Windows events → WEF/agent → SIEM

Where it usually breaks

First mismatch in event source → collection → parsing/normalization → enrichment/correlation → detection/alert → analyst/automation response → outcome; preserve identity/policy/pre-state before mutation.

Logging & Monitoring → Windows Event Logs proof map

BoundaryEstablishDoes not establish
SourceRequired asset/service, audit policy, provider/channel and event classSource inventory alone does not prove event generation
DeliveryLocal queue, transport, collector receipt and timestampsConfigured destination does not prove lossless delivery
PreservationRetention, access, raw record, integrity and provenanceStored record does not prove source truth or complete coverage
InterpretationProvider fields, identity, policy/result and adjacent evidenceEvent presence does not prove intent, causation or root cause
MonitoringQuery/detection plus source and pipeline healthNo alert does not prove no activity or compromise

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4856

Confirmation

Confirm action

Continue?