What is Privileged Access Management?
Privileged access management controls how people get administrator access to production: through a verified path, with a phishing-resistant sign-in, and only for as long as a task needs it.
In the old way, a phished password and one-time code reach an open admin panel with a standing admin role. An identity proxy, a security key, a just-in-time role, and a separate admin account each refuse it.
Privileged access is any access that can change production. Examples are a cloud administrator role, Kubernetes cluster-admin, and a database superuser. The settings of a CI system and the admin console of an identity provider count too. One privileged session can read every secret, change every workload, and delete the backups. That is why attackers try to get it first.
Privileged access management (PAM) is the set of controls on how people get and use that access. It answers four questions. How does a person reach an admin tool? How do they prove who they are? How long does the privilege last? And how do they get back in after they lose a device?
This page covers the controls for each question, with settings for common identity providers and clouds. Workloads need the same care, and workload identity federation covers them.
Why does privileged access need its own controls?
An attacker who gets privileged access early can finish an intrusion quickly. In November 2026, the FBI published a threat overview of ARTEX, an open-source framework of AI agents that run penetration tests. Some ARTEX intrusions went from first targeting to privileged access in under three hours. The advisory lists these access methods, among others:
- Weak administrative credentials.
- Administrator passwords hardcoded in single-page app JavaScript bundles.
- Stolen VPN configurations.
- An administrator token forged "using unrotated authentication keys."
None of these needs a new exploit. Each one is a privileged path that was open before the attack started. Recent incidents show the same gaps:
- A dormant account with no second factor. Bitrise's attacker signed in as a dormant internal test bot. The account had a valid password and no two-factor authentication.
- An admin system that became public. DigiCert disclosed that an internal archive system became reachable from the internet after a network move. Its self-registration feature needed no MFA, so attackers signed up and read business customer contact data.
Each gap has a control. An admin path that is open to the internet needs an identity-aware proxy. A sign-in that a fake page can capture needs a phishing-resistant factor. A role that is always on needs just-in-time activation. And a recovery process that trusts a phone call needs a check through a second channel.
How does privileged access management work?
PAM puts independent checks between a person and a privileged action. Each check refuses an attacker without help from the others, so one misconfiguration does not open the path.
Put admin paths behind an identity-aware proxy
Admin panels, internal dashboards, database consoles, Kubernetes APIs, and SSH belong on a private network. People reach them through an identity-aware proxy, such as Cloudflare Access or Google Cloud Identity-Aware Proxy. A private network such as Tailscale also works. An open port is a path that any scanner finds. The FBI's advisory asks for the same thing. It says that cloud administration, device management, hypervisors, and backup platforms belong on "trusted networks, private connectivity, or dedicated administrative paths" only.
The proxy is not enough by itself. A request that reaches the origin directly skips the proxy, so the application must verify the proxy's signed token too. Cloudflare Access, for example, sends a signed JWT in the Cf-Access-Jwt-Assertion header. The application checks its signature, issuer, and audience on every request. In Kubernetes, an Envoy-based gateway such as Envoy Gateway can verify that JWT, or run the OIDC sign-in itself, before a request reaches a pod.
Check the device as well as the person. Cloudflare Access device posture rules and Google's Context-Aware Access can refuse a request from a device that the organization does not manage. A stolen password then fails on the attacker's laptop.
Require a phishing-resistant second factor
A one-time code proves that a person has a phone. It does not prove which site they typed the code into, and a phishing page can relay it to the real site within seconds. Passkeys and hardware security keys bind each sign-in to the real site's domain. A look-alike page gets nothing it can replay. CISA calls phishing-resistant MFA "the gold standard", and names FIDO/WebAuthn as the only widely available form.
The large identity providers can enforce it:
- Okta can require a phishing-resistant authenticator in an authentication policy.
- Microsoft Entra ID can require the phishing-resistant MFA authentication strength in a Conditional Access policy.
- Google Workspace can allow only security keys for a group of users.
Require a phishing-resistant factor for everyone with production access. Then remove SMS and one-time codes as fallbacks for those accounts, because an attacker picks the weakest method that the account still accepts.
Also check MFA in the application, not only in the identity provider's policy. An OIDC identity token reports how the person signed in through its amr claim. RFC 8176 defines its values, including mfa. An admin tool that reads amr refuses a session that skipped MFA, even when a sign-in policy missed an account. Microsoft Entra ID leaves amr out of v2.0 ID tokens, so request an access token for the application's own API in the same sign-in. Add amr to that token as an optional claim, read it there, and refuse any token that has no amr.
Grant privilege just in time
A standing admin role is available to anyone who steals the session, at any hour. Just-in-time (JIT) access removes the standing role. A person is eligible for a privileged role, and they activate it for a limited time when a task needs it. Each activation needs a written justification and an MFA check. The most privileged roles also need a second person's approval. Every activation leaves an audit record.
These services work this way:
| Service | Where it grants roles |
|---|---|
| Microsoft Entra Privileged Identity Management | Microsoft Entra ID roles and Azure resources |
| Okta Privileged Access | Servers, secrets, and SaaS service accounts |
| Google Cloud Privileged Access Manager | Google Cloud IAM roles |
| AWS Temporary Elevated Access Management (TEAM) | AWS accounts through IAM Identity Center |
Check that each activation asks for MFA again. Microsoft Entra PIM, for example, can accept an MFA that the person gave earlier in the session. A Conditional Access authentication context with sign-in frequency set to every time forces a new check.
Set a maximum activation of a few hours. Keep admin sessions short as well, an hour or less, so that a stolen session expires soon after the theft. Make read-only access the default role for staff, so that most work needs no elevation at all.
Use short-lived bastions for shell access
Some work needs a shell inside the network, such as a database migration or a Kubernetes repair. Launch a bastion for that one task, scoped to one environment and one access level. Delete it when the task window ends. A bastion that does not exist cannot be scanned.
Choose a bastion that holds no long-lived key:
- AWS Systems Manager Session Manager gives a shell with no SSH key and no open inbound port.
- Azure Bastion and Google Cloud IAP TCP forwarding close the public port, but they still sign in to the VM. Pair them with Microsoft Entra ID login or OS Login instead of stored SSH keys.
How do you separate admin accounts and machines?
Use a separate account for production access. The account that reads email and browses the web is the account most likely to be phished. If it holds no production role, a phished everyday sign-in does not reach production.
Separate the machines too, where you can. Microsoft runs Secure Admin Workstations for its own administrators. These devices run only approved admin tools, and everyday apps stay off them. Microsoft's privileged access workstation guidance describes how to build one. The laptop that opens email attachments should not be the laptop that holds production access.
How do you protect recovery and emergency access?
Recovery is a sign-in path too. An attacker who cannot phish a passkey calls the help desk and asks for a reset. AI voice cloning makes that call easier to fake.
Verify identity for every MFA reset through a channel that the attacker does not control. Examples are the person's manager, or a video check against their ID. Never accept details that an attacker can look up, such as an employee ID or a start date. Alert on every reset of a privileged account.
Keep emergency access accounts, also called break-glass accounts, for the day the identity provider or the PAM service fails. Microsoft's emergency access guidance sets a good pattern:
- Keep two or more emergency accounts, and link none of them to one person.
- Protect each one with a passkey or a certificate, which are phishing-resistant.
- Exclude them from access policies that could block the sign-in in an emergency.
- Alert on every sign-in, and test each account on a schedule.
Give every critical account two owners. Cloud providers, SaaS applications, source repositories, and domain registrars each need at least two. Then one lost or compromised person cannot lock you out.
Delete dormant accounts, bots included. Review the last sign-in date of every account each month, and disable the accounts that nobody uses.
How do you keep privileges small?
Least privilege limits what each stolen session or credential is worth. Start every identity from no permissions. Then add specific actions on specific resources:
- Scope roles to named resources. A role that allows many actions on every resource is one stolen token away from most of the account. Some actions accept only
*as the resource, so limit those by action. - Default people to read-only. Grant write access only through a just-in-time activation.
- Check what can take over a cluster. In Kubernetes, an identity that can create pods or read Secrets across the cluster can expose the tokens of other service accounts. Move each client of a legacy token Secret to a projected token, which expires. Then delete the Secret.
- Remove what nobody uses. AWS IAM Access Analyzer, the Google Cloud IAM recommender, Microsoft Entra access reviews, and Okta Identity Governance find unused permissions and roles. Delete them on a schedule.
Some credentials cannot be scoped narrowly. A Cloudflare API token with DNS edit permission, for example, covers every record in its zone. Keep such a credential out of automation. Let the automation write down the change it needs, let a person make it, and let a check confirm the result. This is slower. But no runner, CI log, or compromised workflow ever holds a token that can redirect every hostname you own.
Use IP allowlists only where every allowed address belongs to you. The published address ranges of a CDN or a shared egress pool admit every other customer of that service.
How does PAM compare with a VPN and shared admin accounts?
| Area | VPN and standing admin roles | Privileged access management |
|---|---|---|
| Path to admin tools | The VPN admits the device, and the tools trust the network | A proxy checks the person and the device for each tool, and the tool checks the token |
| Second factor | Often a one-time code or a push approval | A passkey or a hardware security key |
| Privilege | Always on | Eligible, then active for a few hours with a justification |
| Shell access | Long-lived SSH keys on a fixed bastion | A bastion for one task, with no SSH key |
| Recovery | A help desk call | A check through a second channel |
| Evidence | VPN connection logs | An audit record for each activation and each request |
A VPN still has a place for networks that cannot sit behind a proxy. But stolen VPN configurations are on the FBI's list, so a VPN cannot be the only check.
Advanced Topics
Layers that do not trust each other
Build each layer so that it refuses an outside identity without help from the others. A typical admin tool has four layers.
The proxy refuses a device that the organization does not manage. The application verifies the proxy's token itself. Single sign-on proves the person, and the application reads the MFA claim in the identity token. Every request checks the session again. A gap in one layer then leaves three more.
Look for shared failure modes. If the proxy and the application both trust the same unverified header, they are one layer, not two. If every layer trusts one identity provider, an outage or a compromise of that provider affects all of them, which is why emergency accounts exist.
Session lifetime and revocation
Short sessions limit what a stolen session is worth, but only if revocation works. Write a runbook that revokes every session, token, and key for one person within minutes. Then test it: disable the account in the identity provider, and confirm that the admin tools, the cloud consoles, and the CLI sessions all stop. Some cloud CLI sessions keep working until their temporary credentials expire. Set their maximum duration to match your revocation goal.
Audit every privileged action
Send activations, approvals, bastion sessions, and admin requests to one log store outside the systems they describe. Review a sample each week: who activated which role, for which ticket, and for how long. An activation with no matching ticket is a finding, even when the person meant well.
Privileged Access Management with Spice
Spice Cloud applies these controls to its own production. Privileged access is just in time, staff default to read-only access, and every staff view of customer data leaves an audit record. Every Spice Cloud org also has owner, admin, member, and viewer roles. Each route, server action, and Management API call checks the caller's role.
Spice.ai Enterprise can authenticate callers with JWTs from an OIDC provider such as Okta, Microsoft Entra ID, or Google. This feature is in preview. Cedar policies then use the token's user, org, and role claims to control access to datasets. The Spice.ai authorization recipe secures a set of datasets with Cedar policies. From one Spicepod, it shows multi-tenancy, row-level security, PII masking, and role-based access. It needs the Enterprise distribution.
The same rules apply to AI agents. Secure AI sandboxing gives an agent temporary, scoped datasets instead of production databases, and logs each query. Agent data serving puts that access behind one governed endpoint. Privileged access is one layer of a wider design, and defense in depth covers what stops the next step when one layer fails.
Privileged Access Management FAQ
Privileged access management (PAM) controls how people get and use administrator access to production. It routes admin access through a verified path and requires a phishing-resistant sign-in. It grants each privileged role only for a limited time.
Just-in-time access replaces a standing admin role with an eligible one. A person activates the role for a few hours when a task needs it, with a justification and an MFA check. The role then expires on its own.
A passkey or a hardware security key signs each sign-in for the domain of the real site, so a look-alike page cannot use the result. A phishing page can relay a one-time code to the real site. So a one-time code is not phishing-resistant.
No. A VPN admits a device to the network, and the tools behind it often trust that network. Stolen VPN configurations are on the FBI list of ARTEX access methods. Put each admin tool behind an identity-aware proxy, and verify the proxy token in the tool.
A break-glass account is an emergency admin account for the day the identity provider or the PAM service fails. Keep two or more, and protect each with a passkey. Alert on every sign-in, and test each account on a schedule.
Learn more about privileged access
Docs and posts on securing admin access and the endpoints that people and agents call.
API Authentication Docs
Protect the HTTP and Arrow Flight SQL endpoints of the Spice runtime with read-only and read-write API keys.
How Spice AI Secures Infrastructure Against Machine-Speed Attacks
Secure by default, by design, and in depth: the controls Spice AI runs against AI-driven attacks, and the checklist any team can copy.
Spice AI achieves SOC 2 Type II compliance
Spice AI completed its SOC 2 Type II audit, with an independent auditor checking its security controls.
See Spice in action
Get a guided walkthrough of how development teams use Spice to query, accelerate, and integrate AI for mission-critical workloads.
Get a demo (opens in a new tab)


