Privilege Problems
Cheat sheet · https://pcornel.dk/topic.php?topic=5144
Answer
Privilege Problems isolates missing, excessive, expired or unexpectedly effective privilege by tracing identity/session state, role or group assignment, elevation/JIT/PAM workflow, token/claim refresh, scope and enforcement.
Remember
- Assigned admin role ≠ active privilege in the current session.
- Privilege denied ≠ missing group membership only; scope, JIT expiry, approval, token refresh and explicit deny matter.
- Privilege works ≠ privilege is appropriately scoped or authorized.
- Permanent elevation to fix an incident ≠ acceptable troubleshooting shortcut.
First checks
whoami /priv; sudo -l— privileges- Recent permission/group changes — cause
- JIT activation status — elevation
Verify in this order
user → required privilege → granted via process
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.
Privilege Problems 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=5144