Pcornel
Security · Logging & Monitoring

Authentication Logs

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

Back to the Topic

Answer

Authentication Logs record attempts to establish identity and session state across interactive, service, federated and machine authentication paths, including method, source, target, result and reason context needed for detection and troubleshooting.

Remember

  • Authentication success ≠ authorization, benign behavior or intended user activity.
  • Authentication failure ≠ bad password; policy, lockout, trust, certificate, time, MFA and service dependencies can fail first.
  • Source configured ≠ required event generated, transported, retained and queryable.
  • Telemetry observation ≠ root cause, intent or complete security state without independent context.

First checks

  • journalctl -u sshd --since -1h | grep -E 'Accepted|Failed' — SSH
  • Get-WinEvent -FilterHashtable @{LogName='Security';Id=4624,4625,4771,4776} — Windows auth
  • IdP sign-in logs — cloud auth

Verify in this order

login attempt → auth log → 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 → Authentication 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=4858

Confirmation

Confirm action

Continue?