> 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-load-balancer-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 Load balancer not configured with Network Security Groups

### Synopsis

| Field               | Value                                                         |
| ------------------- | ------------------------------------------------------------- |
| Rule Type           | Detection                                                     |
| Finding Type        | OCI Load balancer not configured with Network Security Groups |
| Finding ID          | 60000964                                                      |
| Generates a Finding | This detection rule also generates a finding                  |
| Severity            | Medium                                                        |
| Category            | CONFIGURATION                                                 |
| Cloud Providers     | OCI                                                           |
| Platform Module     | CSPM                                                          |
| Asset Types         | OCI\_NETWORKING\_LOAD\_BALANCER                               |

### Description

Load balancers lacking Network Security Groups (NSGs) are vulnerable to unauthorized access and attacks.

Oracle Cloud Infrastructure (OCI) Load Balancers, when deployed without NSGs, allow unrestricted inbound and outbound network traffic. This exposes the load balancer and potentially the resources it manages to malicious actors. Untrusted IPs can freely access the load balancer, leading to data breaches, service disruptions, or complete system compromise.

The impact of this misconfiguration is significant, ranging from unauthorized access to critical resources to complete service outages. Implementing NSGs is crucial for isolating the load balancer and controlling network access, minimizing the attack surface. This best practice ensures that only permitted traffic reaches the load balancer.

To mitigate this risk, configure NSGs on all OCI Load Balancers. Define rules within the NSG to permit only necessary inbound and outbound traffic. Regularly review and update these rules to reflect evolving security needs and address any potential misconfigurations. Employ a least privilege approach, granting only the minimum necessary access.

### Remediation

1. Log in to OCI console
2. Go to Networking -> Load Balancers
3. Click on the reported load balancer

   NOTE: Before you update load balancer with Network security group, make sure you have a restrictive Network Security Group already created with only specific traffic ports based on requirements.
4. On the 'Load Balancer Details' page, click on the 'Edit' button next to 'Network Security Groups' to make the changes.
5. On the 'Edit Network Security Groups' dialog, select the restrictive Network Security Group and click on the 'Save Changes' 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-load-balancer-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.
