Cyberwatch Executor¶
Category: Vulnerability Scanners
Script: cyberwatch.py
Integration: REST API (HTTP signatures)
Faraday Plugin: Raw JSON
Website: https://cyberwatch.fr/
Description¶
Imports assets and their vulnerabilities from a Cyberwatch server into Faraday. Each Cyberwatch asset that has vulnerabilities becomes a Faraday host with its vulnerabilities attached.
Prerequisites¶
- A Cyberwatch server reachable from the agent
- A Cyberwatch API key and secret key with permission to read assets and vulnerabilities
Configuration¶
Environment Variables (Setup)¶
| Variable | Required | Description |
|---|---|---|
CYBERWATCH_HOST |
Yes | Cyberwatch server URL or hostname (e.g., https://cyberwatch.example.com) |
CYBERWATCH_API_KEY |
Yes | Cyberwatch API key |
CYBERWATCH_SECRET_KEY |
Yes | Cyberwatch API secret key |
These variables are also accepted as execution arguments, so a single run can override them.
Execution Arguments¶
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
CYBERWATCH_GROUP |
string | No | Import only the assets of this Cyberwatch group (default: all assets) |
CYBERWATCH_MIN_SEVERITY |
string | No | Minimum severity to import: info, low, medium, high or critical (default: info) |
YAML Configuration Example¶
executors:
cyberwatch:
repo_executor: cyberwatch.py
max_size: 65536
varenvs:
CYBERWATCH_HOST: "https://cyberwatch.example.com"
CYBERWATCH_API_KEY: "<cyberwatch_api_key>"
CYBERWATCH_SECRET_KEY: "<cyberwatch_secret_key>"
params:
CYBERWATCH_GROUP:
mandatory: false
type: string
base: string
CYBERWATCH_MIN_SEVERITY:
mandatory: false
type: string
base: string
How It Works¶
- Signs every request with HMAC-SHA256 using
CYBERWATCH_API_KEYandCYBERWATCH_SECRET_KEY(HTTP SignatureAuthorizationheader) - Lists assets from
/api/v3/assets, filtered byCYBERWATCH_GROUPwhen set, 100 per page - For each asset, lists its vulnerabilities from
/api/v3/vulnerabilities, filtered by minimum severity - Maps each vulnerability to a Faraday vulnerability:
- Severity: Cyberwatch's level (e.g.
level_high) or CVSS score mapped to Faraday's scale - Status:
closed,fixed,resolved,patchedandignoredbecome closed; everything else is open - Details: description, remediation, evidence, references, CVEs and CVSS v3 score when present
- Severity: Cyberwatch's level (e.g.
- Creates one host per asset with its IP, hostname, OS and MAC address
Notes¶
- Assets without vulnerabilities (after the severity filter) are not imported.
- An asset without an IP address is imported with IP
0.0.0.0. - TLS certificates are not verified.
CYBERWATCH_HOSTcan be a bare hostname (https://is assumed) or a full URL.- The shared agent parameters (
AGENT_CONFIG_*tags and severity filters) are not applied by this executor. UseCYBERWATCH_MIN_SEVERITYto filter by severity.