> 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-configured-with-instance-metadata-service-hop-count.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 configured with Instance Metadata Service hop count...

### Synopsis

| Field               | Value                                                                                                          |
| ------------------- | -------------------------------------------------------------------------------------------------------------- |
| Rule Name           | AWS Auto Scaling group launch configuration configured with Instance Metadata Service hop count greater than 1 |
| Rule Type           | Detection                                                                                                      |
| Finding Type        | AWS Auto Scaling group launch configuration configured with Instance Metadata Service hop count greater than 1 |
| Finding ID          | 60000814                                                                                                       |
| 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                                                                      |

### Description

AWS Auto Scaling groups with Instance Metadata Service (IMDS) hop count exceeding 1 present a significant security risk. An attacker could potentially intercept sensitive data, including instance metadata and potentially secrets, during transit.

The IMDS provides metadata about EC2 instances. Setting the hop count above 1 allows the IMDS response, including the secret token used for authentication, to traverse network segments outside the EC2 instance's subnet. This increases the attack surface and the risk of data breaches by allowing unauthorized access or modification.

A misconfiguration of this nature compromises the confidentiality and integrity of sensitive instance data. Maintaining a hop count of 1 ensures that the IMDS response remains confined within the EC2 instance's network, minimizing the exposure of sensitive information. This protects the instance and potentially connected resources from unauthorized access.

To remediate this, ensure that all AWS Auto Scaling group launch configurations are configured with an IMDS hop count of 1. Regularly review and update your launch configurations to maintain this security setting. Implementing strong network segmentation and access controls further enhances security.

### Remediation

You cannot modify a launch configuration after you create it. To change the launch configuration for an Auto Scaling group, use an existing launch configuration as the basis for a new launch configuration with IMDS with a hop count equal to 1.

To update the Auto Scaling group to use the new launch configuration follow the steps below:

1. Open the Amazon EC2 console.
2. On the left navigation pane, under 'Auto Scaling', choose 'Auto Scaling Groups' and Choose 'Launch configurations' near the top of the page.
3. Select the reported launch configuration, choose Actions, then click 'Copy launch configuration'. This sets up a new launch configuration with the same options as the original, but with 'Copy' added to the name.
4. On the 'Create launch configuration' page, expand 'Advanced details' under 'Additional Configuration - optional'.
5. Under the 'Advanced details', go to the 'Metadata response hop limit' section.
6. Edit the text box and set the value to 1.
7. When you have finished, click on the 'Create launch configuration' button at the bottom of the page.
8. On the navigation pane, under Auto Scaling, choose Auto Scaling Groups.
9. Select the check box next to the Auto Scaling group.
10. A split pane opens up at the bottom part of the page, showing information about the group that's selected.
11. On the Details tab, click on the 'Edit' button adjacent to the 'Launch configuration' option.
12. Under the 'Launch configuration' dropdown, select the newly created launch configuration.
13. When you have finished changing your launch configuration, click on the 'Update' button at the bottom of the page.

After you change the launch configuration for an Auto Scaling group, any new instances are launched with the new configuration options. Existing instances are not affected. To update existing instances,

1. Log in to the AWS Console
2. In the console, select the specific region from the region drop-down in the top right corner, for which the alert is generated.
3. Refer 'Configure instance metadata options for existing instances' section from the following URL:

<https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-existing-instances.html>

To delete the reported Auto Scaling group launch configuration follow the steps below:

1. Open the Amazon EC2 console.
2. On the left navigation pane, under 'Auto Scaling', choose 'Auto Scaling Groups' and Choose 'Launch configurations' near the top of the page.
3. Select the reported launch configuration, choose Actions, then click 'Delete launch configuration'.
4. Click on the 'Delete' button to delete the autoscaling group launch configuration.


---

# 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-configured-with-instance-metadata-service-hop-count.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.
