Pcornel
Security · Security Troubleshooting

Privilege Problems

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

Back to the Topic

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

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=5144

Confirmation

Confirm action

Continue?