This repo is currently in a beta state. Use at your own risk
The OWASP Amass Project performs network mapping of attack surfaces and external asset discovery using open source information gathering and active reconnaissance techniques.
- Be sure you have an up-to-date version of Docker or Docker Desktop on your system.
- Clone this repo:
git clone https://github.com/owasp-amass/amass-docker-compose.git
- Optional: you may want to rename the directory to something smaller (e.g.
amass
) - Make the local repo your current working directory:
cd amass-docker-compose
- Recommended: open the
config/assetdb.env
file and assign a new POSTGRES_PASSWORD and AMASS_PASSWORD. Save. This cannot be performed after you start the Docker Compose and the database has been created. - Make desired changes to the
config.yaml
file, being sure to replace the password field of thedatabase
value with the password you assigned as your AMASS_PASSWORD. Save. - Optional: update your
datasources.yaml
file by uncommenting data sources and adding account credentials.
- Your Amass framework is now configured and ready to be built. Docker Compose will build the required images and start them correctly when you perform your first
amass
command execution. - Type the following to get started:
docker compose run --rm amass enum -d owasp.org
- If the build process times out, simply execute the command again to resume.
- All persistent data used exists on your host in the local repo root directory.
- The
assetdb
is a PostgreSQL database reachable from your localhost on port 5432. - Config files in the local repo are automatically mapped to where components expect to find them in the Docker environment.
- Interact with the framework using the client program:
docker compose run --rm amass enum -d owasp.org
- You can obtain information about your asset discoveries by accessing the web UI at the following URL:
http://127.0.0.1:3000
- Go to the IP2Location LITE site and sign up for a free account.
- Download the
IP2LOCATION-LITE-DB11.CSV
andIP2LOCATION-LITE-DB11.IPV6.CSV
files and copy them into the compose directory. - While the Amass Docker Compose is up, execute the
upload_ip2loc_data.sh
script to insert the geo information into the database.
- Make the local repo your current working directory:
cd amass-docker-compose
- Shutdown the Amass framework within the Docker environment:
docker compose down
- Backup the
config/assetdb.env
,config/config.yaml
, andconfig/datasources.yaml
files. - Backup the following directories:
assetdb
,data
, andlogs
- Update the compose local repo with the following command:
git pull origin master
- Restore the files and directories backed up in Steps 3 and 4.
- Make the local repo your current working directory:
cd amass-docker-compose
- Shutdown the Amass framework within the Docker environment:
docker compose down
- Update components from their GitHub repos:
docker compose build --pull --no-cache
- Your Amass framework is now up-to-date with the latest changes to the project.
"Accenture’s adversary simulation team has used Amass as our primary tool suite on a variety of external enumeration projects and attack surface assessments for clients. It’s been an absolutely invaluable basis for infrastructure enumeration, and we’re really grateful for all the hard work that’s gone into making and maintaining it – it’s made our job much easier!"
- Max Deighton, Accenture Cyber Defense Manager
"For an internal red team, the organisational structure of Visma puts us against a unique challenge. Having sufficient, continuous visibility over our external attack surface is an integral part of being able to efficiently carry out our task. When dealing with hundreds of companies with different products and supporting infrastructure we need to always be on top of our game.
For years, OWASP Amass has been a staple in the asset reconnaissance field, and keeps proving its worth time after time. The tool keeps constantly evolving and improving to adapt to the new trends in this area."
- Joona Hoikkala (@joohoi) & Alexis Fernández (@six2dez), Visma Red Team
If you need help with installation and/or usage of the tool, please join our Discord server where community members can best help you.
🛑 Please avoid opening GitHub issues for support requests or questions!
This program is free software: you can redistribute it and/or modify it under the terms of the Apache license. OWASP Amass and any contributions are Copyright © by Jeff Foley 2017-2024. Some subcomponents have separate licenses.