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

# AWS EKS cluster using the default VPC

### Synopsis

| Field               | Value                                        |
| ------------------- | -------------------------------------------- |
| Rule Type           | Detection                                    |
| Finding Type        | AWS EKS cluster using the default VPC        |
| Finding ID          | 60000273                                     |
| Generates a Finding | This detection rule also generates a finding |
| Severity            | Informational                                |
| Category            | CONFIGURATION                                |
| Cloud Providers     | AWS                                          |
| Platform Module     | CSPM                                         |
| Asset Types         | EKS\_CLUSTER                                 |
| ATT\&CK Tactic      | TA0112 (TA0112)                              |
| ATT\&CK Technique   | T1685 (T1685)                                |

### Description

AWS Elastic Kubernetes Service (EKS) clusters utilizing the default VPC represent a significant security misconfiguration. Using the default VPC exposes the cluster to potential network attacks and compromises due to its shared nature and lack of customized security controls.

The default VPC lacks granular network segmentation and control, inheriting security settings from the AWS account. This exposes the EKS cluster to threats from other resources within the default VPC, including untrusted applications or compromised instances. Attackers might leverage this to gain unauthorized access to the cluster's nodes and pods, potentially leading to data breaches or complete cluster compromise.

Failure to utilize a dedicated VPC for EKS results in reduced visibility and control over network traffic, increasing the attack surface. A dedicated VPC allows for implementation of robust security measures such as Network Access Control Lists (ACLs), Security Groups, and private subnets, enhancing protection against unauthorized access and lateral movement. This mitigates risk and improves overall cluster security posture.

To remediate this misconfiguration, create a new VPC specifically for your EKS cluster. Implement appropriate security groups to restrict inbound and outbound traffic to only necessary ports and IP addresses. Utilize private subnets to isolate the EKS cluster from public networks. Employ Network ACLs to further filter network traffic and enhance security. Regularly review and update your network security configuration.

### Remediation

**Manual steps:**

Amazon EKS - Manual remediation steps:

An AWS EKS cluster VPC cannot be changed once it is created. To resolve this alert, create a new cluster with the custom VPC as per your requirements, then migrate all required cluster data from the reported cluster to this newly created cluster and delete the reported Kubernetes cluster.

To create a new AWS EKS Cluster:

1. Open the Amazon EKS console.
2. In the left navigation pane, select Clusters, then choose Add cluster and select Create.
3. On the Configure cluster page, fill in the following:

   Name: Enter a name for your cluster.

   Kubernetes version: Select your desired version.

   Cluster service role: Select the IAM role for the cluster.

   Click Next.
4. On the Specify networking page, configure the following:

   VPC: Choose your new custom VPC.

   Subnets: Select the desired subnets.

   Security groups: Assign the necessary security groups.

   Cluster endpoint access: Choose Private, Public, or Public and Private based on your requirements.

   Click Next.
5. On the Configure logging page, enable any necessary control plane logs and click Next.
6. Proceed through the remaining Add-on configurations, review your settings on the final page, and choose Create.

To delete the reported AWS EKS Cluster:

1. Open the Amazon EKS console.
2. In the left navigation pane, select Clusters.
3. Select the reported cluster you wish to delete.
4. Prerequisite: Go to the Compute tab and delete all associated Managed Node Groups and Fargate Profiles.

   Note: You cannot delete an EKS cluster until its associated compute resources are deleted.
5. Once all compute resources have been successfully removed, click the Delete button at the top right of the cluster overview page.
6. Type the name of the cluster in the confirmation box and choose 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-eks-cluster-using-the-default-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.
