aws-kms-can-administer-via-creategrant

explicit aws emits CanAdminister

match (effective permission)

{ "action": "kms:CreateGrant", "resource_type": "AWS::KMS::Key" }

where

DescribeKey.KeyManager == CUSTOMER

emit

source typeIdentity
target type*
source<principal>
target<key node>
permissionskms:CreateGrant

Narrative

{principal.name} can create grants on {key.name} (kms:CreateGrant) - delegate Decrypt/Sign to any grantee.

Raw rule rules/explicit/aws-kms.yaml

id: aws-kms-can-administer-via-creategrant
emits: CanAdminister
applies_to:
- aws
match_effective_permission:
  action: kms:CreateGrant
  resource_type: AWS::KMS::Key
where:
- DescribeKey.KeyManager == CUSTOMER
emit:
  source_type: Identity
  target_type: '*'
  source: <principal>
  target: <key node>
  permissions:
  - kms:CreateGrant
  narrative: "{principal.name} can create grants on {key.name} (kms:CreateGrant) \u2014 delegate Decrypt/Sign\
    \ to any grantee."
move · open · esc close