Hardenize Executor¶
Category: Attack Surface Management
Script: hardenize.py
Integration: REST API
Faraday Plugin: Raw JSON
Website: https://www.hardenize.com/
Description¶
Imports the latest Hardenize assessment reports of an organization into Faraday. Each report becomes a host, and each failing or warning check (TLS, certificates, DNS/DNSSEC, SPF/DKIM/DMARC, MTA-STS, etc.) becomes a vulnerability prefixed with [EASM] Hardenize.
Prerequisites¶
- A Hardenize (Red Sift) account with API access
- A Hardenize API user and API key (Settings -> API Keys)
- The slug of the Hardenize organization to import
Configuration¶
Environment Variables (Setup)¶
| Variable | Required | Description |
|---|---|---|
HARDENIZE_HOST |
No | Hardenize URL (default: https://www.hardenize.com) |
HARDENIZE_USER |
Yes | Hardenize API user |
HARDENIZE_API_KEY |
Yes | Hardenize API key |
These variables are also accepted as execution arguments, so a single run can override them.
Execution Arguments¶
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
HARDENIZE_ORG |
string | Yes | Slug of the Hardenize organization to import |
HARDENIZE_HOST_FILTER |
string | No | Import only hosts whose name contains this text (case-insensitive, default: all hosts) |
HARDENIZE_MIN_SEVERITY |
string | No | Minimum severity to import: info, low, medium, high or critical (default: no filter) |
HARDENIZE_PAGES |
string | No | Maximum number of pages (100 reports each) to read, from 1 to 50 (default: 5) |
YAML Configuration Example¶
executors:
hardenize:
repo_executor: hardenize.py
max_size: 65536
varenvs:
HARDENIZE_USER: "<hardenize_user>"
HARDENIZE_API_KEY: "<hardenize_api_key>"
params:
HARDENIZE_ORG:
mandatory: true
type: string
base: string
HARDENIZE_HOST_FILTER:
mandatory: false
type: string
base: string
HARDENIZE_MIN_SEVERITY:
mandatory: false
type: string
base: string
HARDENIZE_PAGES:
mandatory: false
type: string
base: string
How It Works¶
- Authenticates with HTTP Basic using
HARDENIZE_USERandHARDENIZE_API_KEY - Reads the latest report of every host of the organization from
/api/v0/orgs/{org}/reports/latest, 100 per page - Keeps the hosts that match
HARDENIZE_HOST_FILTER, if set - Creates one vulnerability per check in the report whose result is not a pass or informational result. Severity comes from the check's severity, and its status is mapped to open, closed or risk-accepted.
- Drops vulnerabilities below
HARDENIZE_MIN_SEVERITY, if set
Notes¶
- The host IP is the first public IP of the report. Reports without an IP (Hardenize is hostname-based) use
0.0.0.0and the domain as hostname. - Reports with no failing checks are still imported as hosts without vulnerabilities.
- Reads at most
HARDENIZE_PAGESpages. An unrecognizedHARDENIZE_MIN_SEVERITYis ignored and logged. - The shared agent parameters (
AGENT_CONFIG_*tags and severity filters) are not applied by this executor. UseHARDENIZE_MIN_SEVERITYto filter by severity.