> 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-rds-instance-not-in-private-subnet.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS RDS instance not in private subnet

### Synopsis

| Field               | Value                                        |
| ------------------- | -------------------------------------------- |
| Rule Type           | Detection                                    |
| Finding Type        | AWS RDS instance not in private subnet       |
| Finding ID          | 60000236                                     |
| Generates a Finding | This detection rule also generates a finding |
| Severity            | Medium                                       |
| Category            | CONFIGURATION                                |
| Cloud Providers     | AWS                                          |
| Platform Module     | CSPM                                         |
| Asset Types         | RDS\_DATABASE\_INSTANCE                      |

### Description

AWS Relational Database Service (RDS) instances deployed in public subnets are exposed to unauthorized access from the internet. This exposes sensitive data to potential attacks and breaches.

AWS RDS instances should reside within private subnets to restrict direct internet access. Publicly accessible RDS instances are vulnerable to unauthorized connections and data exfiltration. Attackers could exploit this misconfiguration to gain access to sensitive database information without traversing any security controls.

The impact of this misconfiguration includes data breaches, unauthorized data modification, and potential service disruption. Maintaining RDS instances in private subnets ensures a stronger security posture by limiting direct internet exposure and requiring connections to traverse network security controls, such as firewalls and network access control lists.

To mitigate this risk, ensure all AWS RDS instances are deployed within private subnets. Implement appropriate network security controls, such as security groups and network ACLs, to further restrict access to only authorized users and systems. Regularly review and update security configurations to maintain a secure environment.

### Remediation

To resolve this alert, you should redeploy RDS into a private RDS Subnet group.

Note: You can not move an existing RDS instance from one subnet to another.

Create a RDS Subnet group:

A DB subnet group is a collection of subnets (typically private) that you create for a VPC and that you then designate for your DB instances.

1. Open the Amazon RDS console
2. In the navigation pane, choose 'Subnet groups'
3. Choose 'Create DB Subnet Group'
4. Type the 'Name' of your DB subnet group
5. Add a 'Description' for your DB subnet group
6. Choose your 'VPC'
7. Choose 'Availability Zones'
8. In the Add subnets section, add your Private subnets related to this VPC
9. Choose Create

When creating your RDS DB, under Configure advanced settings, choose the Subnet group created above.


---

# 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-rds-instance-not-in-private-subnet.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.
