CTL-117 · agent

A Separate Identity for Every Agent

Give each agent its own identity with task-scoped, short-lived credentials instead of borrowing a human's.

TechnicalEffort MediumEffectiveness High

When agents run as people, every mistake has a person's full reach and logs cannot tell them apart. A dedicated identity per agent, with only the permissions its task needs and tokens that expire quickly, limits blast radius and makes agent actions attributable.

Tag every agent identity so detections can filter on it. Assign a human owner who is accountable for the agent's permissions and its offboarding.

Put it in place

  1. 01Create a service principal, IAM role or GitHub App per agent and tag it as an agent.
  2. 02Grant permissions per task and remove any not used in 30 days.
  3. 03Use short-lived tokens; ban personal access tokens and admin sessions for agents.
  4. 04Deny IAM and RBAC write actions to agent identities unless managing access is their job.

Counters 5 techniques