National Cyber Warfare Foundation (NCWF)login

Subdominator for fast passive subdomain enumeration across 72 OSINT sources


0 user ratings
2026-10-23 23:28:08
milo
Red Team (CNA)
"Subdominator

Subdominator is a passive subdomain enumeration engine that queries 72 OSINT sources to map an organization's external attack surface for authorized assessments and asset inventory work.








ToolRevoltSecurities/Subdominator — async passive subdomain enumeration engine with 72 OSINT sources
CategoryPassive reconnaissance / attack surface discovery (Python, MIT license)
Primary UseEnumerating subdomains of in-scope domains during authorized pentests, bug bounty programs, and external asset inventory, with recursive-depth scans and JSONL/HTML output
Safe UseUse only against domains you own or have written authorization to assess; passive enumeration is read-only OSINT querying, making it suitable for authorized assessments, labs, and defensive asset-inventory programs
Telemetry NotePurely passive — no packets touch the target; activity is visible to the OSINT providers (CT logs, Shodan, Censys, etc.) via your API keys and IP, and findings persist locally in a SQLite database at ~/.local/share/subdominator/subdominator.db

Subdominator positions itself as a high-performance passive subdomain enumeration engine, and the architecture choices in the README back that claim up. Rather than brute-forcing DNS against a resolver, it aggregates results from 72 OSINT sources — certificate transparency logs, search engines, threat intelligence feeds, and DNS archive datasets — meaning it never sends a single packet at the target domain itself. That makes it one of the cleaner tools to run during the early, pre-engagement phase of an authorized assessment, where you want maximum visibility with zero footprint on the client's infrastructure. The repo carries 808 stars, an MIT license, and an active release cadence, which suggests a maintained project rather than a weekend script.


The performance story rests on Python's async stack: Subdominator is built on asyncio plus aiohttp, with configurable parallelism via --concurrency (default 8 resource slots). The README claims runs of 100K+ subdomains without memory spikes, and attributes that to a disk-backed findings cache rather than holding everything in RAM. For operators who have watched other enumerators balloon memory on large multi-domain engagements, that design detail matters — it means bulk mode with --domain-list against a file of client domains won't fall over mid-run. HTTP timeouts default to 20 seconds, with --retries (default 3) and --retry-backoff (default 1.0) handling flaky OSINT endpoints.


Installation is straightforward and the README offers several paths. The recommended route is uv tool install subdominator, with traditional pip install --upgrade subdominator as an alternative; note the hard requirement of Python 3.13+. If you want the standalone HTML report generator you need the reports extra — pip install "subdominator[reports]" — which pulls in jinja2. There are also pre-built Docker images on GHCR for teams that prefer containerized tooling over local Python setup, and a built-in --update flag for keeping the binary current.


Configuration is where the real capability unlock lives. On first run the tool generates a template at ~/.config/subdominator/provider-config.yaml, where you supply API keys per provider. Each config entry is a list, so you can register multiple keys and Subdominator picks one at random per run — a pragmatic touch for distributing rate limits across keys during long engagements. The README documents key aliases worth knowing: rapidapi covers coderog, rapidfinder, and rapidscan; whoisxml maps to whoisxmlapi; zoomeyeapi maps to zoomeye. A custom config location can be passed with --config-path or -cp, useful for per-client or per-engagement key separation.


Every runtime setting can also be driven by environment variables with the SUBDOMINATOR_ prefix — SUBDOMINATOR_PROXY, SUBDOMINATOR_CONCURRENCY, SUBDOMINATOR_TIMEOUT, and SUBDOMINATOR_SSL_VERIFY — with CLI flags always taking priority when both are set. Standard HTTP_PROXY/HTTPS_PROXY/NO_PROXY variables are respected automatically through aiohttp's trust_env, so routing scans through a corporate proxy or an authorized testing proxy like Burp requires no extra plumbing. A quick subdominator --health-check before a run verifies connectivity and API key status across providers, which is genuinely useful — half of a failed enumeration run is usually a stale key on one of thirty sources.


Source selection is granular. --all enables all 72 resources including four that are disabled by default — commoncrawl, github, virustotal, and waybackarchive — because they're slow or heavily rate-limited. --include-resources (-ir) and --exclude-resources (-er) let you compose a source list by name, --list-resources prints the full catalog with auth markers, and --dork (-dk) lets you inject a custom search dork for Google and supported engines. Recursive enumeration is controlled with --recursive-depth (-rd, default 0), automatically re-scanning discovered subdomains to any depth you specify — depth 2 on a large enterprise domain is where the disk-backed cache starts earning its keep.


Output flexibility is a strong point for pipeline-oriented workflows. The default is pipe-safe plain text, one subdomain per line, so standard Unix tooling composes cleanly. The --json flag streams JSONL to stdout with domain, subdomain, and resource fields per finding — designed explicitly for jq and grep — which is the right format for feeding results into httpx, dnsx, or a resolution stage. Beyond that you get --report-json for a structured run summary, --html for a standalone Jinja2-rendered report, --table for terminal formatting, and --show-summary/--show-resource-stats for per-source finding counts and durations, which is exactly the telemetry you need when tuning which providers are worth their rate-limit cost.


The standout architectural feature is SQLite persistence, enabled by default. Every run automatically saves findings to ~/.local/share/subdominator/subdominator.db, turning the tool from a one-shot enumerator into a longitudinal asset database. You can relocate it with --db-path or disable persistence per-run with --no-db. This matters for defenders as much as attackers: a blue team running Subdominator weekly against their own root domains gets a growing historical record of externally observable assets, making it trivial to spot newly appeared subdomains — often the first indicator of a forgotten dev deployment or shadow IT.


That database feeds the interactive audit shell, launched with --shell or -sh. The shell exposes commands like domains to list stored roots with counts, findings to dump stored results, runs to inspect recent scan history, add to merge findings imported from text files, export to txt/json/html, and delete to purge a domain. The resources command reuses the auth markers — * for required keys, ~ for optional ones, - for open sources — giving you a quick audit of which providers will actually contribute before committing to a full run. It effectively turns Subdominator into a lightweight recon workbench rather than a fire-and-forget binary.


From a defensive and operational-hygiene standpoint, a purely passive tool like this leaves no trace on the target — the observable side effects are on your accounts with the OSINT providers and in your local SQLite file. For authorized engagements that's ideal: no scanning traffic to trip client WAFs or SOC alerts during the information-gathering phase, and results you can defend in a report because every finding is attributed to a named resource in the JSONL stream. The per-finding source attribution is a nice touch for documentation, letting you cite whether a subdomain came from crtsh CT logs versus shodan.


Where Subdominator fits in a professional workflow is clear: it's the front-of-pipeline asset discovery layer. Run it against in-scope domains with written authorization, persist to the database, export the JSONL, and hand off to active tooling for resolution, port scanning, and content probing — always within scope boundaries. The combination of 72-source coverage, async throughput, recursive depth control, and a persistent queryable findings store makes it a credible replacement for chained-together one-liners, and the MIT license plus active maintenance make it low-risk to standardize on for a team's recon kit.



Official project repository for RevoltSecurities/Subdominator.

Download Tool

Educational analysis for authorized security professionals. Use only in controlled, authorized environments.






Source: OffensiveSec
Source Link: https://www.offsecblog.com/2026/10/subdominator-for-fast-passive-subdomain.html


Comments
new comment
Nobody has commented yet. Will you be the first?
 
Forum
Red Team (CNA)



Copyright 2012 through 2026 - National Cyber Warfare Foundation - All rights reserved worldwide.