> 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-api-gateway-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 API Gateway is not configured with Network Security Groups

### Synopsis

| Field               | Value                                                          |
| ------------------- | -------------------------------------------------------------- |
| Rule Type           | Detection                                                      |
| Finding Type        | OCI API Gateway is not configured with Network Security Groups |
| Finding ID          | 60000962                                                       |
| Generates a Finding | This detection rule also generates a finding                   |
| Severity            | Medium                                                         |
| Category            | CONFIGURATION                                                  |
| Cloud Providers     | OCI                                                            |
| Platform Module     | CSPM                                                           |
| Asset Types         | OCI\_API\_MANAGEMENT\_API\_GATEWAY                             |
| ATT\&CK Tactic      | TA0006 (TA0006)                                                |
| ATT\&CK Technique   | T1552 (T1552)                                                  |

### Description

Oracle Cloud Infrastructure (OCI) API Gateways lacking Network Security Group (NSG) configurations present a significant security risk. An unconfigured API Gateway exposes the entire API to unauthorized network access, potentially leading to data breaches or service disruptions.

OCI API Gateways manage inbound and outbound network traffic for APIs. Without NSGs, any IP address can access the gateway. This misconfiguration exposes the API to attacks from untrusted IPs, potentially enabling attackers to exploit vulnerabilities or access sensitive data. Lack of granular control through NSGs increases the attack surface and compromises the security posture of the APIs.

The impact of this misconfiguration includes unauthorized access to APIs, data breaches, and potential service disruptions. Implementing NSGs allows for granular control of network access to the API Gateway, reducing the attack surface and ensuring only authorized entities can interact with the APIs. This significantly enhances the security posture and reduces the risk of unauthorized access.

To mitigate this, configure NSGs on all OCI API Gateways. Define specific rules to allow access only from trusted IP addresses and specific ports needed for legitimate API interactions. Regularly review and update these rules to maintain optimal security and adapt to changing network requirements.

### Remediation

**Manual steps:**

OCI API Management API Gateway - Manual remediation steps:

1. Log in to OCI console
2. Go to Developer Services -> API Management -> Gateways
3. Click on the reported Gateway
4. Click on the 'Edit' button

   NOTE: Before you update API gateway with Network security group, make sure you have a restrictive Network Security Group already created with only specific traffic ports or with specific IP address range based on requirement.
5. On the 'Edit gateway' dialog, select the 'Enable network security groups' and select the restrictive Network Security Group
6. 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-api-gateway-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.
