Blog · Domain and IP recon
How to use Amass (v5): install it on Kali and find subdomains
OWASP Amass is one of the best known tools for mapping a domain's subdomains and the infrastructure around them. It is also one of the most confusing to start with, because version 5 changed how it works: there is now an engine that collects, a database that keeps everything, and separate commands to read the results. Many tutorials online were written for older versions, and some of their commands no longer exist.
This guide covers version 5 from the code and the official documentation as they stand on 30 November 2026: how to install it, how to run a passive enumeration, how to read what it found, and which options touch the target and need authorization.
What Amass is, and what changed in version 5
Its repository describes the project as performing "network mapping of attack surfaces and external asset discovery using open source information gathering and active reconnaissance techniques". It is open source, under the Apache 2.0 licence.
In version 5 the work is split into pieces:
- The engine collects.
amass enumtalks to it athttp://127.0.0.1:4000and, if it is not running, starts it and waits for it to answer. - The asset database keeps every name, address and relationship found. If you configure none, Amass creates a local SQLite database in its configuration directory; PostgreSQL and Neo4j are also supported.
- Six subcommands, according to its usage line:
enum(interface with the engine that performs enumerations),subs(analyse and present discovered subdomains),track(identify newly discovered assets),viz(generate graph visualisations),assoc(query the data along a walk defined by triples) andengine(run the collection engine).
If a tutorial uses amass intel or amass db, it was written for an older version: neither is in that list. amass -h shows what your copy has.
How to install Amass
- Kali Linux:
sudo apt install amass. Kali packages version 5.1.3, the latest; ifaptoffers an older one, runsudo apt updatefirst. - Windows: each release on GitHub (the latest is 5.1.3) attaches ready-made files for Windows, Linux and macOS, plus
amass_checksums.txtto verify them. For Windows the file isamass_windows_amd64.tar.gz, not a ZIP: Windows 10 and later extract it withtar -xzf amass_windows_amd64.tar.gz, and you run the program it contains from PowerShell or the command prompt. - macOS: with Homebrew,
brew tap owasp-amass/homebrew-amassand thenbrew install amass. - Docker:
docker pull owaspamass/amass:latest, and run it with a volume so the results stay outside the container:docker run --rm -it -v ~/.config/amass:/.config/amass amass:latest enum -d example.com, after tagging the image asamass:latestas the documentation shows. - Docker Compose: the
amass-docker-composerepository brings up Amass with its own database, whose passwords you set inconfig/assetdb.env. Its first example command uses-active, so remove that flag unless you are authorised to test the domain. - From source: with Go installed,
CGO_ENABLED=0 go install -v github.com/owasp-amass/amass/v5/cmd/amass@main. Building withCGO_ENABLED=1and the libpostal library adds street address parsing.
Check the install with amass -h, which prints the six subcommands.
A first passive enumeration
The basic command is:
amass enum -d example.com
In version 5, passive is the default: the -passive flag is still there, but its help text says it is "deprecated since passive is the default setting". Amass queries its data sources for names under the domain and resolves the names it finds through DNS resolvers. It does not try zone transfers, grab certificates from the target's servers or guess names unless you ask it to.
The options you will use most:
-dtakes one or more domains separated by commas, and-dfa file with one per line.-listprints the names of all available data sources;-includeand-excludechoose which ones run.-rigiddisables scope expansion, in the words of its help text.-nftakes a file of subdomains you already know from other tools, for example subfinder.-timeoutsets the minutes without progress before it stops (30 by default).-rand-trchoose the DNS resolvers,-dirthe output directory,-configthe configuration file, and-vprints status and debugging information.
Data sources and API keys
Many sources give more with an API key. Keys go in datasources.yaml, a file with two sections, global_options and datasources. Each entry has a name, an optional ttl in minutes and a creds block with the account's apikey, or username and password. The documentation's example is Shodan:
datasources:
- name: Shodan
ttl: 10080
creds:
account:
apikey: YOUR_SHODAN_API_KEY
The main config.yaml points to that file with options.datasources. Amass looks for config.yaml in its output directory, usually ~/.config/amass/, or in /etc/amass/config.yaml on Linux, unless you pass -config or set the AMASS_CONFIG environment variable. Keep both files out of screenshots and repositories.
Reading the results: subs, track and viz
amass enum fills the database; the other subcommands read it.
amass subs -d example.com -namesprints only the names found.-ipadds their addresses (or-ipv4and-ipv6), and-summaryprints a table of the networks (ASNs) they belong to. Redirect the output to a file to work with it elsewhere.amass track -d example.com -since '01/02 15:04:05 2006 MST'shows the assets discovered after a date, written in that exact format. Run an enumeration every week andtracktells you what is new.amass viz -d3 -d example.comgenerates an HTML graph.-dotwrites a DOT file and-gexfa file for Gephi.
Read the list as you would read any subdomain list: a name in the database is not proof that it is live today, and a domain with a wildcard DNS record makes every invented name resolve. How to check which names are real, and the wildcard test, are in how to find subdomains.
Options that touch the target
These are off unless you turn them on, and all of them go beyond reading published sources:
-active: in its own words, "attempt zone transfers and certificate name grabs". It contacts the domain's name servers and its hosts, on the ports set with-p(80 and 443 by default).-brute: guesses names with a wordlist (-w) or hashcat-style masks (-wm) after the searches, recursively unless you add-norecursive.-alts: generates altered versions of the names it has found and tries them.- The same switches exist in
config.yaml:options.active,bruteforce.enabledandalterations.enabled. Check them before a run, because a configuration file copied from someone else can turn them on without anything showing in the command.
Use them only on domains you own or have written authorization to test. On anyone else's, they stop being open source research.
Amass, subfinder or theHarvester
- subfinder describes itself as a fast passive subdomain enumeration tool; it is packaged in Kali too.
- theHarvester mixes subdomains with emails, hosts and IPs from many public sources: see how to use theHarvester.
- Amass pays off when you want a database you can query, a graph and a record of what changes over time.
You can also run subfinder first and pass its output to Amass with -nf.
Pandora: the same subdomains inside the case
Enter a domain in Pandora and it runs the passive sweep: DNS over HTTPS, RDAP and WHOIS, and subdomains from Certificate Transparency through crt.sh and Certspotter. Around them it adds passive DNS, reverse DNS and other sites that share an IP or an analytics ID, open ports and known vulnerabilities from what Shodan InternetDB already publishes, the network and its owner from RIPEstat, registered look-alike domains and URLs archived in Common Crawl and the Wayback Machine. Pandora does not scan anything, and it runs in the browser, with nothing to install and no engine or database to keep running.
Everything lands on a graph that grows live, each finding with its source, next to the accounts and people of the same case. If you need brute forcing or zone transfers on your own domains, Amass is the tool, with authorization. Plans are on the pricing page.
Keep it lawful
A subdomain called vpn or staging in Amass's output is a fact about a domain, not an invitation. Do not follow it with a login attempt, a port scan or a directory search on a system that is not yours. And if a name or its records identify a person, you are processing personal data: under the GDPR you need a legitimate purpose and a legal basis, as we explain in OSINT and the GDPR. This article is not legal advice.
Frequently asked questions
How do I install Amass on Kali Linux?
Kali packages it: sudo apt install amass. Kali's package is version 5.1.3, the same as the latest release on GitHub. Amass also installs with Homebrew, Docker, Docker Compose, go install, or the ready-made files attached to each GitHub release.
Is Amass passive by default?
Yes, in version 5. The -passive flag is marked as deprecated because passive is the default setting. Techniques that touch the target, such as zone transfers and certificate grabs (-active), brute forcing (-brute) and altered names (-alts), are only used if you turn them on in the command or the configuration file.
Why does amass intel or amass db not work?
Because they are not in version 5. Its usage line lists six subcommands: assoc, engine, enum, subs, track and viz. Many tutorials online were written for older versions; amass -h shows what your copy has.
Where does Amass save its results?
In its asset database. If you configure none, Amass creates a local SQLite database in its configuration directory, usually ~/.config/amass/. PostgreSQL and Neo4j are also supported. You read the results with amass subs, track and viz.
Is it legal to use Amass?
A passive enumeration reads sources that have already published the names, which is open source research. Zone transfers, certificate grabs, brute forcing and scans touch someone else's infrastructure and need the owner's written authorization. If the results identify a person, data protection law applies. This is not legal advice.