> 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-elasticache-cluster-not-associated-with-vpc.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS ElastiCache cluster not associated with VPC

### Synopsis

| Field               | Value                                           |
| ------------------- | ----------------------------------------------- |
| Rule Type           | Detection                                       |
| Finding Type        | AWS ElastiCache cluster not associated with VPC |
| Finding ID          | 60000173                                        |
| Generates a Finding | This detection rule also generates a finding    |
| Severity            | Informational                                   |
| Category            | CONFIGURATION                                   |
| Cloud Providers     | AWS                                             |
| Platform Module     | CSPM                                            |
| Asset Types         | AMAZON\_ELASTICACHE\_REPLICATION\_GROUP         |

### Description

ElastiCache clusters not associated with a Virtual Private Cloud (VPC) present a significant security risk.

AWS ElastiCache is a managed in-memory data store and caching service. By default, ElastiCache clusters created before December 4, 2013, might exist outside a VPC, exposing them to the broader internet. This misconfiguration allows unauthorized access to sensitive data stored within the cache, potentially leading to data breaches and service disruptions. Attackers could exploit this lack of network segmentation to gain unauthorized access.

The impact of this misconfiguration includes data exfiltration, unauthorized modification of cached data, and denial-of-service attacks. Associating ElastiCache with a VPC provides a logically isolated network segment, enhancing security by restricting access to authorized IP addresses only. This best practice limits the attack surface and mitigates risks.

To remediate this, ensure all ElastiCache clusters are associated with a VPC. Deploy appropriate security groups within the VPC to control network access to the ElastiCache cluster, allowing only trusted IP addresses. Regularly review and update these security groups to maintain a strong security posture. For legacy clusters, consider migrating them to a VPC to benefit from improved security.

NOTE: If you created your AWS account before 2013-12-04, you might have support for the EC2-Classic platform in some regions. AWS has deprecated the use of Amazon EC2-Classic for launching ElastiCache clusters. All current generation nodes are launched in Amazon Virtual Private Cloud only. So this rule only applies legacy ElastiCache clusters which are created using EC2-Classic.

### Remediation

AWS ElastiCache cluster VPC association can be done only at the time of the creation of the cluster. So to fix this alert, create a new cluster with VPC, then migrate all required ElastiCache cluster data from the reported ElastiCache cluster to this newly created cluster and delete reported ElastiCache cluster.

To create new ElastiCache cluster with at-rest encryption set, 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 ElastiCache Dashboard
4. Click on Redis or Memcached based on your requirement
5. Choose cluster parameters as per your requirement
6. Click on 'Advanced Redis settings' to expand the cluster advanced settings panel
7. Select desired VPC for 'Subnet group' along with other parameters

   NOTE: If you don't specify a subnet when you launch a cluster, the cluster launches into your default Amazon VPC.
8. Click on 'Create' button to launch your new ElastiCache cluster

To delete reported ElastiCache cluster, 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 ElastiCache Dashboard
4. Select reported cluster
5. Click on 'Delete' button
6. In the 'Delete Cluster' dialog box, if you want a backup for your cluster select 'Yes' from the 'Create final backup' dropdown menu, provide a name for the cluster backup, then click on 'Delete'.


---

# 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-elasticache-cluster-not-associated-with-vpc.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.
