> 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-auto-scaling-group-launch-configuration-has-public-ip-address-assignment-enabled.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS Auto Scaling group launch configuration has public IP address assignment enabled

### Synopsis

| Field               | Value                                                                                |
| ------------------- | ------------------------------------------------------------------------------------ |
| Rule Type           | Detection                                                                            |
| Finding Type        | AWS Auto Scaling group launch configuration has public IP address assignment enabled |
| Finding ID          | 60000813                                                                             |
| Generates a Finding | This detection rule also generates a finding                                         |
| Severity            | Medium                                                                               |
| Category            | CONFIGURATION                                                                        |
| Cloud Providers     | AWS                                                                                  |
| Platform Module     | CSPM                                                                                 |
| Asset Types         | AWS\_AUTO\_SCALING\_LAUNCH\_CONFIGURATION                                            |
| ATT\&CK Tactic      | TA0112 (TA0112)                                                                      |
| ATT\&CK Technique   | T1685 (T1685)                                                                        |

### Description

Auto Scaling groups launching EC2 instances with public IP addresses enabled present a significant security risk. Instances are directly exposed to the internet, increasing the attack surface.

The AWS Auto Scaling service manages the scaling of EC2 instances. A launch configuration dictates settings for new instances, including public IP assignment. Disabling public IP assignment ensures instances are only accessible through controlled channels like load balancers or VPNs. Failure to follow this best practice exposes instances to unauthorized access, potentially leading to data breaches or system compromises from untrusted IPs.

The impact of this misconfiguration is substantial; it allows direct access to EC2 instances, bypassing security controls and increasing the risk of unauthorized access, data exfiltration, and malware infection. Restricting public IP assignment improves security posture and minimizes the attack surface. This is critical for maintaining compliance and protecting sensitive data.

To mitigate this, ensure all Auto Scaling group launch configurations are configured to not assign public IP addresses. Utilize load balancers or NAT gateways for external access. Regularly review and audit launch configurations to identify and remediate any instances with public IP addresses enabled.

### Remediation

**Manual steps:**

AWS Auto Scaling Launch Configuration - Manual remediation steps:

AWS Launch configurations are a legacy feature. Launch Templates are the modern and recommended way to specify launch parameters for your Auto Scaling groups.

To Migrating from a Launch Configuration

1. Open the Amazon EC2 console.
2. In the navigation pane, under Auto Scaling, Select Auto Scaling Groups and choose Launch Configurations.
3. Select the launch configuration you want to replace.
4. Choose Copy to launch template, then select copy selected.
5. Give the new template a name in the Copy to launch template window.
6. Click Copy.
7. On the navigated Launch Templates windows, Select newly created launch template and click Actions and then choose Modify template.
8. Expand the Advanced network configuration under the Network settings.
9. Select Disable for the Auto-assign public IP dropdown for all the network interfaces.


---

# 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-auto-scaling-group-launch-configuration-has-public-ip-address-assignment-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.
