gcp-gcs-can-modify-policy

explicit gcp emits CanModifyPolicy

match (effective permission)

{ "action": "storage.buckets.setIamPolicy", "resource_type": "google.storage.Bucket" }

emit

source typeIdentity
target type*
source<principal>
target<bucket ResourcePolicy node>
permissionsstorage.buckets.setIamPolicy

Narrative

{principal.name} can overwrite the IAM policy of {bucket.name} (storage.buckets.setIamPolicy).

Raw rule rules/explicit/gcp-gcs.yaml

id: gcp-gcs-can-modify-policy
emits: CanModifyPolicy
applies_to:
- gcp
match_effective_permission:
  action: storage.buckets.setIamPolicy
  resource_type: google.storage.Bucket
emit:
  source_type: Identity
  target_type: '*'
  source: <principal>
  target: <bucket ResourcePolicy node>
  api_source: Cloud Asset Inventory analyzeIamPolicy
  evidence_field: storage.buckets.setIamPolicy effective permission
  permissions:
  - storage.buckets.setIamPolicy
  narrative: '{principal.name} can overwrite the IAM policy of {bucket.name} (storage.buckets.setIamPolicy).'
move · open · esc close