# 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`)
```bash
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,8080
```
Validate 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
```bash
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 source
```
Key flags:
- Resolvers: `-r`/`-rf` (untrusted), `-tr`/`-trf` (trusted), `-dns-qps`, `-rqps`, `-trqps` for pacing. Older versions had `-public-dns` to pull resolvers from public-dns.info.
- Scope: `-bl`/`-blf` blacklist, `-include`/`-exclude`/`-if`/`-ef` for sources, `-list` to show available sources (55+ in older versions).
- Brute force is recursive by default once a label has been seen `-min-for-recursive` times (default 1). `-norecursive` turns that off.
- Output: `-o`, `-oA`, `-json`, `-dir` (the graph DB location; use a separate `-dir` per concurrent instance), `-timeout` in minutes.
### Configuration
- `config.yaml` is 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 legacy `config.ini` format is gone (the old example path now returns 404).
- API keys live in a separate `datasources.yaml`. For example, uncomment the `Netlas` block and set `apikey`. 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
```bash
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 -u
```
Then 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.
- `track` has no built-in alerting. Wrap it in a script (periodic `intel` → `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
- [[raw/github.com/owasp-amass-users-guide-6087|OWASP Amass: Users' Guide]]
- [[raw/github.com/owasp-amass-6090|OWASP/Amass (install)]]
- [[raw/github.com/amass-config-ini-at-master-owasp-amass-6088|Amass config.ini at master]]
- [[raw/github.com/owasp-amass-an-extensive-tutorial-6089|OWASP Amass: An Extensive Tutorial]]
- [[raw/dionach.com/how-to-use-owasp-amass-an-extensive-tutorial-6091|Dionach: How to Use OWASP Amass]]
- [[raw/hakluke.medium.com/haklukes-guide-to-amasshow-to-use-amass-more-effectively-for-bug-bount-5847|Hakluke's Guide to Amass]]
- [[raw/netlas.io/using-owasp-amass-with-netlas-module-3009|Netlas: Using OWASP Amass with Netlas Module]]
- [[raw/iha089.org/how-to-use-amass-for-subdomain-enumeration-and-recon-like-a-pro-2914|How to Use Amass for Subdomain Enumeration and Recon Like a Pro]]
- [[raw/cyberxsociety.com/complete-guide-to-amass-tool-2025-edition-4454|Complete Guide to Amass Tool (2025)]]
- [[raw/securityelites.com/amass-cheat-sheet-70-commands-for-recon-bug-bounty-3643|Amass Cheat Sheet: 70+ Commands]]
- [[raw/projectdiscovery.io/reconnaissance-102-subdomain-enumeration-projectdiscovery-2917|ProjectDiscovery: Reconnaissance 102]]