Privileged access management
Some accounts can change how a system works, who may use it, or everything in it, and those accounts need more care than any other. This lesson follows Cedar Inc. after an account takeoverWhen an attacker gains control of someone else's account, for example through phishing or stolen credentials, and the system then treats the attacker as the owner. The attacker inherits everything the account can do., as its security team lists every kind of privilege it has and brings each one under control: just-in-time roles, approval and dual control, vaulted passwords, brokered and recorded sessions, and a way back in when everything else fails.
Where privilege lives
Cedar Inc., the company whose staff the SAMLThe Security Assertion Markup Language, a federation standard widely used for workplace single sign-on, in which the identity provider sends the application a signed assertion about the user. lessons signed in, had a bad morning this spring: an attacker phished the sign-in of Riley, a member of its finance team, and used the account for several hours before anyone noticed. Afterwards Quinn, who works on Cedar's security team, made a list of every way someone could control Cedar's systems rather than merely use them. They expected a page of administrator names. They got four kinds of entry.
There were people with administrator roles in the 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., the cloud platform and the finance system. There were built-in accounts that every system ships with and nobody can delete: root on each Linux server, the local Administrator on each Windows laptop, the database's own superuser. There were help desk staff who can reset other people's sign-in methods, which is administration by another name. And there were service accounts, software that holds broad rights so that backups and deployments can run at night.
Privileged access management, or PAM, is the practice of controlling all of these: who may hold privilege, when it is active, how the credentials behind it are kept, and what is recorded while it is used. The term also names a category of products that do some of this work, but the practice comes first. Temporary, privileged, and emergency access covered time-bound grants, separate administrator accounts and emergency accessA few tightly guarded accounts or procedures that let administrators regain control when normal sign-in or approval paths fail. Every use should raise an alert and be reviewed afterward. as governance decisions. This lesson puts those pieces together for Cedar and adds the ones that lesson left out: dual control, vaulted credentials, and brokered, recorded sessions. Protecting privileged access, in Identity security, later looks at the same controls as defenses against an attacker.
Standing and just-in-time privilege
Standing privilege is a role that is active all the time, whether or not anyone is using it. Cedar's list showed fourteen people with standing administrator roles in the identity provider, of whom three had used them in the last month. Each of the other eleven was a stolen session away from handing an attacker full control.
Just-in-time elevation replaces standing roles with eligibility. Jun, a database administrator, is eligible for the finance database's administrator role but does not hold it. When she needs it, she asks, gives a reason, and receives it for a fixed time, after which it ends by itself. The same idea works for cloud platforms, where an engineer assumes a role and receives credentials that expire within an hour, so that nothing usable is left lying in a terminal history afterwards.
Elevation goes to a separate administrator account, used only for administration and signed in with a 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. method, as the governance lesson described. Elevating the account that also reads email would bring 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 to the account with the most power.
Approval and dual control
Who approves an elevation decides whether it means anything. Jun's request names change ticket CHG-4471, which her team lead approved the day before, so the elevation can be granted automatically inside the change window and refused outside it. An urgent request at night goes to whoever is on call, and the tool refuses to let anyone approve their own request.
For the most dangerous actions, one approval is not enough. Dual control requires two people to take part: one to request and one to approve, or two to act together. Cedar applies it to changes to the identity provider's sign-in policy, to adding an administrator, and to exporting the payroll table. It slows those actions down by minutes, which is the point: an attacker with one administrator's session cannot complete them alone.
Approvals that are always granted stop meaning anything. If Jun's lead approves forty requests a day without reading them, the step is a delay, not a control, and the reviews of what happened afterwards matter more than the approval did.
Brokered and recorded sessions
A vault that shows passwords to people still lets them copy one. A session broker goes further: Jun connects to the broker, signed in as herself, and asks for a session on db-07. The broker fetches the credential from the vault and opens the connection itself, so Jun works on the server without ever seeing the password. The broker is also the only place from which administrative connections to servers are allowed, so a stolen password would not work from anywhere else.
Because every privileged session passes through it, the broker can record what happens: the commands typed, the queries run, or a video of a remote desktop. It can block commands that should never be typed, such as dropping a production table outside a change, and it lets a second person watch a sensitive session live and end it. Recordings answer the questions an audit log cannot, such as what an administrator looked at, not only what they changed.
Recordings are also sensitive. They capture whatever was on screen, including customers' data, so they need their own access controls, a retention period and a reason to be opened. The people being recorded should know it, and should not be the people who review the recordings.
Break-glass and the last administrator
All of this depends on working systems. If the identity provider is down, nobody can sign in to the broker, and nobody can elevate. That is what break-glass accounts are for: two accounts that work when everything else has failed, with long random passwords or security keys kept in sealed envelopes or a safe, excluded from the sign-in rules that could lock them out, and set to raise an alert the moment either is used. Like the emergency administrator accounts in Temporary, privileged, and emergency access, they are tested regularly, given new credentials after every use and test, and every use is reviewed by someone else.
The same thinking protects against losing control without any outage. If the last person who can manage roles removes their own role, or two administrators remove each other at the same moment, nobody is left who can fix it. A service should refuse the change that would leave no administrator, checking at the moment of the change rather than trusting what an earlier page showed, and it should count only accounts that the organization can actually reach and control: an administrator account belonging to an outside partner, or one nobody at Cedar can sign in to, does not keep Cedar in control. Never losing the last administrator returns to this check later.
Putting it in order
Few organizations can do all of this at once, and the order matters. Cedar started with the list, because privilege nobody knows about cannot be controlled. It then removed standing roles from the eleven people who never used them, put the shared passwords in a vault, and gave the remaining administrators separate accounts with security keys. Brokered sessions came last, for the servers and databases where a full record of each session was worth the cost.
| Kind of privilege | Before | After |
|---|---|---|
| Identity provider administrators | 14 standing roles | 3 eligible people, 2 hours per elevation, dual control for policy changes |
Server root accounts | One shared password in a spreadsheet | A different vaulted password per server, rotated after each use |
| Finance database administration | Direct connections from engineers' laptops | Brokered, recorded sessions inside approved change windows |
| Help desk method resets | Any agent, any account | Ordinary staff only; administrator resets need a second person |
| Emergency access | One old account nobody had tested | Two break-glass accounts, alerting on use, tested every quarter |
Service accounts, the fourth kind on Quinn's list, are missing from the table. Software holds its privilege through secrets, and keeping those is a job of its own.
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
- Count standing privilege, meet the last-administrator check, and remove a standing roleList who holds management roles in your lab tenant, try to remove the last administrator, see why a tenant user cannot be the backup, then remove a standing role and read the record.