π AWS CloudTrail is not encrypted with KMS CMK π’
- Contextual name: π CloudTrail is not encrypted with KMS CMK π’
- ID:
/ce/ca/aws/cloudtrail/encryption-with-kms-cmk
- Located in: π AWS CloudTrail
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
SECURITY
Similar Policiesβ
- Cloud Conformity
- Internal
dec-x-d896d172
Similar Internal Rulesβ
Rule | Policies | Flags |
---|---|---|
βοΈ dec-x-d896d172 | 1 |
Logicβ
- π§ prod.logic.yaml π’
Descriptionβ
Descriptionβ
AWS CloudTrail is a web service that records AWS API calls for an account and makes those logs available to users and resources in accordance with IAM policies. AWS Key Management Service (KMS) is a managed service that helps create and control the encryption keys used to encrypt account data, and uses Hardware Security Modules (HSMs) to protect the security of encryption keys. CloudTrail logs can be configured to leverage server side encryption (SSE) and KMS customer created master keys (CMK) to further protect CloudTrail logs. It is recommended that CloudTrail be configured to use SSE-KMS.
Rationaleβ
Configuring CloudTrail to use SSE-KMS provides additional confidentiality controls on log data as a given user must have S3 read permission on the corresponding log bucket and must be granted decrypt permission by the CMK policy.
Impactβ
Customer created keys incur an additional cost. See https://aws.amazon.com/kms/pricing/ for more information.
Auditβ
Perform the following to determine if CloudTrail is configured to use SSE-KMS:
... see more
Remediationβ
Remediationβ
Perform the following to configure CloudTrail to use SSE-KMS:
From Consoleβ
Sign in to the AWS Management Console and open the CloudTrail console at https://console.aws.amazon.com/cloudtrail.
In the left navigation pane, choose
Trails
.Click on a Trail.
Under the
S3
section click on the edit button (pencil icon).Click
Advanced
.Select an existing CMK from the
KMS key Id
drop-down menu.
Note: Ensure the CMK is located in the same region as the S3 bucket.
Note: You will need to apply a KMS Key policy on the selected CMK in order for CloudTrail as a service to encrypt and decrypt log files using the CMK provided. Steps are provided here for editing the selected CMK Key policy.
- Click
Save
.- You will see a notification message stating that you need to have decrypt permissions on the specified KMS key to decrypt log files.
- Click
Yes
.From Command Lineβ
Run the following command to specify a KMS key ID to use with a trail:
... see more