Benchmark: Compute Engine IAM Policy Shared Access
This benchmark answers the following questions:
- Are any Compute Engine instances sharing IAM access with untrusted users, groups, domains, or service accounts?
- Are any Compute Engine disks sharing IAM access with untrusted users, groups, domains, or service accounts?
- Are any Compute Engine images sharing IAM access with untrusted users, groups, domains, or service accounts?
- Are any Compute Engine node groups sharing IAM access with untrusted users, groups, domains, or service accounts?
- Are any Compute Engine node templates sharing IAM access with untrusted users, groups, domains, or service accounts?
- Are any Compute Engine resource policies sharing IAM access with untrusted users, groups, domains, or service accounts?
- Are any Compute Engine subnetworks sharing IAM access with untrusted users, groups, domains, or service accounts?
Usage
Install the mod:
mkdir dashboardscd dashboardspowerpipe mod initpowerpipe mod install github.com/turbot/steampipe-mod-gcp-perimeter
Start the Powerpipe server:
steampipe service startpowerpipe server
Open http://localhost:9033 in your browser and select Compute Engine IAM Policy Shared Access.
Run this benchmark in your terminal:
powerpipe benchmark run gcp_perimeter.benchmark.iam_policy_shared_access_compute
Snapshot and share results via Turbot Pipes:
powerpipe benchmark run gcp_perimeter.benchmark.iam_policy_shared_access_compute --share
Controls
- Compute disk IAM policies should only grant access to trusted principals
- Compute image IAM policies should only grant access to trusted principals
- Compute instance IAM policies should only grant access to trusted principals
- Compute node group IAM policies should only grant access to trusted principals
- Compute node template IAM policies should only grant access to trusted principals
- Compute resource policy IAM policies should only grant access to trusted principals
- Compute subnetwork IAM policies should only grant access to trusted principals