Protecting privileged access
After Riley's mailbox, the attacker at Cedar Inc. asked for an administrator. This lesson looks at the accounts that can change everything from the defender's side: holding less administrative access for less time, asking more of an administrator's sign-in, keeping emergency accounts usable and watched, never losing the last administrator, and recording what administrators do.
Accounts that can change everything
At 10:05 on the morning Riley's account was taken over, a caller posing as an IT contractor asked Cedar Inc.'s help desk to reset MFASigning in with more than one type of factor, such as a password plus a code from an enrolled authenticator app. Two passwords are still one factor type, however many screens they appear on. on an administrator's account. Rowan called back the number in Cedar's directory, found that the administrator had asked for nothing, and refused, as Attacks on recovery and the help desk describes. The attacker already had Riley's mailbox. What they asked for next was an administrator.
An administrator account is worth more than any one person's data because it can change the rules for everyone else. It can reset other people's sign-in methods, create accounts, assign roles, change the sign-in policy, approve applications for the whole organization, add a trusted identity providerA service that authenticates users and tells other applications about the sign-in, so those applications never handle the users' passwords. In OpenID Connect it is called an OpenID Provider. and, in some systems, read or switch off the records that would show any of this. Privileged access is access like this, which reaches beyond one person's own work to other accounts, configuration and security controls.
Privilege is broader than the job title "administrator". Help desk staff who can reset other people's sign-in methods hold privileged access, and so do people who own powerful integrations, people who can approve applications for everyone, and the emergency accounts kept for outages. Privileged access management listed where privilege lives in an organization. Each of these accounts needs protection in proportion to what it can change, starting with how much of that access exists at any moment.
Fewer administrators, for less time
An account that holds administrative rights all the time is one stolen sessionThe ongoing connection between later requests and an earlier sign-in, so you are not asked for your password on every click. It is often tracked with a cookie holding an unpredictable session identifier. away from an attacker using them. This is standing access: the role is active whether or not its holder is doing administrative work. Most administrators spend most of the week on email, documents and meetings like everyone else, with their administrative role active in the background the whole time.
Just-in-time access turns the role into something an administrator activates when they need it. The account is eligible for the role but does not hold it. To activate it, the administrator gives a reason, signs in again with a strong method and, for the most powerful roles, waits for a second person to approve. The role stays active for a fixed window and then expires on its own. Temporary, privileged, and emergency access followed this process from the request to the review afterward. The table follows one fictional Cedar identity administrator through a week under each model.
| Day | Administrative work | Standing access: role active | Just-in-time: role active |
|---|---|---|---|
| Monday | Update a sign-in policy | 24 hours | 1 hour, approved by a second administrator |
| Tuesday | None | 24 hours | Not active |
| Wednesday | Unlock an employee's account named in a ticket | 24 hours | 30 minutes |
| Thursday | None | 24 hours | Not active |
| Friday | Review a new application's requested permissions | 24 hours | 1 hour |
| Saturday | None | 24 hours | Not active |
| Sunday | None | 24 hours | Not active |
| Whole week | About 2.5 hours of work | 168 hours | 2.5 hours |
Suppose this administrator's session is stolen on Tuesday afternoon. With standing access, the attacker holds every administrative permission as soon as they replay it. With just-in-time access, they hold an ordinary account, and activating the role needs a fresh strong sign-in they cannot complete and an approval someone else has to give. The figure puts the two Tuesdays side by side.
Standing access
- Stolen
- Tuesday afternoon
- Role on Tuesday
- Active, 24 hours
- Attacker holds
- Every administrative permission
- Still needed
- Nothing
Administration at once
Just-in-time access
- Stolen
- Tuesday afternoon
- Role on Tuesday
- Not active, eligible
- Attacker holds
- An ordinary account
- Still needed
- A fresh strong sign-in and an approval
Activation is refused and visible
Activation requests are visible too. One made at an odd hour, for an unusual role or with a vague reason is easy to question. Fewer administrators matter as much as fewer hours. Roles scoped to one task, such as resetting methods for ordinary employees or unlocking accounts, mean that most administrative work never needs the most powerful roles at all, and the handful of people who hold those roles are easier to protect and to watch.
Stronger sign-in for stronger access
An administrator who reads email with the same account they use to run the organization brings every phishingTricking someone, usually with a message and a look-alike sign-in page, into handing over the evidence that opens their account, such as a password or a one-time code. message and malicious link to the account with the most power. A separate administrative account, used only for administration, keeps that power off the everyday account, which faces the most attacks. Because the administrative account never reads mail or browses the web, a phishing message has far fewer ways to reach it.
Riley's takeover shows why the sign-in method matters. Riley's password and authenticator appSomething a person controls and uses to prove control of an account, such as a memorized password, an app that generates one-time codes, or a security key. It counts only after it has been registered to that account. code passed straight through a relay page, and the attacker kept the session that Cedar's real identity provider issued. A passkeyA credential that your phone, computer or password manager creates for one website and keeps for you, unlocked with a fingerprint, face or PIN. Nothing you could type is sent, and it works only for the site it was made for, which helps it resist phishing. or security keyA small physical device, plugged in or held near a phone or computer, that holds credentials and uses them to prove you have it. It is an authenticator that resists phishing. would have failed at the relay, because the browser ties the credential to the real site's address, as Phishing and relayed sign-ins explains. Administrative accounts are where phishing-resistantA property of an authentication method that binds sign-in to the real service, so evidence entered on a look-alike site cannot be passed on and used. Passkeys have it; passwords and one-time codes do not. methods should start, set through the kind of policy described in Authentication policy and SSO. A policy like that can first run in a report-only mode, which counts the sign-ins it would have refused without refusing them, so an organization sees who still signs in the old way before it switches the requirement on.
Freshness matters as well, but a recent sign-in check cannot stop a stolen session that is itself recent, as Limiting what stolen access can do explains. For privileged actions, the service asks for a phishing-resistant method at the moment of the action. Administrative sessions can also be shorter and limited to the managed devices from Device trust and posture, so that a copied session is useful for less time and from fewer places.
Recovery has to match. An administrator whose MFA can be reset after a convincing phone call is only as well protected as that call. Resets for privileged accounts need more than an ordinary reset: a callback to a number already on record, a second person's confirmation, or proofingA process for establishing confidence that someone is the real person they claim to be, for example by checking identity documents and confirming that the evidence belongs to the person presenting it. the person again, the checks Rowan's help desk uses for the most valuable accounts.
Emergency access
Strong protections can also lock out the people they protect. If the identity provider's MFA service has an outage, a new sign-in policy is misconfigured, or the administrators cannot reach their security keys, someone still needs to get in and fix it. Emergency access accounts, often called break-glass accounts, exist for that moment.
Because they must work when other things have failed, emergency accounts are often exempt from rules that ordinary administrators follow, such as depending on single sign-onSigning in once and then using several applications without entering credentials again, usually because they all rely on the same identity provider.. That makes them valuable to an attacker, so they are protected differently. There are very few of them. Their credentials, long random passwords or security keys, are kept in separate secure places, and access to those places is itself controlled and recorded. They are never used for everyday work, so any sign-in is either an emergency someone already knows about or a sign that something is wrong. Every sign-in alerts several people, and the credentials are replaced after each use, including each test.
An emergency account also has to work on the day it is needed. Credentials get misplaced, the PIN for a stored security key is forgotten, a policy change quietly starts applying to the account, or the person who knew the procedure leaves. Testing it on a schedule, by signing in, confirming that the alert reaches the people who should hear it, checking that the account still has the access it needs and then replacing its credentials, replaces an assumption with something known. A test that signs in successfully but raises no alert has found half a failure.
Never losing the last administrator
An organization can lose control of itself without any attacker. If the only administrator who can manage roles removes their own role, or leaves and has their account disabled, nobody remains who can assign that role again. The system refuses any change that would leave no one with authority to manage roles: removing the last such assignment, disabling the last such account, or deleting the role itself.
The check also has to hold when two administrators remove each other's roles at the same moment. Each request would see the other administrator still in place, so the service has to make the check and the change one step, as Administering roles safely explains.
An attacker who gains administrative access may try something similar on purpose, removing the other administrators so that defenders cannot undo their changes. The last-administrator rule alone does not stop that, because one administrator, the attacker, remains. Alerts on administrator removals, approval before privileged roles are removed, and emergency accounts that sit outside ordinary role management give defenders a way back. Each refused removal is recorded with its reason.
Watching what administrators do
Privileged actions are rare compared with ordinary activity, which makes them worth recording in full and watching closely. Each record needs the administrator who acted, the account or setting affected, what changed from and to, the outcome, and a request ID, an identifier the service gives each request, which connects the record to the other events that request caused. Recording identity activity goes further into what makes records like these useful.
Some changes deserve an alert the moment they happen: a new administrator assignment, a change to the sign-in policy, a new trusted identity provider, an emergency account sign-in, and a help desk reset of an administrator's methods. Refused requests matter as well. The refused MFA reset for Cedar's administrator told Quinn, investigating the next day, that someone was reaching for more than the account they already had.
Administrators should not be able to edit or erase the records of their own actions, and the people who review those records should not be the people being reviewed. Elevation requests, approvals and activations from just-in-time access belong in the same history, so a reviewer can see who held which role, when, and for what stated reason.
Check your understanding
Try these questions before moving on. If an answer isn't right, use the feedback and try again.
Try it in the Lab
- Ask more of a privileged sign-in and take a standing role awayCount who holds management roles, preview a passkey requirement for them, move one administrator from a password to a passkey, then remove her standing role after the work.