DET-171 · agent · confidence Medium
Access Denied Bursts From Agents
Spot agents probing their permissions through many failed calls across services.
Cloud audit logs record denied calls with an error code. An agent that tries many services in a short window leaves a burst of AccessDenied or UnauthorizedOperation errors from one identity. Counting distinct services with errors per agent per 10 minutes is a simple, strong check.
Look at what the agent did right after the burst. Probing that ends in a successful call to a sensitive service, or in an IAM change, is the pattern to escalate.
- Data sources
- AWS CloudTrailAzure Activity LogGCP Cloud Audit LogsSaaS API logs
- Platforms
- AWSAzureGCPAI Platform
Logic
index=cloudtrail errorCode IN (AccessDenied, AccessDeniedException, UnauthorizedOperation, Client.UnauthorizedOperation) | lookup agent_roles.csv arn AS userIdentity.sessionContext.sessionIssuer.arn OUTPUT agent | where agent="true" | bin _time span=10m | stats dc(eventSource) as services count as denials values(eventName) as calls by _time userIdentity.arn | where services >= 5 OR denials >= 30
False positives
Agents running health checks that touch many services.