π‘οΈ AWS IAM Customer Managed Policy allows KMS decryption actions on all KMS keysπ’
- Contextual name: π‘οΈ Customer Managed Policy allows KMS decryption actions on all KMS keysπ’
- ID:
/ce/ca/aws/iam/customer-managed-policy-allows-kms-decrypt-on-all-keys - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Statsβ
not available
Logicβ
- π§ prod.logic.yamlπ’
- π AWS IAM Policy
- π AWS IAM Policy - object.extracts.yaml
- π§ͺ test-data.json
Similar Policiesβ
- AWS Security Hub: [KMS.1] IAM customer managed policies should not allow decryption actions on all KMS keys
Descriptionβ
Descriptionβ
This policy checks whether a customer managed IAM policy allows KMS decryption actions on all AWS KMS keys.
Rationaleβ
Customer managed IAM policies should follow least privilege and grant access only to the KMS keys that a workload, service, or user explicitly requires.
If a customer managed policy allows
kms:Decrypt,kms:ReEncryptFrom, or broader KMS decryption-related actions against*or wildcard KMS key ARNs, any principal that receives the policy can potentially decrypt data protected by keys outside its intended boundary. This increases the blast radius of credential misuse, policy misassignment, and privilege escalation.Impactβ
Restricting wildcard KMS access can require updates to applications, automation, or delegated administration workflows that currently rely on broad permissions. Before tightening the policy, identify the exact KMS keys each intended principal must use and validate the updated access in a non-production environment when possible.
Auditβ
This policy flags an AWS IAM Policy as
INCOMPLIANTwhen all of the following are true:... see more
Remediationβ
Remediationβ
Restrict KMS key scopeβ
Perform the following to update the customer managed IAM policy by replacing wildcard KMS resources with the specific KMS key ARNs that should be allowed and, where possible, narrowing broad KMS actions.
From Command Lineβ
Identify the policy and its default version:
aws iam get-policy \
--policy-arn {{policy-arn}}Retrieve the current policy document:
aws iam get-policy-version \
--policy-arn {{policy-arn}} \
--version-id {{default-version-id}}Update the policy document so that KMS decryption permissions are limited to the specific KMS key ARNs that are required.
Create a new policy version and set it as the default:
aws iam create-policy-version \
--policy-arn {{policy-arn}} \
--policy-document file://policy.json \
--set-as-defaultIf the policy already has five versions, delete an older non-default version and then create the new version:
aws iam delete-policy-version \... see more