AWS Route 53 Domain Transferred to Another Account
Identifies when an AWS Route 53 domain is transferred to another AWS account. Transferring a domain changes administrative control of the DNS namespace, enabling the receiving account to modify DNS records, route traffic, request certificates, and potentially hijack operational workloads. Adversaries who gain access to privileged IAM users or long-lived credentials may leverage domain transfers to establish persistence, redirect traffic, conduct phishing, or stage infrastructure for broader attacks. This rule detects successful domain transfer requests.
Rule type: query
Rule indices:
- filebeat-*
- logs-aws.cloudtrail-*
Rule Severity: high
Risk Score: 73
Runs every:
Searches indices from: now-6m
Maximum alerts per execution: ?
References:
Tags:
- Domain: Cloud
- Data Source: AWS
- Data Source: Amazon Web Services
- Data Source: AWS Route 53
- Use Case: Asset Visibility
- Tactic: Persistence
- Tactic: Resource Development
- Resources: Investigation Guide
Version: ?
Rule authors:
- Elastic
- Austin Songer
Rule license: Elastic License v2
Disclaimer: This investigation guide was created using generative AI technology and has been reviewed to improve its accuracy and relevance. While every effort has been made to ensure its quality, we recommend validating the content and adapting it to suit your specific environment and operational needs.
Transferring a Route 53 domain to another AWS account is a high-impact administrative action. A successful transfer enables the recipient account to fully manage the domain and all associated DNS resources. Unauthorized transfers can result in loss of visibility and control, traffic redirection, service outages, or domain hijacking for phishing, credential harvesting, or command-and-control.
This rule detects successful calls to TransferDomainToAnotherAwsAccount. These events are rare and should be considered
high-risk unless explicitly documented and approved.
Identify the actor and authentication context
- Review
aws.cloudtrail.user_identity.arnandaws.cloudtrail.user_identity.access_key_idto determine who initiated the transfer. Determine whether the actor typically performs Route 53 administrative actions or if this represents anomalous behavior.
- Review
Review request details and target account
- Inspect
aws.cloudtrail.request_parametersfor:DomainName,AccountIdreceiving the transfer, Request tokens or validation parameters. Validate whether the destination AWS account is recognized, trusted, or documented in ownership transfer procedures.
- Inspect
Assess environment and timing
- Compare
@timestampagainst maintenance windows, deployment pipelines, or approved domain operations. Review the region and endpoint used; domain transfers occurring from unexpected regions may indicate unauthorized access.
- Compare
Analyze source and execution context
- Review
source.ip,source.geo.country_iso_code, anduser_agent.originalto determine:- If the request originated from known networks, Whether it matches typical administrator access patterns or if suspicious automation tools, outdated SDK versions, or unknown agents were used.
- Review
Correlate with broader activity
- Pivot on the same IAM principal or access key ID to identify:
- Recent IAM policy changes or privilege escalation
DisableDomainTransferLock, which normally precedes domain transfers- AWS console sign-ins from new geolocations or ASNs
- API calls involving certificate requests, hosted zone changes, or DNS record edits
- Look for evidence of lateral movement or credential theft preceding the transfer.
- Pivot on the same IAM principal or access key ID to identify:
Validate with business owners
- Confirm with domain owners, development teams, or asset managers whether The transfer was intentional.
- Expected domain migrations
- Organizations with multi-account strategies may transfer domains between operational, security, or sandbox accounts.
- Business events
- Mergers, acquisitions, or contractual transitions between managed service providers often involve bulk domain transfers.
- Automated administrative tooling
- Domain lifecycle automation or infrastructure-as-code pipelines may trigger transfers if misconfigured.
Contain and revoke access
- If unauthorized, immediately invalidate the IAM session or access keys used in the transfer.
- Rotate credentials for the implicated IAM user or role and require MFA for privileged operations.
Reverse or halt the transfer
- Contact AWS Support as soon as possible to request assistance reversing or blocking the transfer if it was not approved.
- Re-enable transfer lock (
DisableDomainTransferLock=false) to prevent further modifications.
Investigate the extent of compromise
- Review CloudTrail to identify all actions performed by the actor before and after the transfer.
- Check for additional changes to hosted zones, DNS records, certificates, or registrar contact details.
Restore operational integrity
- Validate DNS routing, certificate issuance, and application endpoints for signs of redirection or tampering.
- Communicate with impacted teams and external stakeholders if customer-facing domains were affected.
Hardening and long-term improvements
- Restrict domain transfer permissions to a minimal set of roles using IAM Conditions such as
aws:PrincipalArnandaws:MultiFactorAuthPresent - Consider SCPs to block domain-transfer APIs in production accounts.
- Add change-management tracking for domain ownership modifications.
- Restrict domain transfer permissions to a minimal set of roles using IAM Conditions such as
event.dataset: aws.cloudtrail
and event.provider: route53domains.amazonaws.com
and event.action: TransferDomainToAnotherAwsAccount
and event.outcome: success
Framework: MITRE ATT&CK
Tactic:
- Name: Persistence
- Id: TA0003
- Reference URL: https://attack.mitre.org/tactics/TA0003/
Technique:
- Name: Account Manipulation
- Id: T1098
- Reference URL: https://attack.mitre.org/techniques/T1098/
Framework: MITRE ATT&CK
Tactic:
- Name: Resource Development
- Id: TA0042
- Reference URL: https://attack.mitre.org/tactics/TA0042/
Technique:
- Name: Compromise Infrastructure
- Id: T1584
- Reference URL: https://attack.mitre.org/techniques/T1584/
Sub Technique:
- Name: Domains
- Id: T1584.001
- Reference URL: https://attack.mitre.org/techniques/T1584/001/