← All articles

Subdomain Enumeration Tools Compared (Free and Open Source)

A subdomain enumeration tool discovers the hostnames that exist under a domain — api.example.com, staging.example.com, old-portal.example.com — by querying certificate logs, DNS records, search engines and other public sources instead of guessing blindly. The best free options right now are Subfinder for fast passive discovery, OWASP Amass for deep active mapping, assetfinder for a quick one-off pass, and crt.sh as the raw certificate transparency source most of the others read from. No single subdomain enumeration tool catches everything, so most practitioners run two or three and merge the output.

This post compares the tools people actually run — what each one queries, how fast it is, and where it falls short — so you can pick a setup instead of guessing. It's about enumeration, not about what to do after you find a stale subdomain; for that, see our piece on checking whether a subdomain is vulnerable to takeover.

Why subdomain enumeration matters

Every forgotten subdomain is a potential entry point: an old marketing microsite still pointing at a decommissioned hosting provider, a staging environment with default credentials, an internal admin panel that was never meant to be public. Attackers enumerate subdomains before touching anything else, because the subdomain list defines the attack surface. If your own security team hasn't run the same enumeration, you're mapping your perimeter less thoroughly than the people trying to get into it.

This is also why subdomain enumeration sits upstream of several other problems. A subdomain you didn't know about can't be patched, monitored, or checked for misconfigurations. It's also the first step in mapping an external attack surface more broadly, since subdomains frequently point to forgotten storage buckets, cloud services, or APIs that were never documented.

How subdomain enumeration tools actually find subdomains

Enumeration tools pull from a handful of techniques, usually combined:

  • Certificate Transparency (CT) logs — every publicly trusted TLS certificate is logged, and certificates list every hostname they cover in the Subject Alternative Name field. crt.sh, run by the certificate authority Sectigo, is the standard public search interface over these logs, and most other tools query it directly.
  • Passive OSINT sources — DNS aggregators, search engine caches, the Wayback Machine, threat intelligence feeds (Shodan, Censys, VirusTotal, SecurityTrails), and public datasets that have already indexed hostnames tied to a domain.
  • Active DNS brute-forcing — trying large wordlists of common subdomain names (dev, api, vpn, staging) against the domain's DNS servers and keeping the ones that resolve.
  • Permutation and alteration — generating variations of known subdomains (api → api2, dev-api, api-staging) to catch naming patterns humans tend to repeat.
  • Zone walking and ASN/netblock correlation — mapping which IP ranges and autonomous systems belong to an organization to catch infrastructure that doesn't even carry the company's domain name in its hostname.

Passive-only tools are fast and leave no trace on the target (you're querying third-party logs, not the target itself). Active techniques add coverage but generate real DNS traffic against the target, so they should only be run against domains you're authorized to test.

The tools, compared

ToolTypePrimary keyword/approachSpeedBest for
SubfinderCLI, passive only~40+ passive sources incl. CT logs, DNS aggregators, search enginesSeconds to low minutesFast, repeatable passive discovery, easy to pipe into httpx/nuclei
OWASP AmassCLI, passive + activePassive sources plus DNS brute-force, permutations, zone walking, ASN/netblock mappingMinutes to tens of minutesDeep, exhaustive mapping of a large or unfamiliar estate
Sublist3rCLI (Python), passiveSearch engines (Google, Bing, Yahoo), VirusTotal, DNSdumpster, NetcraftFastLightweight, dependency-light first pass; less actively maintained than Amass/Subfinder
assetfinderCLI (Go), passivecrt.sh, Certspotter, HackerTarget, Wayback Machine, optional VirusTotal/Facebook keysFastQuick one-off lookups and simple shell pipelines
crt.shWeb/API, passiveCertificate Transparency logs only, via Sectigo's public indexFastThe raw CT feed most aggregator tools read from; good for manual spot checks
dnsx / httpx (resolution and probing, not enumeration)CLIResolves and probes a name list you already haveFastTurning an enumerated list into live, reachable hosts

Subfinder and Amass overlap heavily on passive sources but diverge in ambition: Subfinder is intentionally passive-only, described in its own GitHub README as built "for doing one thing only — passive subdomain enumeration," optimized for speed and stealth. Amass, maintained as an OWASP flagship project, adds active DNS brute-forcing, name permutations, and stores results in a graph database that tracks relationships between subdomains, IP addresses, and ASNs — which makes it slower but considerably more complete for mapping a large or acquisition-heavy organization.

assetfinder is the simplest of the group: a single Go binary with a short, explicit list of sources (crt.sh, Certspotter, HackerTarget, ThreatCrowd, Wayback Machine, and optional VirusTotal/Facebook integrations that need API keys), per its own documentation. It won't match Amass or Subfinder on raw source count, but it's useful exactly because it has almost no setup friction.

Sublist3r is older and queries search engines directly rather than a curated API list, per its GitHub repository; it still works for quick checks but search engines throttle and change their result formats more than dedicated OSINT APIs do, so expect inconsistent results run to run.

A practical enumeration workflow

A reasonable baseline, assuming you're only scanning domains you're authorized to test:

  1. Pull the certificate transparency baseline. Query crt.sh directly or through a wrapper tool to get the widest passive list with zero setup:

`` curl -s 'https://crt.sh/?q=%25.example.com&output=json' \ | jq -r '.[].name_value' | tr 'A-Z' 'a-z' | sed 's/^\*\.//' | sort -u ``

  1. Run Subfinder for a fast, broad passive pass, adding API keys for sources like SecurityTrails or Censys if you have them, since free-tier passive sources alone miss a meaningful chunk of results.
  2. Run Amass in passive mode (amass enum -passive) and compare the diff against Subfinder's output — they rarely return identical lists even though they draw from similar source pools.
  3. Merge, dedupe, and resolve. Combine all lists, strip duplicates and wildcards, then resolve each name (with dnsx or similar) to drop anything that no longer exists.
  4. Probe what's alive. Pipe resolved hosts into an HTTP prober (httpx) to get status codes, titles, and server headers for triage.
  5. Only then consider active brute-forcing (Amass's active mode, or a wordlist-based brute-forcer) if you need maximum coverage and have explicit authorization — this generates real traffic against the target's DNS infrastructure.

This is the same logic behind broader external attack surface management: enumeration tools don't replace a continuous process, they're one input into it, alongside things like API endpoint discovery for routes that don't live at the subdomain level at all.

Limits every subdomain enumeration tool shares

  • They only find what's been seen somewhere. A subdomain that never appeared in a certificate, was never indexed by a search engine, and isn't in any brute-force wordlist simply won't show up. Internal-only subdomains with no public DNS record are invisible to passive tools entirely.
  • Rate limits and API keys gate real coverage. Most "40+ sources" numbers assume you've registered for API keys (Censys, SecurityTrails, Shodan, etc.); the unauthenticated free tier of each tool returns noticeably less.
  • Freshness varies. CT-log-based results reflect certificates that were issued and logged — a subdomain decommissioned last month may still show up, and a subdomain that just went live this week might not be logged yet.
  • A found subdomain isn't a finding. Enumeration tells you a hostname exists; it says nothing about whether it's vulnerable. A subdomain pointing at a deprovisioned cloud resource is a subdomain takeover candidate, not a confirmed one, until someone checks whether the pointed-to resource is actually claimable.

Where SecurityInfinity fits

Running Subfinder, Amass, and crt.sh by hand is a good way to understand your exposure once. Keeping that list current — and acting on what changes — is a different problem. SecurityInfinity's reconnaissance engine runs subdomain and asset discovery as part of an autonomous agent workflow against domains you've verified you own (via a DNS TXT record or a matching work email), and pivots on what it finds rather than stopping at a flat list. The certificate transparency scanner specifically mines CT logs the way crt.sh does, and results feed directly into the subdomain takeover scanner to check whether any discovered subdomain points at a claimable, deprovisioned resource. Every finding ships with evidence and exact remediation steps, ordered by severity — all scans are read-only.

If you want a one-time, engineer-verified look at your subdomains and broader external surface, our external pentest starts at $499 per application and covers subdomains and cloud exposure, with a report and signed attestation letter in three business days. For continuous coverage, recon, web, network and secrets agents run on Pro at $9/month, with no card required to start.

Frequently asked questions

What is the best free subdomain enumeration tool?

There isn't a single best one — Subfinder is the fastest for routine passive discovery, OWASP Amass is the most thorough because it adds active brute-forcing and asset-graph correlation, and crt.sh is the simplest way to check certificate transparency logs directly. Most practitioners run at least two and merge the results, since no individual tool's source list is complete.

Is subdomain enumeration illegal?

Passive enumeration against public sources like certificate transparency logs is generally legal since you're querying third-party public records, not the target. Active techniques that send traffic to the target's own DNS servers (brute-forcing, zone walking) should only be run against domains you own or have explicit written authorization to test.

How is subdomain enumeration different from a subdomain takeover check?

Enumeration builds the list of subdomains that exist; a takeover check tests whether any of those subdomains point to a deprovisioned or unclaimed external resource (an old CNAME to a deleted storage bucket or app, for example) that an attacker could claim. Enumeration is step one; takeover testing is a separate step that happens after you have the list.

Can crt.sh find every subdomain?

No. crt.sh only surfaces hostnames that appeared in a publicly logged TLS certificate. Subdomains served without a public cert, internal-only hosts, or wildcard-only certificates that don't enumerate individual names won't show up, which is why most workflows pair crt.sh with DNS brute-forcing or other OSINT sources for broader coverage.

Do I need API keys to use tools like Subfinder and Amass effectively?

Not strictly, but coverage drops noticeably without them. Both tools support dozens of passive sources (Censys, SecurityTrails, Shodan, and others), and most of those require a free or paid API key to query at meaningful volume. Running either tool with no keys configured will still work, just against a smaller slice of their total source list.

Find what attackers can see, before they do.

AI pentesting agents test your web app, API and cloud, and every finding comes with evidence and a fix. First report in about 10 minutes.

Stay ahead of attackers.

New vulnerabilities, breach write-ups and practical fixes. A few emails a month.