Overview
Curated: · Written: · Reviewed:
Privileged Access Management
In one line
PAM makes privileged authority temporary, narrow and attributable: a standard identity for daily work, and elevation that is requested for a stated purpose, approved by someone else, scoped to explicit resources, strongly authenticated, recorded and removed automatically. Reach for it whenever a permanent admin role or a shared admin credential exists, because a vaulted permanent superuser is still standing privilege.
Key definitions
- Standing privilege: authority that exists whether or not anyone is doing privileged work. Every grant needs an owner, a purpose, a maximum duration and a retirement condition.
- JIT (just-in-time) elevation: a named actor requests a role, an independent approver grants it, and it expires on its own.
- JEA (just-enough administration): the elevated identity is limited to explicit resources and actions. JIT alone does not bound what the session can do.
- Tier 0 / Tier 1 / Tier 2: a Tier-0 identity never authenticates to a Tier-1 or Tier-2 system, so a compromise lower down cannot harvest Tier-0 credentials.
- Break-glass: a tested emergency path that does not depend on the system that failed. It is sealed, alerted on every use and rotated after use.
- Session brokering: the session passes through a proxy that enforces the grant and records what happens. Recording is evidence, not prevention.
Formulas and complexity
Revocation delay is set by the longest credential lifetime plus propagation, not by the sum of lifetimes, because the lifetimes run in parallel:
Worked example (hypothetical figures): a 2-hour console session, a 1-hour token cache and 5 minutes of propagation give 2 h 5 min of worst-case exposure after the grant is pulled, not 3 h 5 min.
AWS facts to quote: aws:MultiFactorAuthAge is in seconds, so 900 means 15 minutes. A role session lasts at most MaxSessionDuration, which is 1 to 12 hours with a 1-hour default. A session obtained by role chaining is capped at 1 hour regardless of that setting.
How it works
The engineer requests a role with a reason and a ticket, then completes a phishing-resistant MFA ceremony. An approver independent of the requester approves. The system issues a short-lived, audience-bound credential, and the session runs through a broker that records it. Expiry or explicit revocation removes the authority, and the removal is checked at the target system, not in the PAM console.
When to use and when not to
| situation | use JIT and brokering | keep standing access |
|---|---|---|
| Routine admin on a Tier-1 host, several times a week | yes, with a 2-hour grant | no |
| Read-only monitoring used all day | no, friction without gain | yes, if narrowly scoped and reviewed |
| Break-glass for an IdP outage | sealed credential, not JIT | sealed, never used day to day |
| Automation calling a cloud API | workload identity with short tokens | no shared static keys |
| Approver unavailable at 3 a.m. | pre-approved emergency grant with post-hoc review | no silent bypass |
| Legacy host that accepts only a shared root account | brokered checkout, one logged session per person | no direct root login |
| Vendor engineer during a 4-hour maintenance window | grant bounded to the window, named sponsor | no standing vendor account |
Traps interviewers probe
- Calling a vault PAM. A vault gives check-out and rotation, but a vaulted permanent superuser is still standing privilege. Fix: add JIT activation and JEA scope.
- Treating rotation as the fix for an over-broad role. Rotation does not reduce what a service role can read. Fix: narrow the role to the resources and actions the job needs, and split per shard or per environment where one role spans them all.
- Assuming the MFA condition holds on chained roles. Role chaining removes the MFA context keys, so a policy that checks MFA can be silently bypassed. Fix: deny chaining explicitly where the policy relies on MFA.
- Believing that closing the ticket revokes access. A role session stays valid until it expires, up to 12 hours. Fix: shorten lifetimes, deny by
aws:TokenIssueTime, and verify the denial at the target. - Letting the requester or the PAM admin approve. Self-approval and single-admin approval both defeat the control. Fix: require an approver independent of both the requester and the admin who runs the vault.
Interview tips
Open by naming the threat: permanent authority, credential theft or unattributable action. Then say which control closes which gap and what it costs in friction.
Expect these follow-ups:
- What counts as privileged here? Include nested groups, service accounts, CI roles, shared accounts and vendor access.
- What happens when the approval path is down? Use break-glass with compensating logging, not a silent bypass of approvals.
- Where do audit events go? Write them to append-only storage that the host cannot rewrite, and forward them promptly. A local segment file is evidence only until the host is compromised.
- How do you stop one secrets broker from holding
db_adminon every shard? Issue short-lived, per-shard credentials and verify the broker cannot mint a broader one. - How do you control commands on a jump host? Allowlist parsed argv, not raw strings, and remember that shell escapes defeat string matching.
30-second outline: "The risk is standing authority. I'd keep daily work on a standard identity and activate elevation just-in-time, with an independent approver, phishing-resistant MFA and an expiry bounded to explicit resources. The session goes through a broker, and the audit trail goes to storage the host cannot alter. Revocation is verified at the target. Break-glass is sealed, alerted on use and tested against the outage it covers."
Feedback on this overview
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.