Benchmark: Cloud KMS IAM Policy Shared Access
This benchmark answers the following questions:
- Are any Cloud KMS keys sharing IAM access with untrusted users, groups, domains, or service accounts?
- Are any Cloud KMS key rings 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 Cloud KMS IAM Policy Shared Access.
Run this benchmark in your terminal:
powerpipe benchmark run gcp_perimeter.benchmark.iam_policy_shared_access_kms
Snapshot and share results via Turbot Pipes:
powerpipe benchmark run gcp_perimeter.benchmark.iam_policy_shared_access_kms --share
Controls
- KMS key IAM policies should only grant access to trusted principals
- KMS key ring IAM policies should only grant access to trusted principals