owasp-amass / amass-docker-compose

OWASP Amass Docker Compose for setting up a full instance of the infrastructure
Apache License 2.0
25 stars 3 forks source link
asm attack-surface attack-surface-management discovery docker-compose internet-security owasp recon scouting visibility

OWASP Logo OWASP Amass

OWASP Flagship License Follow on Twitter Chat on Discord

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.

Docker Compose Setup Instructions

Install the Compose Directory

  1. Be sure you have an up-to-date version of Docker or Docker Desktop on your system.
  2. Clone this repo: git clone https://github.com/owasp-amass/amass-docker-compose.git
  3. Optional: you may want to rename the directory to something smaller (e.g. amass)
  4. Make the local repo your current working directory: cd amass-docker-compose

Configure the Compose Environment

  1. 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.
  2. Make desired changes to the config.yaml file, being sure to replace the password field of the database value with the password you assigned as your AMASS_PASSWORD. Save.
  3. Optional: update your datasources.yaml file by uncommenting data sources and adding account credentials.

Build the Docker Images

  1. 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.
  2. Type the following to get started: docker compose run --rm amass enum -d owasp.org
  3. If the build process times out, simply execute the command again to resume.

Details about the Docker Environment

Utilize the IP2Location database

Update Process for the Compose Environment

  1. Make the local repo your current working directory: cd amass-docker-compose
  2. Shutdown the Amass framework within the Docker environment: docker compose down
  3. Backup the config/assetdb.env, config/config.yaml, and config/datasources.yaml files.
  4. Backup the following directories: assetdb, data, and logs
  5. Update the compose local repo with the following command: git pull origin master
  6. Restore the files and directories backed up in Steps 3 and 4.

Update Process for the Images

  1. Make the local repo your current working directory: cd amass-docker-compose
  2. Shutdown the Amass framework within the Docker environment: docker compose down
  3. Update components from their GitHub repos: docker compose build --pull --no-cache
  4. Your Amass framework is now up-to-date with the latest changes to the project.

Corporate Supporters

ZeroFox Logo WhoisXML API Logo

Testimonials

Accenture Logo Accenture

"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

Visma Logo Visma

"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

Troubleshooting Chat on Discord

If you need help with installation and/or usage of the tool, please join our Discord server where community members can best help you.

:stop_sign: Please avoid opening GitHub issues for support requests or questions!

Licensing License

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.

Network graph