watchTowr Executor¶
Category: Attack Surface Management
Script: watchtowr.py
Integration: REST API
Faraday Plugin: Raw JSON
Website: https://watchtowr.com/
Description¶
Imports external assets and findings from watchTowr into Faraday. Each watchTowr asset becomes a host, and its findings become vulnerabilities prefixed with [EASM].
Prerequisites¶
- A watchTowr tenant with API access
- A watchTowr API key (created in the console under Settings > API Keys)
- Network access to your watchTowr API host
Configuration¶
Environment Variables (Setup)¶
| Variable | Required | Description |
|---|---|---|
WT_HOST |
Yes | watchTowr API host (e.g., api.watchtowr.com or https://api.watchtowr.com). https:// is added when missing. |
WT_API_KEY |
Yes | watchTowr API key |
These variables are also accepted as execution arguments, so a single run can override them.
Execution Arguments¶
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
WT_PROJECT_ID |
string | No | ID of the watchTowr project to import, as shown in the console URL. Leave empty to import everything the API key can access. |
WT_MIN_SEVERITY |
string | No | Minimum severity of findings to import: info, low, medium, high or critical. watchTowr aliases such as Important or Sev2 are accepted. Unrecognized values are ignored (default: no filter). |
WT_PAGES |
string | No | Maximum number of pages (100 items each) to read from each endpoint, from 1 to 50 (default: 5). |
YAML Configuration Example¶
executors:
watchtowr:
repo_executor: watchtowr.py
max_size: 65536
varenvs:
WT_HOST: "https://api.watchtowr.com"
WT_API_KEY: "<wt_api_key>"
params:
WT_PROJECT_ID:
mandatory: false
type: string
base: string
WT_MIN_SEVERITY:
mandatory: false
type: string
base: string
WT_PAGES:
mandatory: false
type: string
base: string
How It Works¶
- Authenticates with
Authorization: Bearer <WT_API_KEY>againstWT_HOST - Reads
/api/v1/asset-inventoryand/api/v1/findings, 100 items per request, optionally filtered byWT_PROJECT_ID. Each endpoint is read for at mostWT_PAGESpages. - Attaches each finding to the asset with the same
asset_id - Maps each finding to a Faraday vulnerability:
- Name:
[EASM] watchTowr <finding name> - Severity: watchTowr's severity (including aliases such as
Important,Sev1orP1), falling back to the risk score or CVSS score. The default isinfo. - Status: new, open and in-progress states become open. Resolved or fixed states become closed. False positive, accepted-risk and dismissed states become risk-accepted.
- Resolution: watchTowr's remediation guidance, or a generic suggestion when there is none
- References: CVEs, asset, project and port details, and any URLs in the finding
- Name:
Notes¶
- Each asset becomes one host. Its IP is the first public IP reported by watchTowr, or
0.0.0.0for assets identified only by domain. Domain and asset names become hostnames. - Findings that do not match any imported asset are grouped under a host named
(unattached)with IP0.0.0.0. - Assets without findings are still imported as hosts.
- With the default
WT_PAGESof 5, at most 500 assets and 500 findings are imported. The maximum is 50 pages. - A 401 response stops the run. Other API errors (403, 429, 5xx) end the pagination of that endpoint and keep what was already read.
- The shared agent parameters (
AGENT_CONFIG_*tags and severity filters) are not applied by this executor. UseWT_MIN_SEVERITYto filter by severity.