OWASP Amass Executor¶
Category: Discovery and Reconnaissance
Script: amass.py
Integration: CLI
Faraday Plugin: Raw JSON
Website: https://owasp.org/www-project-amass/
Description¶
Runs OWASP Amass subdomain enumeration against a domain and imports the results into Faraday. Each unique IP address that the discovered subdomains resolve to becomes a host, with the subdomains as its hostnames.
Prerequisites¶
amassinstalled and available in the agent'sPATH(checked withamass -version)- Network access to DNS and to the public data sources Amass queries
- Authorization to enumerate the target domain
Configuration¶
Environment Variables (Setup)¶
This executor does not require setup environment variables.
Execution Arguments¶
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
AMASS_DOMAIN |
string | Yes | Apex domain to enumerate, without scheme (e.g., faradaysec.com) |
AMASS_PASSIVE |
boolean | No | Set to true to use only passive sources and avoid touching the target's infrastructure (default: false) |
AMASS_TIMEOUT |
integer | No | Maximum run time in minutes. If not set, Amass uses its own default. |
AMASS_RESOLVERS |
list | No | List of DNS resolvers to use (e.g., ["1.1.1.1", "8.8.8.8"]). If not set, Amass uses its default resolvers. |
YAML Configuration Example¶
executors:
amass:
repo_executor: amass.py
max_size: 65536
varenvs: {}
params:
AMASS_DOMAIN:
mandatory: true
type: string
base: string
AMASS_PASSIVE:
mandatory: false
type: boolean
base: boolean
AMASS_TIMEOUT:
mandatory: false
type: integer
base: integer
AMASS_RESOLVERS:
mandatory: false
type: list
base: list
How It Works¶
- Runs
amass enum -d <AMASS_DOMAIN>with JSON output, adding-passive,-timeoutand-r(resolvers) when configured - Reads the JSON lines that Amass writes, one per discovered name
- Groups the names by resolved IP address: each unique IP becomes a host and every name that resolves to it is added as a hostname
- Sends the hosts to Faraday together with the command details
Notes¶
- Names that do not resolve to any IP address are not imported.
- The executor only creates hosts. It does not create services or vulnerabilities.
- If
AMASS_DOMAINis not set, the run fails. - The shared agent parameters (
AGENT_CONFIG_*tags and severity filters) are not applied by this executor.