> 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-endpoint-access-publicly-enabled.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS EKS cluster endpoint access publicly enabled

### Synopsis

| Field               | Value                                            |
| ------------------- | ------------------------------------------------ |
| Rule Type           | Detection                                        |
| Finding Type        | AWS EKS cluster endpoint access publicly enabled |
| Finding ID          | 60000271                                         |
| 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

Publicly accessible Amazon EKS cluster endpoints pose a significant security risk, enabling unauthorized access to the Kubernetes API server. This allows attackers to potentially gain control of the cluster and its workloads.

The Amazon EKS API server endpoint, by default, is publicly accessible. This misconfiguration exposes the cluster to attacks from untrusted IPs. Without proper access controls, malicious actors could exploit this to deploy malicious containers, exfiltrate sensitive data, or disrupt cluster operations. This weakens the security posture and increases the attack surface of your environment.

A compromised EKS cluster can lead to data breaches, service disruptions, and significant financial losses. Restricting access to the EKS cluster endpoint is crucial for maintaining the integrity and confidentiality of your applications and data. Proactive mitigation reduces the likelihood of successful attacks and minimizes the potential impact of breaches.

To mitigate this risk, ensure that the EKS cluster endpoint is only accessible from trusted IP addresses or VPCs. Utilize IAM roles and Kubernetes RBAC to enforce least privilege access. Regularly review and update your access control policies. Consider using private link for enhanced security.

### Remediation

**Manual steps:**

Amazon EKS - Manual remediation steps:

Enable private access to the Kubernetes API server so that all communication between your worker nodes and the API server stays within your VPC. Disable public access to your API server so that it's inaccessible from the internet.

1. Login to AWS Console
2. Navigate to the Amazon EKS dashboard
3. Choose the name of the cluster to display your cluster information
4. Under Networking, choose 'Manage networking'
5. Select 'Private' radio button
6. Click on 'Save changes'


---

# 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-endpoint-access-publicly-enabled.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.
