DET-088 · human · confidence High

New IAM Users and Static Keys

Alert on IAM user, access key and console password creation outside the provisioning pipeline.

In SSO-first estates, IAM users should be rare. CloudTrail logs CreateUser, CreateAccessKey, CreateLoginProfile, AttachUserPolicy and PutUserPolicy. Filtering out the identity that runs Terraform or your account vending process leaves a short list, and anything with admin rights or created by someone on a leaver list deserves an immediate call.

Watch for the delayed use pattern too: a key created months ago, never used while its creator was employed, and then used from a new IP after they left.

Data sources
AWS CloudTrailAWS IAM credential report
Platforms
AWSIdentity

Logic

index=cloudtrail eventSource=iam.amazonaws.com eventName IN (CreateUser, CreateAccessKey, CreateLoginProfile, AttachUserPolicy, PutUserPolicy, AddUserToGroup)
  NOT userIdentity.arn="*role/terraform-deployer*"
| eval admin=if(like(requestParameters.policyArn, "%AdministratorAccess%") OR like(requestParameters.groupName, "%admin%"), 1, 0)
| stats values(eventName) as actions max(admin) as admin by userIdentity.arn requestParameters.userName
| lookup leaver_watchlist.csv arn AS userIdentity.arn OUTPUT leave_date

False positives

Legacy integrations that still need static keys, and break-glass users created by the cloud team.

Catches 2 techniques