Security Log
Cheat sheet · https://pcornel.dk/topic.php?topic=3131
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 eventsGet-WinEvent -FilterHashtable @{LogName='Application';Level=2;StartTime=(Get-Date).AddHours(-1)}— errors last hourGet-WinEvent -ListLog * | ? RecordCount— logs with entrieswevtutil 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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Audit policy | Controls event generation | must be proven for absence claims |
| Subject/Target | Actor/object context | names/SIDs require scope interpretation |
| Logon ID | Correlates session activity | local correlation scope matters |
| Process ID | Correlates process context | PID is time-local and reusable |
| Success/Failure | Audit outcome | not 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