Academy · Attack paths and reach

What is distance to production?

Distance to production is the number of access steps between an identity, such as an AI agent or CI token, and a destructive or data-exposing action in production.

Distance to production3 steps
0Agent
1Token
2Role
3Prod DB
KEY TAKEAWAYS
  • Distance to production is how many steps sit between an agent and a destructive action.
  • There is no safe number. What matters is how many independent controls sit in between.
  • A distance of one deserves attention first: a single credential that skips every control.
  • You increase it by removing credentials from places that do not need them.

Published Last reviewed

DISTANCE TO PRODUCTION

In practice

A coding agent that holds a root API token has a distance to production of one step. An agent that needs a deploy role, then a database credential, has a longer distance. Shorter distances deserve attention first, because each step removed is one fewer control an attacker or a misbehaving agent has to pass.

The PocketOS incident is an example of a distance of one: an agent-readable token could delete a production volume directly.

DEFINITION

Distance to production is the number of access steps between an identity, such as an AI agent or CI token, and a destructive or data-exposing action in production.

IN PRACTICE

What one step actually is.

The count is only useful if everyone means the same thing by a step.

DistanceWhat it looks likeWhat to do
0The agent holds production access directly.Remove it today.
1One credential it can read reaches production.Move the credential out of reach.
2A credential unlocks a role that reaches production.Scope the role.
3 or moreSeveral independent steps, each reviewed.Monitor, do not rebuild.
HOW IT WORKS

How it works. Step by step.

The parts that make it up, in an environment with AI agents.

010: the agent

The starting identity, for example a coding agent in CI.

021: a credential

A token or key the agent can read or already holds.

032: a permission

A role or scope that credential unlocks.

043: production

A destructive or data-exposing action on a production system.

EXAMPLE

What it looks like in Elmoz

A real path shape, drawn the way the Elmoz security graph shows it.

Security GraphFocus: cursor-ciAll assetsIdentitiesData stores
ATTACK PATH7 entities · 3 access steps
cursor-ciAI coding agent · CI!deploy.ymlGitHub Actions!.env fileDeploy token, 213 daysaws2ci-deployerAWS IAM roleawsprod-accountAWS accountStagingTest dataaws!Production roleAssumable3Findings3 issuescustomer dbProduction · PIIPII/NameData findingPII/EmailData finding
FAQ

Questions, answered.

Short answers about Distance to production.

What is a safe distance to production?

There is no fixed number. What matters is how many independent controls sit between the agent and production, and whether any single credential skips all of them. A distance of one deserves attention first.

How do you increase the distance?

Keep production credentials out of developer machines and CI jobs that do not need them, require approval for production roles, and scope deploy identities so they cannot touch customer data.

Is there a real example of a distance of one?

Yes. In the PocketOS incident an account-scoped Railway token readable by a Cursor agent could delete a production volume directly.

See what your agents can reach. Before someone else does.

Book a demo and we walk through the access paths in an environment like yours.