Information Gathering
Subfinder is a fast, passive subdomain discovery tool built by ProjectDiscovery. It finds valid subdomains of any target domain by collecting data from dozens of public online sources — Certificate Transparency logs, passive DNS databases, search engines, and threat-intelligence APIs — without ever sending a single packet to the target. Written in Go with a clean modular design, it is a favourite first step for bug bounty hunters, penetration testers, and security researchers who need reliable subdomain enumeration in seconds.
sudo apt install subfinder
subfinder -d <domain> [options]
The Subfinder tool is a fast, passive subdomain enumeration tool created by ProjectDiscovery. Its single job is to discover as many valid subdomains of a target domain as possible — such as mail.example.com, api.example.com, and dev.example.com — by pulling together information that is already public on the internet. Because it never queries the target directly, Subfinder is one of the safest and stealthiest ways to begin reconnaissance.
Subfinder was created to solve a very common problem in cybersecurity: before you can test or defend a website, you first need to know every place it lives online. Large organisations often run hundreds of subdomains, and many are forgotten, misconfigured, or left exposed. Subfinder gathers these subdomains from Certificate Transparency logs, passive DNS providers, search engines, and threat-intelligence APIs, then merges everything into one clean, de-duplicated list.
The tool is written in Go, which is why it is so fast: it can query dozens of data sources at the same time and return results in seconds. Distribution is a single self-contained binary, so it runs identically on Kali Linux, Ubuntu, Debian, macOS, and Windows with no messy dependencies. This simplicity is a big reason Subfinder has become a default choice for beginners and professionals alike.
Subfinder is best known in the bug bounty and penetration testing communities, where passive subdomain discovery is the essential first step of attack-surface mapping. It is also widely used for OSINT investigations, external asset monitoring, and defensive security, where blue teams run it against their own domains to spot shadow IT and unexpected exposures before attackers do.
One of Subfinder's greatest strengths is how well it plays with other tools. Its output is designed to be piped directly into ProjectDiscovery's httpx to find live hosts and nuclei to scan them for vulnerabilities. This makes Subfinder the foundation of a modern, automated reconnaissance pipeline rather than just a standalone utility.
subfinder -d example.comBasic passive subdomain discovery for a single target domainsubfinder -d example.com -allUse every configured passive source for maximum subdomain coveragesubfinder -d example.com -o results.txtSave every discovered subdomain to a plain text output filesubfinder -dL domains.txt -o all-subs.txtEnumerate subdomains for many root domains listed in a filesubfinder -d example.com -silentSilent mode: print only subdomains, no banner or status linessubfinder -d example.com -json -o subs.jsonStructured JSON output with the source that found each subdomainsubfinder -d example.com -silent | httpx -title -status-codePipe live hosts straight into httpx for HTTP probingsubfinder -d example.com -o subdomains.txtPassive subdomain enumerationsubfinder -d example.com -all -o all-subs.txtUse all sourcessubfinder -d example.com -silentSilent outputsubfinder -d example.com -recursiveRecursive enumerationsubfinder -d example.com -timeout 3030-second timeoutsubfinder -d example.com -provider githubUse GitHub providersubfinder -d example.com -t 2020 concurrent threadssubfinder -d example.com -o results.json -jsonJSON outputMap a program's full attack surface passively and safely before hunting for vulnerabilities within scope.
Gather an organisation's public subdomains from certificate logs and passive DNS for open-source intelligence.
Run Subfinder as the first recon step to build a target list for deeper scanning and enumeration.
Reveal forgotten staging, dev, and admin hosts that expand an organisation's real attack surface.
Track newly created subdomains over time to detect shadow IT and unexpected internet exposure.
Surface cloud-hosted subdomains and endpoints that public data sources have already recorded.
Feed discovered subdomains into httpx and nuclei to assess the security of every live web asset.
Study infrastructure and passive DNS relationships for threat intelligence and academic research.
| Feature | Subfinder | Amass | Assetfinder |
|---|---|---|---|
| Speed | Very fast | Slower (thorough) | Fast |
| Passive Sources | Dozens (with API keys) | Many + active | Several |
| Active Brute-force | No (passive only) | Yes (optional) | No |
| Config Complexity | Low (one YAML) | Higher (config file) | Very low |
| Output Formats | TXT/JSON | TXT/JSON/DB | TXT |
| Best For | Fast day-to-day passive recon | Deep, exhaustive mapping | Quick one-off lookups |
| Feature | Passive (Subfinder) | Active (DNS brute-force) | Certificate Transparency |
|---|---|---|---|
| Touches Target DNS | No — queries third-party sources | Yes — resolves guessed names | No — reads public CT logs |
| Detection Risk | Very low | Higher (query volume) | Very low |
| Finds Unpublished Hosts | Only if a source knows them | Yes (if guessable) | Only if a cert was issued |
| Typical Tool | subfinder -all | dnsenum / gobuster dns | subfinder (crtsh source) |
| When To Use | First, stealthy pass | When passive is exhausted | Always — cheap coverage |
| Feature | Goal | Flag | Pipes Into |
|---|---|---|---|
| Human-readable list | Quick review | -o subs.txt | Manual triage |
| Machine-readable | Automation | -oJ -o subs.json | jq / scripts |
| Live-host probing | Find live web hosts | -silent | httpx | httpx |
| Vulnerability scan | Find issues | -silent | httpx | nuclei | nuclei |
| Max coverage | Every source | -all -recursive | dedupe + resolve |
Run 'subfinder -d example.com' for a basic passive scan. Add '-all' to query every configured source, '-o results.txt' to save output, and '-json' for structured JSON with source attribution. Pipe results into httpx for live-host validation: 'subfinder -d example.com -silent | httpx'.
The -d flag specifies the target domain: 'subfinder -d example.com'. The -o flag writes results to a file: 'subfinder -d example.com -o results.txt'. Use -dL instead of -d to read multiple domains from a text file.
Very accurate for subdomains recorded in public sources. Results may include stale subdomains that no longer resolve, so pipe output into httpx to validate which ones are live.
Plain text by default (one subdomain per line). Use -json for structured output that includes the source that found each subdomain. Use -silent to suppress the banner for clean piping.
Yes, Subfinder is a staple of bug bounty reconnaissance. Hunters use it as the first step to map a program's attack surface, because passive enumeration stays within scope and does not trigger security alerts.
Download from GitHub: 'github.com/projectdiscovery/subfinder/releases' has prebuilt binaries for Linux, macOS, and Windows. Or install via package managers: 'sudo apt install subfinder' (Kali/Debian), 'brew install subfinder' (macOS), or 'go install' from source.
Information Gathering
OWASP attack-surface mapper with passive and active subdomain enumeration.
Information Gathering
OSINT tool that gathers emails, hosts, and subdomains from public sources.
Information Gathering
Fast HTTP toolkit that probes discovered subdomains for live hosts.
Web Application
Template-based vulnerability scanner for the discovered live hosts.
Information Gathering
DNS enumeration tool for records, zone transfers, and brute-force.
Information Gathering
All-in-one DNS enumeration with zone transfer and brute-force.
Information Gathering
DNS reconnaissance and subdomain brute-forcing tool.
Web Application
Fast brute-force tool for DNS subdomains, directories, and vhosts.
Web Application
High-speed web fuzzer for subdomains, paths, and parameters.
Information Gathering
Classic DNS lookup utility for querying records manually.
Information Gathering
Web technology fingerprinting for discovered live hosts.
Information Gathering
The industry-standard port scanner and service detector.
Web Application
Web server scanner for common vulnerabilities and misconfigurations.
Subfinder prints one discovered subdomain per line, for example api.example.com, mail.example.com, and dev.example.com. Because every result comes from passive online sources, the list can include subdomains that no longer resolve, so it is normal to validate the output with a tool like httpx before scanning. In silent mode (-silent) only the subdomains are shown, which makes the output perfect for piping into other tools. With -json each entry becomes a structured record that also names the exact source (such as crtsh, virustotal, or shodan) that discovered the subdomain, which is useful for auditing coverage and building automated pipelines.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.