> 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-ebs-snapshots-are-accessible-to-public.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS EBS snapshots are accessible to public

### Synopsis

| Field               | Value                                        |
| ------------------- | -------------------------------------------- |
| Rule Type           | Detection                                    |
| Finding Type        | AWS EBS snapshots are accessible to public   |
| Finding ID          | 60000030                                     |
| Generates a Finding | This detection rule also generates a finding |
| Severity            | High                                         |
| Category            | CONFIGURATION                                |
| Cloud Providers     | AWS                                          |
| Platform Module     | CSPM                                         |
| Asset Types         | EBS\_SNAPSHOT                                |
| ATT\&CK Tactic      | TA0001 (TA0001)                              |
| ATT\&CK Technique   | T1190 (T1190)                                |

### Description

Publicly accessible Amazon EBS snapshots expose sensitive data to unauthorized users. This misconfiguration allows anyone to download and potentially exploit the data within these snapshots.

Amazon EBS snapshots are persistent block storage volumes used with Amazon EC2 instances. Making snapshots public removes access controls, enabling any individual with internet access to download the snapshot and potentially access sensitive data stored within. This exposes the organization to data breaches and unauthorized data exfiltration.

The impact of this misconfiguration includes data loss, unauthorized access to sensitive information, and potential regulatory fines for non-compliance. Restricting access to only authorized users protects sensitive data and maintains compliance. Best practices ensure that only those with a legitimate need can access the data, minimizing the risk of breaches.

To mitigate this risk, ensure that all EBS snapshots have appropriate access controls. Restrict access to specific AWS accounts or IAM roles. Regularly review snapshot permissions and remove unnecessary public access.

### Remediation

**Manual steps:**

EBS Snapshot - This remediation address the Amazon Elastic Block Store (EBS) snapshots that are accessible to the public. This means that anyone with access to the AWS console could potentially access and download these snapshots, potentially exposing sensitive data:

1. **Log in to the AWS console:** Access the AWS Management Console using your AWS account credentials.
2. **Select the specific region:** From the region dropdown menu in the top right corner of the console, choose the region where the affected EBS snapshots are located. This region is specified in the alert you received.
3. **Navigate to the EC2 service:** In the AWS console, search for and select the 'EC2' service.
4. **Access the Snapshots:** Under the 'Elastic Block Storage' section, click on the 'Snapshots' option.
5. **Identify the affected snapshots:** Locate the specific snapshots that are flagged as publicly accessible. These snapshots will be listed in the 'Snapshots' view.
6. **Change snapshot permissions:** For each affected snapshot, click on its Snapshot ID to access its details. In the snapshot details page, locate the 'Share permissions' section. Under 'Snapshot settings' and click on 'Modify permissions', change the value of the 'Sharing options' field to 'Private' and Click on the 'Modify Permissions'. This will restrict access to the snapshot to only authorized users within your AWS account.

**Note:** Carefully review and test these steps before implementing them in your production environment. Changing snapshot permissions can impact the availability of your EC2 instances if they rely on these snapshots for data recovery or other purposes. Ensure you have a backup plan in place before making any changes.

**CLI code:**

EBS Snapshot - This command removes the 'all' group from the 'createVolumePermission' attribute of the specified snapshot, making it inaccessible to the public:

```bash
aws ec2 modify-snapshot-attribute --snapshot-id ${entity} --attribute createVolumePermission --operation-type remove --group-names all --region ${entity}
```


---

# 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-ebs-snapshots-are-accessible-to-public.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.
