GO KALI FREE

Amass

Information Gathering

Intermediatemedium risk

OWASP Amass is the industry-standard in-depth network mapping and attack surface discovery tool. It uses active and passive techniques, scraping 20+ public data feeds, DNS enumeration, and certificate transparency logs to discover subdomains, IP addresses, and ASN data — making it essential for penetration testing, bug bounty hunting, and enterprise security assessments.

Installation

sudo apt install amass

Basic Syntax

amass enum [options]

Quick Facts

Full Name
OWASP Amass
License
Apache 2.0
Maintained By
OWASP Foundation
Written In
Go (Golang)
Platforms
Linux, macOS, Windows
Category
Attack Surface Discovery / OSINT
First Release
2016
Data Sources
20+ OSINT sources
GitHub Stars
10,000+
Difficulty
Intermediate
Prerequisites
DNS knowledge, API keys (optional)
Default on Kali
Yes

Tool Overview

Amass is an in-depth network mapping and attack surface discovery tool developed and maintained by the OWASP Foundation. It uses open source intelligence to enumerate subdomains, IP addresses, ASN data, and infrastructure details for target organizations. Amass is considered the industry standard for comprehensive asset discovery and reconnaissance.

The tool combines passive intelligence gathering from over 20 public data sources with active DNS probing techniques. Passive mode queries Certificate Transparency logs, DNS databases, web archives, and API services (Shodan, Censys, SecurityTrails) without sending any traffic to the target. Active mode directly queries DNS servers and web servers for faster, more thorough results.

Amass is written in Go, which gives it excellent performance, cross-platform compatibility, and efficient concurrent DNS query handling. It supports multiple output formats including JSON, XML, and flat text, making it easy to integrate into existing security toolchains and reconnaissance pipelines.

The tool produces detailed network visualizations using D3.js, showing relationships between domains, subdomains, IP addresses, and autonomous system numbers. These visualizations help security professionals understand complex infrastructure layouts and identify potential entry points for penetration testing and bug bounty programs.

Common Commands

amass enum -passive -d example.comPassive subdomain discovery using OSINT sources only — no traffic sent to target
amass enum -active -d example.comActive DNS enumeration — directly probes DNS servers and web servers
amass enum -active -d example.com -bruteActive enumeration with DNS brute-forcing for comprehensive subdomain discovery
amass intel -d example.comIntelligence gathering — discover ASN, IP ranges, and infrastructure details
amass intel -org 'Company Name'Find all domains associated with an organization name
amass intel -cidr 192.168.1.0/24Discover domains associated with an IP CIDR range
amass viz -d3 -d example.comGenerate interactive D3.js network visualization of discovered infrastructure
amass track -d example.comTrack changes in discovered assets over time between scans
amass enum -passive -d example.com -oF results.txtPassive enumeration with flat file output for pipeline integration
amass enum -active -d example.com -srcActive enumeration showing the data source for each discovered subdomain
amass enum -d example.com -timeout 30Enumeration with custom timeout per data source in seconds
amass enum -d example.com -max-dns-requests 100Limit concurrent DNS requests to control scan speed and avoid detection
amass enum -passive -d example.comPassive subdomain enum
amass enum -active -d example.comActive subdomain enum
amass enum -d example.com -brute -w wordlist.txtBrute-force subdomains

Step-by-Step Guide

  1. 1Install Amass using sudo apt install amass on Kali Linux or go install from GitHub
  2. 2Verify installation with amass -version to confirm the tool is ready
  3. 3Run your first passive scan: amass enum -passive -d target.com
  4. 4Configure API keys in ~/.config/amass/config.ini to unlock more data sources
  5. 5Run active enumeration with authorization: amass enum -active -d target.com
  6. 6Use amass intel -org 'Company' to discover organizational infrastructure
  7. 7Generate visualizations with amass viz -d3 to understand infrastructure relationships
  8. 8Export results with -oF or -oJ for integration into other tools and pipelines

Warnings

Use Cases

Subdomain Enumeration

Discover all subdomains of a target domain using passive OSINT, active DNS probing, brute-force, and Certificate Transparency logs.

Attack Surface Mapping

Map the complete external infrastructure including IPs, ASNs, hosting providers, and organizational relationships.

Certificate Transparency Analysis

Leverage CT logs to find subdomains that have been publicly issued SSL certificates — often revealing hidden assets.

DNS Intelligence Gathering

Gather comprehensive DNS records including A, AAAA, CNAME, MX, NS, and TXT records across all discovered subdomains.

Network Visualization

Generate interactive D3.js network graphs showing relationships between domains, subdomains, IPs, and ASNs.

Asset Inventory

Build complete inventories of external assets for enterprise security assessments and compliance auditing.

ASN and IP Range Discovery

Map autonomous system numbers and IP ranges associated with target organizations for infrastructure understanding.

Organization Reconnaissance

Use amass intel -org to discover all domains, IPs, and infrastructure belonging to a specific organization.

Cloud Asset Discovery

Identify subdomains hosted on AWS, Azure, GCP, and other cloud providers through ASN and IP range analysis.

Shadow IT Detection

Find unauthorized subdomains and infrastructure using your brand or associated with your organization.

Bug Bounty Reconnaissance

Maximize attack surface coverage for bug bounty programs by discovering staging servers, API endpoints, and forgotten subdomains.

Threat Intelligence

Investigate threat actor infrastructure by mapping domains, IPs, and ASN relationships for attribution.

Key Features

Best Practices

Common Errors

No results found
Configure API keys in ~/.config/amass/config.ini. Try passive mode first. Verify the domain exists with dig or nslookup.
DNS timeout errors
Increase the timeout with -timeout 60. Use -max-dns-requests to reduce concurrent queries. Try different resolvers.
Rate limit exceeded
Reduce -max-dns-requests to 50 or lower. Add -timeout to slow down queries. Use a proxy to distribute requests.
Resolver issues
Configure custom resolvers in the config file under [resolver_settings]. Use public resolvers like 8.8.8.8 or 1.1.1.1.
Permission denied
Ensure write permissions for the output directory. Use sudo if writing to system directories. Check ~/.config/amass/ permissions.
Go installation problems
Install Go from golang.org. Set GOPATH and add $GOPATH/bin to PATH. Verify with go version.
API key configuration errors
Verify API key format in config.ini. Check each service's API documentation for current endpoint URLs and key formats.
Version mismatch with dependencies
Update Amass: go install github.com/owasp-amass/amass/v4/...@master or sudo apt update && sudo apt install amass

People Also Ask

What is the difference between Amass passive and active modes?

Passive mode (amass enum -passive) queries public data sources like certificate transparency logs, DNS databases, and search engines without sending any traffic to the target. Active mode (amass enum -active) directly probes DNS servers, web servers, and performs DNS brute-forcing, generating detectable network traffic. Use passive for stealthy recon; use active for comprehensive discovery when detection is acceptable.

How does Amass compare to Subfinder?

Amass is a comprehensive OWASP project that supports both passive and active enumeration, DNS brute-forcing, ASN discovery, and network mapping. Subfinder is passive-only and extremely fast, ideal for a quick first pass. Use Subfinder for speed and stealth; use Amass when you need deeper, active attack-surface mapping. Many professionals run both and merge the results.

Does Amass require API keys?

Amass runs without API keys but returns limited results from free sources. Adding API keys for services like Shodan, Censys, SecurityTrails, VirusTotal, and GitHub dramatically increases coverage. Keys are configured in the Amass configuration file (~/.config/amass/config.yaml). Free tiers are available for most services.

How do I install Amass on Kali Linux?

On Kali Linux: sudo apt update && sudo apt install amass. For the latest version, install from GitHub: go install -v github.com/owasp-amass/amass/v4/...@master. Verify the installation with amass -version. Amass requires Go 1.18+ for building from source.

What is Amass intel used for?

amass intel discovers ASN (Autonomous System Number) data, IP ranges, and infrastructure details associated with a target organization. Use amass intel -org 'Company Name' to find all domains belonging to an organization, or amass intel -d example.com to discover ASN and IP ranges. This is useful for mapping the full network footprint before active scanning.

Can Amass discover subdomains that Subfinder misses?

Yes. Amass active mode performs DNS brute-forcing and directly probes DNS servers, which can discover subdomains not listed in any public database. Subfinder is passive-only and cannot find subdomains that were never publicly logged. Combining passive (Subfinder) and active (Amass) enumeration gives the most complete subdomain list.

Learning Path

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6

Related Tools

Subfinder

Information Gathering

Fast passive subdomain discovery tool using 40+ online sources. Complements Amass with additional passive data sources.

Nmap

Information Gathering

Industry-standard port scanner for probing hosts discovered by Amass for open ports and running services.

DNSenum

Information Gathering

DNS enumeration tool for detailed record analysis and zone transfer testing on discovered domains.

theHarvester

Information Gathering

Email and subdomain discovery tool for OSINT gathering from public sources like search engines.

Gobuster

Web Application

Directory and DNS brute-forcing tool for discovering hidden paths and subdomains on discovered hosts.

FFUF

Web Application

Fast web fuzzer for directory discovery, parameter fuzzing, and virtual host discovery on web servers.

Nikto

Web Application

Web server scanner for detecting misconfigurations, outdated software, and security issues on discovered web servers.

Recon-ng

Information Gathering

Full-featured OSINT reconnaissance framework with 100+ modules for structured intelligence gathering.

Dig

Information Gathering

DNS lookup utility for querying specific DNS records on discovered domains and troubleshooting DNS issues.

Fierce

Information Gathering

DNS reconnaissance tool for locating non-contiguous IP space and brute-forcing subdomains.

WhatWeb

Web Application

Web technology identification tool for detecting frameworks, CMS, and technologies on discovered web servers.

Frequently Asked Questions

What is Amass tool?

Amass is an OWASP project for in-depth network mapping and attack surface discovery. It uses passive OSINT sources and active DNS probing to discover subdomains, IP addresses, ASN data, and infrastructure details for target organizations. Amass is written in Go and available on Kali Linux, macOS, Windows, and Linux.

How does Amass work?

Amass works in two modes: passive and active. Passive mode queries over 20 public data sources including Certificate Transparency logs, DNS databases, web archives, and API services (Shodan, Censys) without sending traffic to the target. Active mode directly queries DNS servers and web servers for faster, more thorough discovery. It builds a graph database of discovered assets.

Is Amass free?

Yes, Amass is completely free and open source under the Apache 2.0 license. It is maintained by the OWASP Foundation. Some data sources require free API keys from services like Shodan and Censys, but Amass itself costs nothing.

What is OWASP Amass?

OWASP Amass is a project under the Open Web Application Security Project (OWASP) Foundation. It is the industry-standard tool for attack surface discovery, used by penetration testers, bug bounty hunters, and security teams to map external infrastructure.

What is Amass used for?

Amass is used for subdomain enumeration, attack surface mapping, DNS intelligence gathering, certificate transparency analysis, ASN discovery, organization-based reconnaissance, and network visualization. It is essential for penetration testing, bug bounty programs, and enterprise security assessments.

How do I install Amass?

On Kali Linux: sudo apt install amass. On other Linux: go install github.com/owasp-amass/amass/v4/...@master. On macOS: brew install amass. You can also use Docker: docker pull ghcr.io/owasp-amass/amass. Verify with amass -version.

Can beginners learn Amass?

Yes, beginners can learn Amass. Start with passive enumeration (amass enum -passive -d target.com) which is safe and simple. Gradually learn API key configuration, active enumeration, and visualization. The tool has a learning curve but the basics are accessible.

What programming language is Amass written in?

Amass is written in Go (Golang). This gives it excellent performance, cross-platform compatibility, and easy installation via go install. The Go language also enables Amass to handle concurrent DNS queries efficiently.

Is Amass passive or active?

Amass supports both passive and active modes. Passive mode (amass enum -passive) gathers data from OSINT sources without touching the target. Active mode (amass enum -active) directly queries DNS servers and web servers. Use passive for safe reconnaissance and active only with authorization.

Is Amass good for bug bounty?

Yes, Amass is one of the best tools for bug bounty reconnaissance. Its passive mode is safe for authorized testing, and it discovers subdomains that other tools miss. Use it as the first step in your recon workflow to maximize attack surface coverage.

What is the difference between Amass and Subfinder?

Amass provides comprehensive attack surface discovery with both passive and active modes, ASN mapping, organization intelligence, and network visualization. Subfinder is faster for quick passive subdomain discovery but lacks active probing, ASN discovery, and visualization. Use both together for best coverage.

What is the difference between Amass and Assetfinder?

Amass is a full-featured attack surface discovery platform with 20+ data sources, active probing, and visualization. Assetfinder is a lightweight tool focused on quick subdomain and URL discovery. Amass provides deeper results; Assetfinder provides faster results.

Can Amass enumerate subdomains?

Yes, subdomain enumeration is Amass's primary function. It discovers subdomains through passive OSINT sources, active DNS probing, brute-force DNS enumeration, Certificate Transparency logs, and recursive enumeration. It can find hundreds of subdomains for a single domain.

How accurate is Amass?

Amass is highly accurate for passive enumeration since it queries verified public data sources. Active enumeration accuracy depends on DNS configuration and network conditions. Use the -src flag to verify which sources discovered each subdomain and cross-reference with other tools.

Can Amass discover cloud assets?

Yes, Amass discovers cloud assets by identifying subdomains hosted on AWS, Azure, GCP, and other cloud providers. It maps IP ranges to ASN data which reveals hosting providers. Combine with Shodan API for deeper cloud asset discovery.

How long does an Amass scan take?

Passive scans of a single domain typically take 2-10 minutes depending on configured data sources. Active scans take 30 minutes to several hours. Large-scale organizational scans (amass intel -org) can take hours. Use timeout and max-dns-requests flags to control duration.

How do I configure Amass API keys?

Create or edit ~/.config/amass/config.ini and add API keys under the [api_key] section. Supported services include Shodan, Censys, SecurityTrails, VirusTotal, GitHub, and many more. More API keys unlock more data sources and improve discovery coverage.

What output formats does Amass support?

Amass supports flat text (-oF), JSON (-oJ), XML (-oX), and directory output (-oD). JSON format is best for integration with other tools and scripts. Flat text is easiest for manual review. XML integrates with reporting tools.

Can Amass integrate with other tools?

Yes, Amass output integrates with httpx for live host detection, nuclei for vulnerability scanning, nmap for port scanning, and many other tools. Use -oF to export subdomains for pipeline integration. The JSON output works with most security toolchains.

What is Amass intel mode?

Amass intel mode (amass intel -org 'Company' or amass intel -d domain) discovers infrastructure associated with an organization, including ASN numbers, IP ranges, and related domains. It is ideal for initial reconnaissance before subdomain enumeration.

Tags

#osint#subdomain#reconnaissance#dns#attack-surface#bug-bounty#enumeration#owasp#network-mapping#asset-discovery

Output Explanation

Amass output displays discovered subdomains, IP addresses, ASN data, and infrastructure relationships. Results are organized by source and include DNS records, hosting information, and network mappings. The tool builds a comprehensive attack surface map from 20+ data sources.

Ethical Usage Notice

This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.