TAM-A-RCH-003 · Agent · Reach: What they can touch

Agents With Their Own Accounts

The agent has its own service account, key or token, and the quality of how that identity is managed decides how much damage it can do.

When agents get their own identities, the usual machine-identity problems follow. Keys live too long, scopes are too wide, secrets end up in code, accounts are shared between agents, and nobody removes the identity when the project ends.

These problems are worse for agents because an agent can decide what to do with its access. A static script uses a token in one way. An agent might use it in any way the token allows.

It is hard to spot because machine identities rarely get access reviews. A weak or forgotten one can sit for years until someone, or something, uses it.

What it looks like

  • A staging agent's cloud key still works in production because nobody scoped it.
  • A token committed in a test file lets anyone who clones the repo act as the agent.
  • An old demo agent's service account is still an owner on a project.

Variants (7)

TAM-A-RCH-003.1Abandoned Agent Account+

The agent was retired but its identity and access were not.

Dormant identities are ideal for attackers because no one is watching them. Reconcile agent identities against a live inventory, and alert when a stale account suddenly authenticates. Tie every agent identity to a project and an owner who must renew it.

TAM-A-RCH-003.2Agent Allowed to Do Too Much+

The agent can take more actions, or heavier ones, than its job needs.

Broad tools, write permissions and no approval step let a single error cause large damage. Compare the tool list with the task, and add confirmations for risky operations. Look at calls to rarely used tools, and at anything the agent can do that the job description never mentions.

TAM-A-RCH-003.3Agent Nobody Registered+

An agent exists and holds access, but is missing from any inventory.

Shadow agents arise from team experiments and SaaS add-ons. They hold real credentials without review. Hunt through OAuth grants, API key lists and service principals for identities with no owner on record, and ask teams what they have connected. Count what you find against the inventory, and treat the gap as a risk measure.

TAM-A-RCH-003.4Keys That Never Expire+

The agent's credentials last months or years.

A stolen long-lived key stays useful for a long time. Prefer short-lived tokens issued per task. Check credential age and use patterns, especially keys used from new locations, and set rotation on every agent credential you can find. Also check whether old keys were ever rotated after staff or vendors with knowledge of them left.

TAM-A-RCH-003.5Many Agents, One Login+

Several agents use the same identity.

Logs cannot say which agent did what, and revoking the identity breaks all of them. Check for one principal active from many sources, and split by agent and task so each action has a single owner and each can be revoked on its own.

TAM-A-RCH-003.6Permissions Wider Than the Job+

The agent's roles cover far more than its task.

Wide roles mean a hijacked agent can reach many systems. Review role bindings, use access analyzers to see what is actually used, and trim to that. Compare granted permissions with the last ninety days of real calls. Start with the agents that touch production, since their reach matters most.

TAM-A-RCH-003.7Secret Baked Into the Agent+

A key or token is written into code, prompts or config.

Anyone who sees the repo, logs or prompt can use it. Models may also repeat it when asked. Scan code, prompts and traces for secrets, and rotate any that appear. Check that secrets reach the agent at run time from a vault, not from files that are committed.

Detections (13)

Controls (10)