> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/aws-cloudtrail-logs-are-not-encrypted-using-customer-master-keys-cmks.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS CloudTrail logs are not encrypted using Customer Master Keys (CMKs)

### Synopsis

| Field               | Value                                                                   |
| ------------------- | ----------------------------------------------------------------------- |
| Rule Type           | Detection                                                               |
| Finding Type        | AWS CloudTrail logs are not encrypted using Customer Master Keys (CMKs) |
| Finding ID          | 60000005                                                                |
| Generates a Finding | This detection rule also generates a finding                            |
| Severity            | Informational                                                           |
| Category            | CONFIGURATION                                                           |
| Cloud Providers     | AWS                                                                     |
| Platform Module     | CSPM                                                                    |
| Asset Types         | CLOUDTRAIL\_TRAIL                                                       |
| ATT\&CK Tactic      | TA0040 (TA0040)                                                         |
| ATT\&CK Technique   | T1486 (T1486)                                                           |

### Description

AWS CloudTrail logs lacking encryption using Customer Master Keys (CMKs) expose sensitive operational data to unauthorized access.

CloudTrail logs record all API calls made within an AWS account. Without CMK encryption, these logs, potentially containing sensitive credentials or configuration details, are vulnerable to data breaches if the underlying storage is compromised. Attackers could exploit this misconfiguration to gain unauthorized access to sensitive information and escalate privileges within the environment.

Compromised CloudTrail logs lead to significant data breaches, impacting compliance, potentially resulting in regulatory fines and reputational damage. Encrypting logs with CMKs ensures data confidentiality, even if the storage is compromised, maintaining compliance and protecting sensitive operational information. This best practice is crucial for maintaining data integrity and mitigating the risk of data breaches.

Implement CMK-based encryption for all CloudTrail logs. Regularly audit CloudTrail configurations to ensure encryption remains active and correctly configured. Consider integrating CloudTrail with other security services for enhanced monitoring and alert capabilities.

### Remediation

**Manual steps:**

CloudTrail Trail - Manual remediation steps:

1. Login to AWS Console and navigate to the 'CloudTrail' service.
2. For each trail, under Configuration > Storage Location, select 'Yes' to 'Encrypt log files' setting
3. Choose and existing KMS key or create a new one to encrypt the logs with.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/aws-cloudtrail-logs-are-not-encrypted-using-customer-master-keys-cmks.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
