> 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/oci-kubernetes-engine-cluster-endpoint-is-not-configured-with-network-security-groups.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# OCI Kubernetes Engine Cluster endpoint is not configured with Network Security Groups

### Synopsis

| Field               | Value                                                                                 |
| ------------------- | ------------------------------------------------------------------------------------- |
| Rule Type           | Detection                                                                             |
| Finding Type        | OCI Kubernetes Engine Cluster endpoint is not configured with Network Security Groups |
| Finding ID          | 60000709                                                                              |
| Generates a Finding | This detection rule also generates a finding                                          |
| Severity            | Medium                                                                                |
| Category            | CONFIGURATION                                                                         |
| Cloud Providers     | OCI                                                                                   |
| Platform Module     | CSPM                                                                                  |
| Asset Types         | OCI\_CONTAINERS\_ARTIFACTS\_KUBERNETES\_CLUSTER                                       |

### Description

Unsecured OCI Kubernetes Engine Clusters lack Network Security Groups (NSGs), exposing node pools to unauthorized network access.

OCI Kubernetes Engine Clusters rely on NSGs for controlling network traffic to their node pools. Without NSGs, attackers can potentially exploit exposed cluster endpoints, leading to unauthorized access, data breaches, and lateral movement within the cloud environment. This misconfiguration severely impacts the security posture of the cluster.

The impact of this misconfiguration includes compromised cluster nodes, data exfiltration, and potential disruption of services. Implementing NSGs provides granular control over network access, reducing the attack surface and mitigating the risk of unauthorized access. Best practices dictate restricting access to only necessary IP addresses and ports.

To remediate this, configure NSGs on all OCI Kubernetes Engine Cluster endpoints. Define ingress and egress rules to allow only trusted IP addresses and necessary ports. Regularly review and update NSG rules to maintain a secure and controlled network environment. Monitor for any untrusted IP addresses attempting to connect to the cluster.

### Remediation

1. 'Prerequisite:' Ensure a Network Security Group (NSG) has been created with appropriate stateful ingress rules to allow access to the Kubernetes API endpoint (TCP port 6443) from authorized CIDR blocks.
2. Log in to the OCI Console.
3. Navigate to 'Developer Services', then click on 'Kubernetes Clusters (OKE)'.
4. Click on the name of the cluster you wish to modify.
5. On the cluster's details page, click the 'Edit' button.
6. In the 'Edit Cluster' dialog, scroll to the 'Kubernetes API server endpoint' section.
7. Select the radio button for 'Use security rules in Network Security Group (NSG)'.
8. From the 'Network Security Groups' dropdown menu, select the pre-configured NSG. You can assign up to five NSGs.
9. Click the 'Save' button.


---

# 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/oci-kubernetes-engine-cluster-endpoint-is-not-configured-with-network-security-groups.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.
