Pcornel
Windows · Event Logging

Security Log

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

Back to the Topic

Answer

The Security log is evidence of audited security-relevant activity. Its usefulness depends on audit policy, event scope, retention and access permissions.

Remember

  • Security events exist only for activity that Windows audits under the effective policy.
  • Audit success/failure means an audited operation outcome, not system health.
  • Event IDs are provider/context dependent even when common Windows Security IDs are well known.
  • Access to the Security log is restricted and remote collection has additional permission/transport boundaries.
  • Absence of a Security event is not proof an action did not occur unless audit coverage is proven.

First checks

  • Get-WinEvent -LogName System -MaxEvents 50 — recent System events
  • Get-WinEvent -FilterHashtable @{LogName='Application';Level=2;StartTime=(Get-Date).AddHours(-1)} — errors last hour
  • Get-WinEvent -ListLog * | ? RecordCount — logs with entries
  • wevtutil gl <log> — log size and retention

Verify in this order

audit policy → events generated by LSA → Security log → forwarded

Where it usually breaks

First mismatch in definition/configuration → security context → service/task/process creation → runtime state → output/side effect → event/performance evidence; preserve identity/native error/pre-state before mutation.

Event Logging → Security Log reference map

BoundaryMeaningEvidence limit
Audit policyControls event generationmust be proven for absence claims
Subject/TargetActor/object contextnames/SIDs require scope interpretation
Logon IDCorrelates session activitylocal correlation scope matters
Process IDCorrelates process contextPID is time-local and reusable
Success/FailureAudit outcomenot equivalent to secure/insecure state

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

Confirmation

Confirm action

Continue?