> 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-route53-hosted-zone-having-dangling-dns-record-with-route53-hosted-zone-5d345501.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS Route53 Hosted Zone having dangling DNS record with... (Route53 Hosted Zone) (5d345501)

### Synopsis

| Field               | Value                                                                                                                          |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| Rule Name           | AWS Route53 Hosted Zone having dangling DNS record with subdomain takeover risk associated with AWS Elastic Beanstalk Instance |
| Rule Type           | Detection                                                                                                                      |
| Finding Type        | AWS Route53 Hosted Zone having dangling DNS record with subdomain takeover risk associated with AWS Elastic Beanstalk Instance |
| Finding ID          | 60000809                                                                                                                       |
| Generates a Finding | This detection rule also generates a finding                                                                                   |
| Severity            | High                                                                                                                           |
| Category            | CONFIGURATION                                                                                                                  |
| Cloud Providers     | AWS                                                                                                                            |
| Platform Module     | CSPM                                                                                                                           |
| Asset Types         | ROUTE53\_HOSTED\_ZONE                                                                                                          |

### Description

Dangling DNS records in AWS Route53 Hosted Zones, pointing to non-existent Elastic Beanstalk instances, create a subdomain takeover risk. Attackers could exploit this misconfiguration to register a similar Elastic Beanstalk instance, gaining control of the subdomain for malicious purposes.

Route53 manages DNS records for domains. A CNAME record in a Hosted Zone points a subdomain to another domain. If the target Elastic Beanstalk instance is deleted, the CNAME becomes 'dangling', leaving the subdomain vulnerable. An attacker can create a new Elastic Beanstalk instance with the same name in their own account, redirecting traffic to malicious content.

Successful exploitation allows attackers to perform phishing, malware distribution, and other harmful activities under the compromised subdomain, damaging reputation and potentially leading to data breaches. Removing dangling CNAME records ensures that only valid resources are accessible via the DNS.

To mitigate this risk, regularly review Route53 Hosted Zones for CNAME records pointing to deleted Elastic Beanstalk instances. Delete these dangling records promptly. Implement automated checks to identify and alert on such misconfigurations. Consider using a process for decommissioning resources to prevent the creation of dangling records in the first place.

### Remediation

Identify DNS record entry pointing to a non-existing Elastic Beanstalk (EBS) resource.

To remove DNS record entry, follow steps given in following URL: <https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resource-record-sets-deleting.html>


---

# 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-route53-hosted-zone-having-dangling-dns-record-with-route53-hosted-zone-5d345501.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.
