> 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-cloudformation-template-contains-globally-open-resources.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS CloudFormation template contains globally open resources

### Synopsis

| Field               | Value                                                        |
| ------------------- | ------------------------------------------------------------ |
| Rule Type           | Detection                                                    |
| Finding Type        | AWS CloudFormation template contains globally open resources |
| Finding ID          | 60000249                                                     |
| Generates a Finding | This detection rule also generates a finding                 |
| Severity            | High                                                         |
| Category            | CONFIGURATION                                                |
| Cloud Providers     | AWS                                                          |
| Platform Module     | CSPM                                                         |
| Asset Types         | CLOUDFORMATION\_STACK                                        |

### Description

Unsecured AWS CloudFormation templates, when deployed, create resources with globally open network access, exposing the environment to unauthorized access. This exposes the underlying infrastructure to attacks from untrusted IPs.

CloudFormation templates define infrastructure resources. Using globally open security groups or network access control lists ('0.0.0.0/0', '::/0') within these templates allows any IP address to access the resources. This misconfiguration bypasses intended security controls, enabling attackers to potentially exploit exposed services or compromise sensitive data.

The impact of this misconfiguration is significant, ranging from data breaches and unauthorized resource access to complete system compromise. Restricting network access to only trusted IP addresses minimizes the attack surface, enhancing overall security posture and reducing the risk of successful exploitation.

To mitigate this, thoroughly review all CloudFormation templates before deployment. Restrict security group and network ACL rules to explicitly defined, trusted IP addresses or ranges.

### Remediation

Prisma Cloud encourages you to review the template and ensure this is the intended behavior.

1. Goto the AWS CloudFormation dashboard.
2. Click on the Stack you want to modify.
3. Select the Template tab and then View in Designer.
4. Make your template modifications.
5. Check for syntax errors in your template by choosing Validate template near the top of the page.
6. Select Save from the file (icon) menu.
7. Choose Amazon S3 bucket, name your template and Save.
8. Copy the bucket URL and click OK.
9. Select Close to close Designer.
10. Click on the Stack you want to modify.
11. From the Actions pull down menu, select Update stack
12. Choose Replace current template and paste the URL from Designer into the Amazon S3 URL field. Then click on Next.
13. Specify stack details, then click on Next.
14. Configure stack options, then click on Next.
15. Review, then select Update stack near the bottom of the page.


---

# 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-cloudformation-template-contains-globally-open-resources.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.
