DET-180 · agent · confidence Medium
Baselining the Agent's Own Credentials
Learn what normal looks like for each agent service account or token, then flag the credential acting out of pattern.
Agents usually run under their own identities: service accounts, OAuth apps, connector tokens, API keys. Most behavior analytics only watch the human the agent works for. This detection builds a profile per agent identity: where it logs in from, when, which APIs it calls, which data classes it reads, and how big its reads are.
A drift in any of those is useful. A token that suddenly runs from a new cloud region, calls IAM APIs it never used, or reads a new corpus may be stolen, hijacked by injected instructions, or reconfigured by someone with access.
- Data sources
- Identity provider logsCloudTrailAPI gateway logsAgent tool-call logsOAuth app audit logs
- Platforms
- IdentityAWSAI PlatformSaaS
Logic
Per identity, keep 30 days of: source ASN, region, API action set, read volume, and hour of day. Alert when a day has an action never seen in the baseline, a new source ASN, or read volume above p99 + 3x. Example SPL: index=cloudtrail userIdentity.arn=*agent* | stats dc(eventName) as actions values(sourceIPAddress) by userIdentity.arn | where actions > baseline_actions.
False positives
New features, model upgrades and seasonal jobs all shift behavior. Add an owner-approved change list so planned shifts do not page anyone.
Catches 9 techniques
- TAM-A-ACT-006Agent Used to Steal Money or Value
- TAM-A-ACT-009Changing Records or Logs It Should Not Touch
- TAM-A-ACT-011Deleting or Wrecking Things
- TAM-A-CVR-005Gaps in the Agent Paper Trail
- TAM-A-DRV-001Agent Left Running Alone
- TAM-A-RCH-003Agents With Their Own Accounts
- TAM-A-RCH-006Borrowing a Person's Login
- TAM-A-STG-003Direct Instructions to the Agent
- TAM-A-STG-005Harmful Ask Cut Into Pieces