OWASP Amass
An OWASP Go tool for DNS enumeration and external attack-surface mapping. It combines dozens of passive data sources with active DNS techniques (brute force, alterations, zone transfers, NSEC walking, TLS cert grabs) and stores results in a graph database that supports diffing and visualization.
How it works
Amass is organized as subcommands that share consistent flags:
| Subcommand | Use |
|---|---|
intel | Find root domains and netblocks: reverse WHOIS, ASN/org search, CIDR/address ranges, active cert grabs |
enum | Subdomain enumeration and network mapping into the graph DB |
db / subs | Query stored enumerations (amass db -dir D -list, amass db -dir D -d example.com -enum 1 -show; newer: amass subs -d example.com -names) |
track | Diff enumerations over time (-last 2) |
viz | Render the graph (-d3 HTML, Graphviz, Maltego import) |
enum has three modes:
- Normal (no flag): seeds from data sources and validates names with DNS.
-passive: data sources only, with names accepted blindly and no DNS validation. This is the fastest mode and suits continuous monitoring, phishing-scope collection, or engagements limited to passive work.-active: normal mode plus TLS certificate pulls, zone transfers, NSEC walking and web crawling on the ports given with-p(default 443).
Most users only run amass enum -d target and get the same subdomains as everyone else. The edge comes from configuring sources and using the brute-force, alteration, intel and track features.
Techniques / commands
Root-domain discovery (intel)
amass intel -org 'Example Ltd' # AS descriptions -> ASNs
amass intel -active -asn 222222 -ip # ASN -> domains + IPs (certs grabbed)
amass intel -d example.com -whois # reverse WHOIS -> sibling root domains
amass intel -cidr 104.154.0.0/15 -p 443,8080Validate intel output independently with dig, WHOIS and search engines, because data sources can be stale. Pivot from an ASN to IP scans only after matching it against CT logs or CNAMEs, and prefer small company-owned ASNs over shared hosting.
Enumeration
amass enum -passive -d example.com -src # show which source found each name
amass enum -active -d example.com -brute -w deepmagic.com-top50kprefixes.txt \
-src -ip -dir amass4target -config config.yaml -o out.txt
amass enum -brute -min-for-recursive 2 -max-depth 3 -d example.com
amass enum -d example.com -norecursive -noalts -wm "zzz-?l?l?l" # hashcat-style mask only
amass enum -alts -aw alts.txt -awm 'dev?d' -d example.com # alteration wordlist/masks
amass enum -nf known_subs.txt -d example.com # seed with other tools' output
amass enum -d example.com -include Netlas # test a single sourceKey flags:
- Resolvers:
-r/-rf(untrusted),-tr/-trf(trusted),-dns-qps,-rqps,-trqpsfor pacing. Older versions had-public-dnsto pull resolvers from public-dns.info. - Scope:
-bl/-blfblacklist,-include/-exclude/-if/-effor sources,-listto show available sources (55+ in older versions). - Brute force is recursive by default once a label has been seen
-min-for-recursivetimes (default 1).-norecursiveturns that off. - Output:
-o,-oA,-json,-dir(the graph DB location; use a separate-dirper concurrent instance),-timeoutin minutes.
Configuration
config.yamlis auto-discovered in the output directory ($HOME/.config/amass/on Linux,~/Library/Application Support/amass/on macOS,%AppData%\amass\on Windows) or set with-config/AMASS_CONFIG. CLI flags override the config. The legacyconfig.iniformat is gone (the old example path now returns 404).- API keys live in a separate
datasources.yaml. For example, uncomment theNetlasblock and setapikey. Without keys, passive coverage drops sharply. - Keep separate configs per job type, for example a fast passive one for runs every few hours and a heavy active one for weekly runs.
Parsing v4-style graph output
grep '(FQDN)' out.txt | cut -d ' ' -f1 | sort -u # names only
grep '(IPAddress)' out.txt | grep -oP '\d+\.\d+\.\d+\.\d+' | sort -u
grep '(Netblock)' out.txt | cut -d ' ' -f1 | sort -uThen pass the names to httpx or nmap to confirm services. See Port Scanning.
Install
go install -v github.com/owasp-amass/amass/v4/...@master (newer docs use v5/...@latest), brew tap owasp-amass/amass && brew install amass, Kali apt install amass. With Docker, mount a volume so the graph DB persists: docker run -v OUT:/.config/amass/ amass enum -brute -w /wordlists/all.txt -d example.com.
Operational notes
- Amass is slow and resource-heavy: ProjectDiscovery contrasts subfinder’s 500+ names in about 30s with Amass’s “slow pace”. This argues for subfinder on fast passive passes, with Amass reserved for brute force, alterations, intel and the graph.
- Running it repeatedly from one IP can get that IP permanently blocked by scraped sources such as Google and Yahoo search.
trackhas no built-in alerting. Wrap it in a script (periodicintel→enum→track→ notify) for continuous monitoring. See Bug Bounty Automation and Asset Discovery.
Related
- Reconnaissance (hub)
- Subdomain Enumeration · Asset Discovery · Subdomain Takeover · Port Scanning
- Bug Bounty Automation · Domain and Infrastructure OSINT
Sources
- OWASP Amass: Users' Guide · original
- OWASP/Amass (install) · original
- Amass config.ini at master · original
- OWASP Amass: An Extensive Tutorial · original
- Dionach: How to Use OWASP Amass · original
- Hakluke's Guide to Amass · original
- Netlas: Using OWASP Amass with Netlas Module · original
- How to Use Amass for Subdomain Enumeration and Recon Like a Pro · original
- Complete Guide to Amass Tool (2025) · original
- Amass Cheat Sheet: 70+ Commands · original
- ProjectDiscovery: Reconnaissance 102 · original