RCP must limit KMS key access to the Organization for regulated accounts

이 페이지는 아직 한국어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우 언제든지 연락주시기 바랍니다.

Description

A Resource Control Policy (RCP) must be applied to all regulated AWS accounts to limit KMS key access to the AWS Organization. Without an RCP restricting KMS operations by organization boundary, principals outside the organization could potentially encrypt, decrypt, or generate data keys using KMS keys in member accounts.

This rule verifies that an RCP denies all eight KMS data-plane and grant actions when aws:PrincipalOrgID does not match the organization ID:

  • kms:Encrypt
  • kms:Decrypt
  • kms:GenerateDataKey
  • kms:GenerateDataKeyWithoutPlaintext
  • kms:ReEncryptFrom
  • kms:ReEncryptTo
  • kms:CreateGrant
  • kms:DescribeKey

Alternatively, a wildcard action (kms:* or *) satisfies the requirement. The actions can be split across multiple deny statements within the same policy — the rule aggregates all denied actions from statements that include the org boundary condition. Denying only a subset of these actions leaves gaps — for example, denying Decrypt but not ReEncryptTo still allows an external principal to re-encrypt data to a key they control.

Each deny statement must use a StringNotEquals or StringNotEqualsIfExists condition on aws:PrincipalOrgID to enforce the organization boundary. Actions in statements without this condition are not counted toward coverage.

Note: This is a mandatory control for regulated accounts. AWS service principals should be exempted using aws:PrincipalIsAWSService conditions. Trusted external accounts can be exempted using aws:PrincipalAccount conditions where required.

Remediation

Create a Resource Control Policy that explicitly denies all eight KMS actions listed above (or kms:*) using Action (not NotAction) from principals outside the organization and attach it to the OUs containing regulated accounts. The deny statement must include a StringNotEquals or StringNotEqualsIfExists condition on aws:PrincipalOrgID. Refer to the RCP syntax documentation and the data perimeter policy examples for guidance.