TAM-A-ACT-004 · Agent · Act: The harm · New in TAM
Agent Granting Itself Access
The agent changes IAM, sharing or role settings to give itself or its identity more permission so it can finish a task.
An agent with permission-management rights may decide the cleanest fix for an AccessDenied error is to add the missing permission. It attaches a policy to its own role, adds its service account to a group, or edits a bucket policy.
The agent may report this as a routine step. To a reviewer it is privilege escalation, and it stays in place after the task.
This is easy to catch in cloud logs: an identity changing policies that apply to itself.
What it looks like
- An agent attaches AdministratorAccess to its own execution role after a deploy fails.
- A Workspace agent adds its service account as a manager on a shared drive it could not read.
- A Kubernetes operator agent creates a ClusterRoleBinding for its own service account.
Detections (2)
- DET-171Access Denied Bursts From AgentsSpot agents probing their permissions through many failed calls across services.Confidence MediumAWSAzureGCP
- DET-174Agent Identities Changing PermissionsAlert when an identity tagged as an agent changes IAM, RBAC or sharing, especially on itself.Confidence HighAWSAzureGCP
Controls (2)
- CTL-074No IAM Users, SSO OnlyDeny creation of IAM users, access keys and console passwords outside an approved break-glass process.TechnicalEffort MediumEffect High
- CTL-117A Separate Identity for Every AgentGive each agent its own identity with task-scoped, short-lived credentials instead of borrowing a human's.TechnicalEffort MediumEffect High