Enforce KMS Key Policies for Central Landing Zone Accounts
Specification & Description
Enforce hardened KMS key policies in the Log Archive and Audit accounts to enforce separation of duties, restrict key usage to authorized AWS services via condition keys, and prevent privilege escalation through key policy overwrites or unrestricted grant creation.
Technical Specifications
Customer Managed Keys (CMKs) in the Log Archive and Audit accounts encrypt the most sensitive data in the landing zone: CloudTrail logs, Config history, Security Hub findings, and AWS Backup recovery points. A weak key policy undermines all other controls; three failure modes are most common:
- Violation of Separation of Duties: Key administrators are granted
kms:Decryptorkms:Encrypt. - Policy Overwrite Risk:
kms:PutKeyPolicyis left unrestricted, allowing admins to grant themselves decryption rights. - Unconstrained Grants:
kms:CreateGrantis not restricted bykms:GrantIsForAWSResource, allowing arbitrary access for third-party principals.
This control defines the minimum key policy structure, mandates annual rotation, and uses kms:ViaService to restrict decryption to authorized service endpoints.
Security Rationale
KMS key policies are the last line of defense for encrypted data. IAM policies cannot grant access to a KMS key that the key policy does not allow - but the inverse is not true. A permissive key policy can grant access regardless of IAM boundaries. In the Log Archive and Audit accounts, where keys protect immutable audit records and security findings, a misconfigured key policy can silently nullify the confidentiality guarantees of every upstream encryption control in the landing zone.
Business & Security Impact
A misconfigured key policy in the Log Archive or Audit account can allow unauthorized decryption of CloudTrail logs, Config snapshots, or backup recovery points. This enables an attacker to read evidence of their own activity and to exfiltrate sensitive organizational data while remaining invisible to the audit trail. It also breaks the integrity guarantee of the landing zone's centralized logging architecture.
Policy Exceptions (2)
AWS-managed keys (KeyManager: AWS) are excluded from this control. Their key policies are managed by AWS and cannot be modified. Separation of duties and rotation are enforced by AWS automatically.
Asymmetric CMKs used for digital signing (e.g. for artifact verification) are exempt from the automatic rotation requirement - AWS KMS does not support rotation for asymmetric keys. Rotation for these keys must be handled by creating a new key version and updating all consumers manually on a documented schedule.
Operational & Implementation Notes
The root account statement (AllowRootAccountFullControl) is mandatory in every KMS key policy - omitting it produces a key that can only be managed via the key policy itself, and a policy mistake can lock the key permanently. The kms:ViaService condition value format is exactly service.region.amazonaws.com for most services; CloudTrail is a global service and uses cloudtrail.amazonaws.com without a region segment.
Compliance Framework Mappings (6)
Regulatory baselines and industry standards mapped to this control specification.
| Framework / Standard | Mapped Requirements & Controls | Controls |
|---|---|---|
NIST 800-53 Rev 5NIST 800-53 | SC-12SC-28AC-3 | 3 |
CIS AWS Foundations Benchmark v3.0CIS AWS | 3.7 | 1 |
ISO 27001:2022ISO 27001 | A.8.24 | 1 |
PCI DSS v4.0PCI DSS | 3.7.1 | 1 |
HIPAA Security RuleHIPAA | 164.312(a)(2)(iv) | 1 |
SOC 2SOC 2 | CC6.1 | 1 |
* Compliance framework mappings are provided for informational architectural reference. Always verify control alignment against your organization's formal audit requirements.
Automated Detection & Rule Logic
Detection Engine: aws-api • Automated: Yes
Audit CMK rotation status, policy content for missing 'Deny' statements, and CloudTrail for unexpected Decrypt calls.
Remediation Guide & Automation
Apply hardened key policies, enable annual rotation, and restrict decryption to authorized service endpoints.
Step-by-Step Instructions
- Apply the hardened policy to all CMKs in Log Archive and Audit accounts.
- Enable automatic key rotation for all symmetric CMKs.
- Audit and revoke unconstrained grants using kms:GrantIsForAWSResource.