> 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-elastic-file-system-efs-not-encrypted-using-customer-managed-key.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS Elastic File System (EFS) not encrypted using Customer Managed Key

### Synopsis

| Field               | Value                                                                  |
| ------------------- | ---------------------------------------------------------------------- |
| Rule Type           | Detection                                                              |
| Finding Type        | AWS Elastic File System (EFS) not encrypted using Customer Managed Key |
| Finding ID          | 60000222                                                               |
| Generates a Finding | This detection rule also generates a finding                           |
| Severity            | Informational                                                          |
| Category            | CONFIGURATION                                                          |
| Cloud Providers     | AWS                                                                    |
| Platform Module     | CSPM                                                                   |
| Asset Types         | EFS\_MOUNT\_TARGET                                                     |
| ATT\&CK Tactic      | TA0040 (TA0040)                                                        |
| ATT\&CK Technique   | T1486 (T1486)                                                          |

### Description

AWS Elastic File System (EFS) instances not encrypted with customer-managed keys represent a significant security risk. Failure to encrypt EFS data using customer-managed keys leaves sensitive data vulnerable to unauthorized access if the default AWS KMS keys are compromised.

The AWS Elastic File System service allows encryption at rest using either AWS-managed or customer-managed keys. Using default keys relinquishes control over encryption key management, potentially increasing the risk of data breaches. An attacker gaining access to the default keys could decrypt and exfiltrate sensitive data stored within the EFS.

A misconfiguration allowing unencrypted EFS access could lead to data loss, regulatory non-compliance, and reputational damage. Customer-managed keys provide granular control and auditable access to encryption keys, enhancing data security and minimizing the blast radius of a potential compromise. Employing customer-managed keys aligns with best practices for data protection and reduces reliance on AWS-managed keys.

To mitigate this risk, encrypt all EFS instances with customer-managed keys. Regularly rotate these keys to further enhance security. Implement robust access control mechanisms for the KMS keys, granting only necessary permissions to authorized personnel. Monitor and audit key usage and access to maintain a secure posture.

### Remediation

**Manual steps:**

EFS Mount Target - Manual remediation steps:

AWS EFS Encryption of data at rest can only be enabled during file system creation. So to resolve this alert, create a new EFS with encryption enabled with the customer-managed key, then migrate all required data from the reported EFS to this newly created EFS and delete reported EFS.

To create new EFS with encryption enabled, perform the following:

1. Sign into the AWS console
2. In the console, select the specific region from region drop down on the top right corner, for which the alert is generated
3. Navigate to EFS dashboard
4. Click on 'File systems' (Left Panel)
5. Click on 'Create file system' button
6. On the 'Configure file system access' step, specify EFS details as per your requirements and Click on 'Next Step'
7. On the 'Configure optional settings' step, Under 'Enable encryption' Choose 'Enable encryption of data at rest' and Select customer managed key \[i.e. Other than (default)aws/elasticfilesystem] from 'Select KMS master key' dropdown list along with other parameters and Click on 'Next Step'
8. On the 'Review and create' step, Review all your setting and Click on 'Create File System' button

To delete reported EFS which does not has encryption, perform the following:

1. Sign into the AWS console
2. In the console, select the specific region from region drop down on the top right corner, for which the alert is generated
3. Navigate to EFS dashboard
4. Click on 'File systems' (Left Panel)
5. Select the reported file system
6. Click on 'Actions' drop-down
7. Click on 'Delete file system'
8. In the 'Permanently delete file system' popup box, To confirm the deletion enter the file system's ID and Click on 'Delete File System'


---

# 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-elastic-file-system-efs-not-encrypted-using-customer-managed-key.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.
