Subdomain Takeover: What External Pentests Find First
A European financial services organisation partnered with CTDefense to run an external network penetration test on its public-facing infrastructure. The scope covered roughly 200 subdomains, accumulated over a decade of cloud migrations, retired marketing campaigns, and small acquisitions. On day one of discovery, the team surfaced a dangling CNAME pointing to a decommissioned hosting service. This is the pattern a subdomain takeover external pentest is built to find, and the reason the engagement proves exploitability rather than flagging a stale pointer.
Challenges
The client’s security team had a working inventory of its production systems, but little visibility into the wider DNS footprint that had built up alongside years of cloud adoption. Dangling DNS records, the quiet residue of that growth, were the specific exposure the team came to test.
A dangling DNS record is a DNS entry, typically a CNAME or A record, that points to a resource the original owner no longer controls, usually because a cloud-hosted app or service was decommissioned without the DNS pointer being removed. The scale of this problem is no longer niche. Silent Push’s Danglegeddon research, published in September 2026, scanned 12,500 apex domains across government, banking, pharma, and automotive sectors and reported that “among the 12,500 apex domains, we isolated 16,000 dangling subdomains and automated the takeover of 4,000 of them.” Parallel research from CSC, reviewing more than 440,000 live DNS records, found that “over 21% of DNS records point to content that does not resolve, leaving many companies vulnerable to subdomain hijacking.”
For a financial services firm whose customer-facing trust is tied to the parent domain, a hijacked subdomain is not a cosmetic issue. If a trusted hostname can be made to serve attacker-controlled content, the entire session-cookie boundary scoped to that domain becomes contestable.
Objectives
The client asked CTDefense to produce a prioritised view of its internet-facing weaknesses, with specific attention to legacy assets inherited from past projects. The engagement brief called for:
- A complete inventory of subdomains tied to the parent domain, including those not listed in internal records
- Proof of exploitability for any finding rated High or Critical, not a scanner-grade alert
- A remediation plan the IT team could work through without needing further interpretation
Services Provided
CTDefense delivered an External Network Security Audit, with the perimeter scope defined around the client’s parent domain and all subdomains derived from it. The team examined:
- The reachable services on each live host, including open ports, exposed admin interfaces, and certificate detail
- The DNS records themselves, including CNAME chains terminating at third-party providers
- The business context of each subdomain, so that any takeover finding could be rated by the sensitivity of what attached to the hostname
The scope also covered perimeter devices and other first-mover findings that regularly surface early in these engagements. For a parallel view of how an external engagement covers those layers, the companion post on what an external network pentest scope covers sits alongside this one as the methodology reference.
Execution and Outcomes
The team began with passive subdomain enumeration, combining historical DNS data, certificate transparency logs, and public resolution records to build a candidate list wider than the client’s internal inventory. Certificate transparency logs in particular surface subdomains the owner has forgotten about, because every TLS certificate ever issued for the parent domain is a matter of public record.
Each candidate was then resolved and classified. For every CNAME, the team checked whether the pointed-to resource still existed and, if it did, whether it was still owned by the client. This is the practical answer to a question CISOs often ask: how do pentesters find dangling subdomains? The workflow is less exotic than it sounds. Public DNS, public certificates, and a careful comparison against the cloud provider’s naming convention is enough to surface the strong candidates. Confirming exploitability is the harder part.
One subdomain in particular stood out. A CNAME attached to a legacy campaign hostname resolved to a cloud hosting service that no longer hosted anything the client owned. The provider’s naming convention allowed any account holder to claim the specific resource name the CNAME still pointed to.
In a controlled environment, with written client authorisation, the team registered the orphaned resource under a disposable account and deployed a plain static page. Within minutes, the trusted subdomain resolved to attacker-controlled content, still inside the client’s TLS trust chain, still accepted by browsers as a legitimate part of the parent domain. The team captured the proof-of-takeover screenshot, documented the scope of session cookies accessible through the hijacked hostname, and tore the test content down before closing the day’s log.
VPN appliance exploits are another first-mover finding in external pentests, and the two findings often sit side by side in a single report. What they share is a pattern the client would not have surfaced from scanner output alone: exploitability, demonstrated end to end.
Solutions
The dangling CNAME finding was rated Critical. CTDefense recorded the technique against MITRE ATT&CK T1584.001 (Compromise Infrastructure: Domains), which catalogues the technique under the broader pattern of adversary-controlled infrastructure reuse. CISOs often ask whether subdomain takeover is a critical vulnerability; the honest answer is context-dependent. Severity depends on what the hostname is trusted to carry. In this case, the orphaned hostname was in scope for session cookies on a wildcard parent-domain certificate, which pushes CVSS into the 9.0+ band and warrants the Critical rating.
Beyond the primary finding, the team recommended a short remediation sequence:
- Reclaim or remove every dangling record. The team supplied a prioritised list of orphaned CNAMEs. Each one is either restored to a live, owned resource or deleted from the zone.
- Attach DNS hygiene to the decommissioning process. When a cloud service is turned off, the DNS record that pointed to it is retired in the same change ticket, not as a later clean-up.
- Review certificates and wildcards. Wildcard certificates amplify takeover impact. Scoping certificates to the subdomains that genuinely need them reduces the blast radius of any future hijacked hostname.
- Schedule periodic subdomain review. Quarterly re-enumeration of the parent domain, benchmarked against the client’s own inventory, is a low-cost control that catches drift between annual engagements.
A verification pass followed the remediation window. CTDefense re-ran the discovery workflow and confirmed that every orphaned CNAME had been either reclaimed or removed, and that no new candidates had appeared in the interim.
Results
The engagement closed with the specific subdomain takeover external pentest finding retired, the wider DNS footprint reduced to records the client still owned, and a documented process to keep it that way.
For a financial services organisation whose external attack surface is the first thing a determined attacker sees, the value sits in two places: a concrete technique ID the board can reference, and a shorter list of orphaned records the IT team can keep an eye on month to month.
CTDefense continues to support finance, technology, and critical-infrastructure organisations with external network security assessments that cover both the obvious perimeter and the quieter layers that accumulate over years of growth. Organisations with a long web presence, recent cloud migrations, or inherited subdomains from acquisitions can take the same first step: a current list of what their parent domain actually resolves to, matched against what they still own.