aws-kms-can-administer-via-creategrant
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) - 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."