Zero standing privileges (ZSP) is an access model in which no person, service or AI agent keeps privileged access to production between tasks: admin roles, write access and root are granted for one job, approved, and expire on their own. You’ll also see it called zero standing privilege or zero standing access, and all three describe the same goal.

What are zero standing privileges?

Picture production on a quiet night, with nobody deploying or debugging. Under zero standing privileges, nothing that could damage it is switched on. No admin role sits on an engineer’s account, no shared database password works, and no AI agent carries a key it could use. When work starts, one privilege is requested, approved, used and removed again.

Accounts don’t disappear. An engineer still signs in, reads dashboards and queries staging. What ZSP takes away is the privileged part, and you decide where that line runs. A reasonable first list is writes and deletes on production data, bulk reads of customer data, changes to who has access, and root on servers. Writing that list down is the first real decision of a ZSP program, because every later step (what to block, what to approve, what to log) depends on it.

Few environments reach zero everywhere. An emergency admin account has to work when the approval system is down, and a running application can’t wait for anyone to approve its own login. The point is to make those exceptions short, named and watched, which the section on reducing standing privileges covers.

What is a standing privilege?

A standing privilege is persistent privileged access that works right now, whether or not anyone needs it: an admin role assigned last spring, a database password in a shared vault folder, an SSH key in a server’s authorized_keys, a cloud access key in a CI variable or in an AI agent’s environment. Standing access is the same thing from the resource’s side. Anyone holding that role or that secret can use it this minute.

Most programs start with role assignments, because the identity provider can list them. Credentials are harder to find and they usually matter more. A shared Postgres password grants whatever its database login allows to anyone who has the string, and no review of roles will turn it up. The same goes for a kubeconfig copied to a laptop, a personal access token pasted into an agent’s settings, or a long-lived API key in a deploy script.

When we audit an environment for this, we’d count three things:

  1. Privileged role assignments, in the identity provider, cloud IAM and each database.
  2. Credentials for production systems that a person, a script or an agent holds.
  3. Identities that can create or approve grants.

The third is the one teams forget, and it has its own section below.

Why standing privileges are a risk

Attackers rarely need an exploit when a working login will do. MITRE ATT&CK files this under Valid Accounts (T1078): credentials of real accounts, stolen and then used for initial access, persistence, privilege escalation and defense evasion. A standing privilege makes that technique pay off at once, since whatever the account could do yesterday it can still do the moment someone else signs in with it. ATT&CK also notes that attackers like inactive accounts, such as those of people who have left, because nobody is around to notice odd activity on them.

Standing privileges stack, too, which is what makes lateral movement cheap for an attack that has one foothold. A laptop holding a kubeconfig, a cloud key and a database password reaches three systems, and each of those may hold secrets for the next. ATT&CK makes the same point about permissions that overlap across local, domain and cloud accounts: they let an attacker pivot until they reach administrator level.

Plenty of damage needs no attacker at all. A script pointed at the wrong environment, an on-call engineer at the end of a long shift, or an agent following an instruction it read in a ticket uses exactly the access a thief would. Prompt injection makes the agent case worse, as the guide to agentic AI security explains.

Then there’s the audit. With standing access, the log shows that a privileged account ran a query, and nothing about why that account was allowed to run it that day. A grant made for a task carries a reason, an approver and an expiry, so the auditor’s question has an answer.

ZSP vs just-in-time access, least privilege and zero trust

These four terms turn up in the same sentences, and they answer different questions.

Question it answersWhat it changesWhat it leaves open on its own
Least privilegeHow much access?Each grant is the minimum the task needsA minimal role that is assigned permanently is still standing
Zero trustShould this request be believed?No implicit trust from network location or device ownership (NIST SP 800-207)A per-request check can approve a broad standing grant every time
Just-in-time (JIT) accessWhen does access exist?Grants are requested, approved and expireCredentials held outside the request flow stay standing
Zero standing privilegesWhat is left when nobody is working?Nothing privileged is active between tasksNothing by itself: it is a target, reached with the other three

JIT is how most teams get to ZSP, which is why the two get mixed up. They come apart quickly in practice. You can run JIT on top of plenty of standing privileged access, for example by adding an approval flow for admin roles while every shared database password stays in the vault folder and in the agent’s environment. ZSP is the state you reach once nothing privileged lives outside that flow. The guide to just-in-time access goes into request flows, durations and one-off grants.

Least privilege and zero trust get confused for a similar reason, since both show up in every access policy. The principle of least privilege limits the size of a grant; zero trust decides whether to trust the request carrying it. ZSP adds time to the first and removes the last standing exception from the second.

How to reduce standing privileges

The usual first project is an approval flow for admin roles. It helps, and it leaves most of the exposure where it was. We’d work in this order instead:

  1. Inventory. List the three kinds of standing access above for every production system, including CI jobs and agents, and pull from the logs who actually used each privilege in the last month or two.
  2. Credentials. Take them away from people and agents first. Put a proxy in front of the resource that holds the upstream credential, so engineers and agents authenticate as themselves and never see the database password. Once nobody needs the old shared password, rotate it.
  3. Default blocks. Block the sensitive actions at the resource: writes to production, bulk reads of customer tables, sudo, changes to access. The block applies to everyone and stays on.
  4. Expiring exceptions. Make each grant an exception to that block. Scope it to one identity, one resource and, where the tool allows it, one kind of statement, with an expiry. A temporary role depends on a removal job running on time; if it doesn’t, the role stays. An exception that lapses leaves the block exactly where it was.
  5. Deliberate exceptions. Decide what stays standing and watch it. Break-glass accounts and application logins keep their access. Keep them out of human hands, scope them to what they actually do, and alert on every use.
  6. Repeat. Run the inventory again on a schedule. New standing access arrives with every new hire, integration and agent, so the list from step 1 is only true for a few weeks.

Step 2 is where most of the risk goes away, and it’s the step role-based programs skip because no identity provider reports it. Steps 3 and 4 decide whether a mistake fails open or closed. Approvals should reach people where they already work, usually chat, and nobody should approve their own request; the JIT guide covers that part of the flow in more detail.

Zero standing access for AI agents

An agent usually gets production access the same day someone needs an answer from the database, and the shortcut is a password in an environment variable. That variable is read by every session the agent ever starts, including ones launched by people who never needed production, and the database logs all of them as one user. Agents also act on what they read and run without anyone watching, so the same password serves whoever manages to slip an instruction into a ticket or a README.

Zero standing access for an agent means each session starts with nothing privileged, and a grant covers one session. That depends on the agent having its own identity. Cloud agent platforms such as Devin and Cursor issue a signed, short-lived OIDC token per session that also names the person who started it (AI agent identity explains how that pairing works).

Formal’s Devin setup guide shows the whole loop. A policy blocks Devin’s machine user by default, at connection and on every request. When Devin needs data, it triggers an approval workflow, supplying its own reason and a number of minutes, and the person who started the session gets a Yes/No message in Slack. On Yes, a separate workflow identity suspends the block, with a condition that matches the session owner’s email and the Devin session ID:

input_condition: 'input.end_user.email == "${{ trigger.user.oidc.claims.requesting_user_email }}" && input.user.oidc.claims.devin_id == "${{ trigger.user.oidc.claims.devin_id }}"'
oneoff: false
expiration_minutes: ${{ trigger.payload.expiration_minutes }}

Both values in the condition come from the verified token. The docs say never to put payload fields into input_condition, because Devin writes the payload and could inject CEL into it. The duration does come from the payload, and that’s acceptable: the approver reads it in the Slack message before clicking Yes. When the minutes run out, the block applies again. Starting another session means asking again, since the session ID in the condition won’t match. Masking and read-only policies keep applying during the grant. The Devin integration page covers the rest of the setup.

Cursor runs its cloud agents through Formal on the same principle. Roy Xu, on Cursor’s security team:

“We’ve limited the amount of data that those cloud agents can access and we’re able to tie that back to the specific user who is using that cloud agent, which is a feature that I’m only aware of Formal having.”

— Roy Xu, Software Engineer, Security @ Cursor

Who can create a grant?

Whoever can create a grant holds a standing privilege one step removed. If an engineer can approve their own request, or an agent’s credential can call the API that creates exceptions, the default block stops nobody who knows where to click. A ZSP program has to cover the control plane that hands out access as well as the systems behind it.

The Devin guide handles this with two machine users and a Formal Permission, a policy on control plane API calls. From the docs:

allow = false if {
  input.user.id == "<DEVIN_MACHINE_USER_ID>"
  not input.app.command.name in {"CreateFederationToken", "CreateWorkflowTrigger"}
}

allow = false if {
  input.user.id == "<WORKFLOW_MACHINE_USER_ID>"
  input.app.command.name != "CreatePolicySuspension"
}

Devin’s identity can mint a short-lived connection token and start the approval workflow, and nothing else. The workflow’s identity can create suspensions and nothing else, and its workflow only reaches that step after a person clicks Yes. The guide’s reason for the split is that Devin “can never create its own suspension.”

People get the same treatment. List everyone who can create a suspension directly, in the Policy Suspensions tab or through the API, and review that list as carefully as the list of production admins. It’s usually a shorter list, and a phished account on it can exempt itself from any policy you’ve written.

How Formal approaches zero standing privileges

Formal PAM puts a protocol-aware proxy, the Connector, in front of databases, servers, Kubernetes clusters and APIs, and evaluates policy on the traffic that passes through it. The default block is a policy like any other.

Each grant is a policy suspension, tied to a single policy and a single user or group. A one-off suspension is used up by its first matching request, while a time-bound one keeps matching until its expiry, and a CEL condition can narrow either kind to one resource or one statement type. The requester’s reason is kept for the audit trail.

Suspensions fail toward the block. When one expires, Formal deletes it, and an admin who deletes one early cuts access off on the spot. Bad conditions behave the same way: a condition with a syntax error, or one that returns something other than true or false, never matches, so the requester stays blocked and Formal doesn’t flag it, which means you should try each condition by hand before a workflow starts creating it. Leave out expiration_minutes in an API call and the suspension runs for a full day. We’d always pass a duration.

There are three ways to create one: approving an employee’s access request, a Workflow whose ask-in-chat step waits for a Yes or No in Slack before acting, or a direct CreatePolicySuspension call from your own tooling. Workflow definitions are YAML files, which you can keep in Terraform alongside the policies they lift.

The credential step from the list above is what Native Users are for. A Native User defines how the Connector authenticates upstream, from a value stored in Formal, an environment variable on the Connector, or a hook that runs at connection time, after policy has allowed the connection. Formal identities never need to know or send the upstream credential, so the shared Postgres password can leave every laptop. For contractors, temporary users are deleted automatically after the time you set.

One credential does stand: a Formal access token is valid for 7 days by default. It identifies the user to the Connector, and every privileged action that user attempts still hits the block until a suspension covers it.

Cutting standing access without breaking the workflows engineers rely on was one of Cursor’s requirements, and the Cursor case study reports the result: engineers no longer hold permanent production permissions and ask for access when a task calls for it. If we had to pick one place to start, it would be the shared credentials. No identity provider reports them, and once the Connector holds them, the engineer’s only change is signing in as themselves.