> 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-redshift-cluster-instance-with-public-access-setting-enabled.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS Redshift cluster instance with public access setting enabled

### Synopsis

| Field               | Value                                                            |
| ------------------- | ---------------------------------------------------------------- |
| Rule Type           | Detection                                                        |
| Finding Type        | AWS Redshift cluster instance with public access setting enabled |
| Finding ID          | 60000659                                                         |
| Generates a Finding | This detection rule also generates a finding                     |
| Severity            | High                                                             |
| Category            | CONFIGURATION                                                    |
| Cloud Providers     | AWS                                                              |
| Platform Module     | CSPM                                                             |
| Asset Types         | REDSHIFT\_CLUSTER                                                |
| ATT\&CK Tactic      | TA0001 (TA0001)                                                  |
| ATT\&CK Technique   | T1190 (T1190)                                                    |

### Description

Publicly accessible AWS Redshift clusters pose a significant security risk, enabling unauthorized access to sensitive data. This misconfiguration exposes the cluster to potential data breaches and malicious activities.

AWS Redshift clusters, by default, should not be publicly accessible. Enabling public access exposes the cluster to the internet, bypassing network security controls and allowing any entity to potentially connect and access sensitive data stored within. Attackers could exploit this misconfiguration to exfiltrate data, perform unauthorized queries, or even compromise the entire cluster.

The impact of this misconfiguration could be severe, ranging from data breaches and financial losses to reputational damage and regulatory fines. Maintaining a private network configuration for Redshift clusters is crucial for data protection and integrity. Restricting access ensures only authorized users and applications can connect to the cluster, minimizing the risk of unauthorized access.

To mitigate this risk, ensure that AWS Redshift clusters are not publicly accessible. Implement network security controls such as security groups and network ACLs to restrict access to only trusted IP addresses or ranges. Regularly review and update these security settings to maintain optimal protection.

### Remediation

**Manual steps:**

Redshift Cluster - This remediation plan addresses the security issue of an AWS Redshift cluster with public access enabled. Public access allows connections from any IP address, increasing the risk of unauthorized access and data breaches. Disabling public access restricts connections to only authorized sources, enhancing security:

1. **Access the AWS Console:** Log in to your AWS account and navigate to the AWS console.
2. **Select the Region:** From the region drop-down menu in the top right corner, choose the region where the affected Redshift cluster is located.
3. **Navigate to Redshift:** In the AWS console, locate and select the 'Redshift' service.
4. **Identify the Cluster:** On the Redshift dashboard, click on 'Clusters' in the left navigation pane. From the list of clusters, click on the name of the cluster for which you want to disable public access.
5. **Modify Public Access:** In the top menu options, click on 'Actions' and select 'Modify publicly accessible setting'.
6. **Disable Public Access:** Uncheck the box labeled 'Turn on Publicly accessible' in the 'Publicly accessible' section.
7. **Save Changes:** Click on the 'Save Changes' button to apply the modifications.

**Note:** Carefully review and test the changes before implementing them in a production environment. Disabling public access may impact applications or services that rely on public access to the Redshift cluster. Ensure that any necessary adjustments are made to maintain functionality.

**CLI code:**

Redshift Cluster - This command modifies the Redshift cluster identified by ${entity} to disable public access, enhancing security by preventing unauthorized connections:

```bash
aws redshift modify-cluster --cluster-identifier ${entity} --no-publicly-accessible --region ${entity}
```

**Terraform code:**

Redshift Cluster - This Terraform code snippet modifies the existing Redshift cluster resource to disable public access. It sets the 'publicly\_accessible' attribute to 'false', preventing unauthorized access from the public internet:

```hcl
# Modify the existing Redshift cluster to disable public access
resource "aws_redshift_cluster" "example" {
 # ... other configuration ...
 publicly_accessible = false
}
```


---

# 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-redshift-cluster-instance-with-public-access-setting-enabled.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.
