DET-164 · human · confidence Medium
Unplanned GCP Resource Creation
Monitor Admin Activity audit logs for new VMs, buckets, disks and service accounts created outside normal processes.
Google Cloud writes Admin Activity logs for every create and modify call, and they are on by default. They show the project, caller, method and source IP. An insider setting up staging space or a new identity will show up here.
Pay most attention to new service accounts, since they can hold lasting access, and to resources in the wrong project or folder. Create log-based metrics and alerting policies so the signal reaches a person.
- Data sources
- GCP Admin Activity audit logsCloud Asset Inventory
- Platforms
- GCP
Logic
protoPayload.methodName IN ("v1.compute.instances.insert","storage.buckets.create","v1.compute.disks.insert","google.iam.admin.v1.CreateServiceAccount") AND NOT protoPayload.authenticationInfo.principalEmail:"terraform@"False positives
Autoscaling, CI pipelines and data science notebooks generate creation events. Exclude their service accounts after confirming.
Catches 7 techniques
- TAM-H-ACT-015Installing Malware From Inside
- TAM-H-ACT-021Making Unapproved Changes to IT Systems
- TAM-H-ACT-029Putting Off-Limits Apps on Work Machines
- TAM-H-CVR-036Switching Off the Recorder
- TAM-H-RCH-001Access Held by Outsourced IT
- TAM-H-STG-020Hopping to New Systems
- TAM-H-STG-025Leaving Something Behind