> 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-elasticsearch-domain-encryption-for-data-at-rest-is-disabled.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS Elasticsearch domain Encryption for data at rest is disabled

### Synopsis

| Field               | Value                                                            |
| ------------------- | ---------------------------------------------------------------- |
| Rule Type           | Detection                                                        |
| Finding Type        | AWS Elasticsearch domain Encryption for data at rest is disabled |
| Finding ID          | 60000129                                                         |
| Generates a Finding | This detection rule also generates a finding                     |
| Severity            | Medium                                                           |
| Category            | CONFIGURATION                                                    |
| Cloud Providers     | AWS                                                              |
| Platform Module     | CSPM                                                             |
| Asset Types         | AMAZON\_ELASTICSEARCH\_DOMAIN                                    |

### Description

Elasticsearch domains lacking encryption at rest are vulnerable to unauthorized data access.

AWS Elasticsearch domains store sensitive data; disabling encryption at rest exposes this data to attackers who gain unauthorized access to the underlying storage. Compromise could result from a server breach or insider threat, leading to data exfiltration or modification. Attackers could read sensitive information in plain text from file systems, indices, logs, swap files, and snapshots.

Data breaches from this misconfiguration can result in significant financial losses, regulatory penalties, and reputational damage. Encrypting data at rest ensures that even if an attacker gains access to the storage, the data remains unreadable without the decryption key, mitigating the impact of a breach. This is a critical security best practice for protecting sensitive data.

Enable encryption at rest for all Elasticsearch domains. Use AWS KMS to manage encryption keys. Regularly audit the encryption status of all Elasticsearch domains to ensure ongoing compliance.

### Remediation

Enabling the encryption feature on existing domains requires Elasticsearch 6.7 or later. If your Elasticsearch is 6.7 or later, follow the below steps to enable encryption on the existing Elasticsearch domain:

1. Sign in to the AWS console
2. In the console, select the specific region fromthe region drop-down on the top right corner, for which the alert is generated
3. Navigate to the Amazon OpenSearch Service Dashboard
4. Go to ‘Domains’ under Managed cluster from the left panel, and choose the reported domain
5. Click on the 'Actions' button, from the drop-down select 'Edit security configuration'
6. In the Modify encryptions page, select the 'Enable encryption of data at rest' checkbox under the 'Encryption' section and choose KMS key as per your requirement. It is recommended to choose KMS CMKs instead of the default KMS \[Default(aws/es)], to get more granular control on your Elasticsearch domain data.
7. Click on 'Save changes'.

If your Elasticsearch is less than version 6.7, then AWS Elasticsearch Domain encryption can be set only at the time of the creation of the domain. To resolve this alert, create a new domain with encryption using KMS Keys and then migrate all required Elasticsearch domain data from the reported Elasticsearch domain to this newly created domain.

To set up the new Elasticsearch domain with encryption using KMS Key, refer to the following URL:

<https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html>

To delete the reported ES domain, refer to the following URL:

<https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-gsg-deleting.html>


---

# 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-elasticsearch-domain-encryption-for-data-at-rest-is-disabled.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.
