Security · Security Troubleshooting
Authentication Failure
Cheat sheet · https://pcornel.dk/topic.php?topic=5130
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 codesjournalctl -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
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Scope / baseline | Failing case and known-good comparison are reproducible | Symptom changes across users, devices, paths or time without explanation |
| Policy / decision | Authoritative state explains the expected decision | Stale, conflicting or unexpected policy/context changes the decision |
| Enforcement / telemetry | Runtime action and same-window telemetry agree | Decision, enforcement and logs disagree or coverage is missing |
| Verification | Original test and security regression both pass | Temporary 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