The hostname nobody remembered
Maya has joined the security team at fictional Northstar Retail. The company has a public shop, an API, a help centre, and a handful of services managed by cloud and software vendors. The approved inventory lists four hostnames. During a routine review, an application owner mentions a staging portal, the support team uses a separate help site, and a certificate log contains names nobody recognises. Maya's first question is not “Which one can I attack?” It is “Which names belong in our inventory, and who is responsible for them?”
This is where subdomain enumeration helps. It is a structured process for finding candidate hostnames beneath a domain and then validating which are current, relevant, and owned or managed by the organisation. The examples use northstar.example; .example is reserved for documentation, so these are illustrations rather than real targets.
Maya sets a clear boundary before she begins: only the company domains and systems listed in the authorised assessment scope may be assessed. A hostname discovered in public data is a lead to verify, not permission to test the system behind it.
What subdomain enumeration finds—and what it does not
A subdomain is a name beneath another name in the DNS hierarchy. In api.northstar.example, api is a label beneath northstar.example. Other common patterns include www, shop, support, vpn, dev, and staging, but naming conventions vary from organisation to organisation.
Enumeration produces a set of candidate hostnames. It does not automatically reveal every application, prove the organisation owns every result, or demonstrate a vulnerability. Some candidates may be historical, delegated to another team, hosted by a SaaS provider, or generated by wildcard DNS. The useful outcome is a better verified inventory—not the largest possible list.
Also distinguish a hostname from a URL. A hostname identifies a DNS name; a URL can include a scheme, port, path, and query string. Several web paths can live on one hostname, and a single hostname can point to shared infrastructure. These details matter when you assign ownership and scope.
Start with passive discovery sources
Maya begins with information already available to the organisation or published through normal public services. She exports the current DNS zone where she has access, reviews cloud and SaaS asset inventories, checks configuration repositories, and asks service owners for known hostnames. These sources provide context that a list of names alone cannot.
She then compares the authorised domain against passive sources such as certificate-transparency logs, public DNS observations, search-engine results, and approved external asset-discovery services. Certificate logs can reveal hostnames included in publicly trusted certificates, but they are not a complete or always-current inventory: a certificate may be old, renewed, shared across names, or issued for a service the company no longer operates.
Passive discovery usually reduces direct interaction with the target services, but “passive” does not mean “complete,” “accurate,” or “risk-free in every context.” Source coverage differs, records can be stale, and the use of external services should follow the organisation’s data-handling and legal requirements.
For a broader introduction to DNS records and what they mean, read DNS Records Explained. For the process by which resolvers find answers, see DNS Fundamentals and Name Resolution.
Validate candidates with controlled checks
After collecting candidates, Maya performs limited validation within the authorised scope. The first task is to check whether a name currently resolves and what record types are returned. A and AAAA records may provide IPv4 and IPv6 addresses; a CNAME may point to another DNS name. The result, resolver, record type, and observation time should be saved together.
Next, she checks the organisation’s approved inventory and, where allowed, performs a low-impact request to the expected web service to identify whether it responds and what service it appears to be. She avoids login attempts, exploit payloads, aggressive crawling, and testing provider-owned infrastructure without explicit permission. The objective of this stage is verification and ownership, not exploitation.
A hostname that does not resolve today should not be silently deleted from history. It may be an expired record, a temporary outage, split-horizon DNS, a recently changed service, or a hostname that only exists in a particular environment. Record the observation and ask the relevant owner before deciding what it means.
Avoid wildcard DNS and other false positives
One of Maya’s sources reports a long list of possible names. Before treating each as a real host, she checks for wildcard DNS. With wildcard configurations, queries for many names that were never individually created can return similar DNS answers. Without accounting for this behaviour, a tool can make a domain appear to contain hundreds of distinct services when the observations do not support that conclusion.
Other common false positives include old certificate entries, third-party platforms, CDN and hosting addresses shared by many customers, CNAMEs that indicate a vendor dependency, and names whose DNS answers differ across resolvers or networks. A shared IP address alone does not prove that every site on it belongs to Northstar.
Maya keeps provenance with each finding: where the name came from, when it was observed, which DNS record was returned, whether it currently resolves, and what evidence connects it to the business. She labels uncertain results as candidates until the evidence is strong enough to confirm them.
Confirm ownership before assigning risk
An unfamiliar hostname can be important, but attribution comes before risk scoring. Maya compares registration and DNS administration information where available, the organisation’s cloud subscriptions, service-owner records, approved provider contracts, certificates, and application documentation. No single source should be treated as definitive when it conflicts with other evidence.
Third-party dependencies need special care. A CNAME that points to a SaaS provider may be expected. If it appears stale, Maya records the provider and asks the service owner to validate the configuration through an approved channel. She does not attempt to claim the hostname, create a matching third-party resource, or probe the vendor just because a record looks abandoned.
The result is a useful classification: confirmed in-scope asset, candidate requiring review, known third-party dependency, retired asset awaiting removal, or out-of-scope item. A clear state and a named owner make the inventory actionable.
Turn the inventory into a risk-based action list
Northstar’s list now contains more than names. It includes a production shop, an API, a staging portal, a remote-access service, and a few third-party destinations. Maya does not rank them simply by how unusual their names look. She considers whether the service is confirmed and in scope, whether it is internet-facing, what business function it serves, what technical evidence is available, and what the impact could be if it were misconfigured.
A forgotten staging site that exposes real customer data may merit urgent review. A public help centre that is intentionally operated by an approved vendor may be perfectly normal. A name that resolves to shared cloud infrastructure without a confirmed relationship may remain a candidate rather than a risk finding. Visibility is a starting point; configuration and impact determine priority.
When a real issue is confirmed, assign an owner, document evidence, agree on remediation, and verify the result after the change. When a candidate is not confirmed, keep the uncertainty explicit instead of inflating the findings count.
A repeatable and authorised workflow
- Define scope. List the domains and assets you own or have written permission to assess, including exclusions and permitted validation methods.
- Collect seed assets. Start with verified company domains, approved inventories, DNS-zone data, and known service owners.
- Discover candidates. Combine suitable passive sources; use active DNS or service checks only within the approved scope.
- Validate current state. Record DNS answers, record types, observation times, and carefully limited service evidence.
- Resolve ownership. Confirm whether each name belongs to the organisation, a known provider, or remains uncertain.
- Prioritise and assign. Consider exposure, business purpose, technical evidence, and potential impact; record an owner and next action.
- Repeat on a sensible schedule. Reconcile changes against the last inventory and investigate meaningful new or missing assets.
For a broader explanation of external asset inventory, continue with What Is an External Attack Surface? and the attack surface mapping guide. A structured discovery process complements, rather than replaces, asset-owner knowledge and an authorised security programme.
What a useful finding should contain
By the end of the review, Maya has a concise record for every confirmed asset and a separate queue for unresolved candidates. Each entry includes the hostname, parent domain, discovery source, first and last observed times where available, current DNS results, suspected service, ownership evidence, scope decision, risk rationale, responsible team, and next action.
This makes the inventory repeatable. Another analyst can understand why the hostname was included, reproduce the authorised observation, and see what still needs validation. A list of hostnames with no source, timestamps, or ownership context is much harder to maintain and can produce misleading risk reports.
As DNS observations age, compare them with the processes described in DNS Caching, TTL, and Propagation. Keep current observations distinct from historical data.
The lesson from Northstar’s review
Northstar started with a short asset list and ended with a clearer picture of production systems, staging environments, and third-party dependencies. Not every discovered name became a finding. Some were confirmed assets, some needed an owner’s review, and some were old observations that should remain historical rather than be treated as live services.
That is the purpose of defensive subdomain enumeration: reduce unknowns, improve ownership and maintenance, and give the security team a more reliable view of internet-facing assets. The quality of the result depends on source context and validation—not just on how many names were collected.
KNOWLEDGE CHECK / DNS
What should a team do when it discovers an unfamiliar subdomain?
Consider the role of the record or component described in this guide, then reveal the explanation.
Show answer
Record the evidence, validate ownership and scope, and assess the service using authorised checks. An unfamiliar hostname is not proof of a vulnerability.
CONTINUE LEARNING
Continue learning on CyberSurfaceMap
- Domains, Subdomains, DNS, and IP Addresses ExplainedStart with the core concepts and how these components fit together.
- DNS Fundamentals and Name ResolutionFollow a browser request through the DNS hierarchy and recursive resolution.
- DNS Records ExplainedLearn how address, alias, email, delegation, and policy records differ.
- DNS Caching, TTL, and PropagationUnderstand cached answers, record changes, and practical troubleshooting.
- What Is an External Attack Surface?Connect DNS findings to broader external asset inventory and risk assessment.
- External Attack Surface Assessment MethodologyUnderstand the platform's public DNS, passive subdomain, HTTP-header, and TLS checks and their limitations.
- Subdomain Enumeration for Defensive Asset DiscoveryFind and validate the subdomains associated with assets you own or are authorised to assess.
- SPF, DKIM, and DMARC ExplainedLearn how email authentication works and how to introduce policy safely.
Use DNS data only within an authorized scope. Names and records are clues to validate, not proof that a service is vulnerable.