Pcornel
Security · Security Troubleshooting

Authentication Failure

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

Back to the Topic

Answer

Authentication Failure isolates why a claimed identity cannot establish the expected authenticated session without confusing credential verification with authorization to a resource.

Remember

  • Authentication failed ≠ bad password automatically; account state, provider selection, time, certificate, MFA and service dependencies can fail first.
  • Successful credential check ≠ successful session issuance; token, cookie, ticket or session creation is a separate boundary.
  • One working application ≠ identity provider healthy for every relying party, protocol or policy path.
  • Authentication success ≠ authorization; proving identity does not prove entitlement to the requested resource.

First checks

  • Get-WinEvent -FilterHashtable @{LogName='Security';Id=4625} -MaxEvents 10 | fl — failure reason and status codes
  • journalctl -u sshd --since -1h — SSH reason
  • IdP sign-in log error code — cloud

Commands

Get-WinEvent -FilterHashtable @{LogName='Security';Id=4624,4625} -MaxEvents 50
Operational command for Inspect recent Windows logon success/failure events. Focus fields: event id, time, account, log…

Verify in this order

attempt → identity store → reason code

Where it usually breaks

First mismatch in signal/report → evidence preservation → scoping/analysis → containment → eradication → recovery → validation/lessons learned; preserve identity/policy/pre-state before mutation.

Authentication Failure troubleshooting/evidence map

BoundaryHealthy evidenceSuspicious evidence
Scope / baselineFailing case and known-good comparison are reproducibleSymptom changes across users, devices, paths or time without explanation
Policy / decisionAuthoritative state explains the expected decisionStale, conflicting or unexpected policy/context changes the decision
Enforcement / telemetryRuntime action and same-window telemetry agreeDecision, enforcement and logs disagree or coverage is missing
VerificationOriginal test and security regression both passTemporary recovery, bypass or adjacent regression remains

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

Confirmation

Confirm action

Continue?