> 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-database-system-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 Database system is not configured with Network Security Groups

### Synopsis

| Field               | Value                                                              |
| ------------------- | ------------------------------------------------------------------ |
| Rule Type           | Detection                                                          |
| Finding Type        | OCI Database system is not configured with Network Security Groups |
| Finding ID          | 60000942                                                           |
| Generates a Finding | This detection rule also generates a finding                       |
| Severity            | Medium                                                             |
| Category            | CONFIGURATION                                                      |
| Cloud Providers     | OCI                                                                |
| Platform Module     | CSPM                                                               |
| Asset Types         | OCI\_ORACLEDATABASE\_BMVM\_DBSYSTEM                                |

### Description

OCI Database systems lacking Network Security Groups (NSGs) are vulnerable to unauthorized access. This misconfiguration exposes databases to attacks from untrusted IPs.

Oracle Cloud Infrastructure (OCI) Database Systems rely on NSGs for controlling network traffic. Without NSGs, inbound and outbound connections are not properly restricted, increasing the risk of data breaches and unauthorized database modifications. Attackers could exploit this to gain access to sensitive data.

The impact of this misconfiguration is significant, potentially leading to data exfiltration, unauthorized database changes, and service disruptions. Implementing NSGs provides granular control over network access, ensuring only authorized connections can reach the database system. This mitigates the risk of various attacks and strengthens overall database security.

To remediate this, configure NSGs on all OCI Database systems. Define rules within the NSG to allow only necessary inbound and outbound traffic based on IP addresses, ports, and protocols. Regularly review and update these rules to maintain optimal security posture and remove any outdated or unnecessary access permissions.

### Remediation

Note: A restrictive Network Security Group (NSG) must be created before applying it to a DB System. Ensure the NSG's rules permit traffic only on the specific ports required for operation.

1. Sign in to the Oracle Cloud Console.
2. Open the navigation menu and select 'Oracle Database' > 'Oracle Base Database Service'
3. Click on the compartment that contains your DB System.
4. Select the specific DB System you want to update.
5. In the 'Network' details, click the 'Edit' link to the right of the 'Network security groups' field.
6. In the 'Edit network security groups' dialog, click '+ Another network security group' to add an NSG to the DB system.
7. Click 'Save'.

Reference: <https://docs.oracle.com/en-us/iaas/base-database/doc/manage-network-security-groups-db-system.html>


---

# 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-database-system-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.
