Ionix Executor¶
Category: Attack Surface Management
Script: ionix.py
Integration: REST API
Faraday Plugin: Raw JSON
Website: https://www.ionix.io/
Description¶
Imports the externally discovered assets and findings of an Ionix (EASM) tenant into Faraday. Each asset becomes a host and its findings become vulnerabilities prefixed with [EASM].
Prerequisites¶
- An Ionix account with API access
- An Ionix API key (Settings -> API Keys)
Configuration¶
Environment Variables (Setup)¶
| Variable | Required | Description |
|---|---|---|
IONIX_HOST |
Yes | Ionix API host (e.g., api.ionix.io). https:// is added when missing. |
IONIX_API_KEY |
Yes | Ionix API key |
These variables are also accepted as execution arguments, so a single run can override them.
Execution Arguments¶
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
IONIX_MIN_SEVERITY |
string | No | Minimum severity to import: info, low, medium, high or critical (default: no filter) |
IONIX_STATUS |
string | No | Import only findings with this status: open, closed or risk-accepted (default: all) |
IONIX_PAGES |
string | No | Maximum number of pages (100 items each) to read per list, from 1 to 50 (default: 5) |
YAML Configuration Example¶
executors:
ionix:
repo_executor: ionix.py
max_size: 65536
varenvs:
IONIX_HOST: "api.ionix.io"
IONIX_API_KEY: "<ionix_api_key>"
params:
IONIX_MIN_SEVERITY:
mandatory: false
type: string
base: string
IONIX_STATUS:
mandatory: false
type: string
base: string
IONIX_PAGES:
mandatory: false
type: string
base: string
How It Works¶
- Authenticates with
Authorization: Bearer <IONIX_API_KEY> - Lists the assets from
/api/v1/assetsand the findings from/api/v1/findings, 100 per page.IONIX_STATUSis also sent to Ionix as a filter on the findings. - Attaches each finding to its asset and maps it to a Faraday vulnerability:
- Severity: Ionix's severity
- Status: open, closed or risk-accepted, from the finding's status
- Details: remediation, CVEs and other finding data
- Creates one host per asset with its first public IP and its names
- Drops findings below
IONIX_MIN_SEVERITYor not matchingIONIX_STATUS, if set
Notes¶
- Assets without a public IP (domain-based assets) use the synthetic IP
0.0.0.0. - Findings that cannot be matched to a listed asset are grouped under a host named
(unattached). - Reads at most
IONIX_PAGESpages for the assets and for the findings. - The shared agent parameters (
AGENT_CONFIG_*tags and severity filters) are not applied by this executor. UseIONIX_MIN_SEVERITYto filter by severity.