Skip to content

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

  1. Authenticates with Authorization: Bearer <IONIX_API_KEY>
  2. Lists the assets from /api/v1/assets and the findings from /api/v1/findings, 100 per page. IONIX_STATUS is also sent to Ionix as a filter on the findings.
  3. 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
  4. Creates one host per asset with its first public IP and its names
  5. Drops findings below IONIX_MIN_SEVERITY or not matching IONIX_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_PAGES pages for the assets and for the findings.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor. Use IONIX_MIN_SEVERITY to filter by severity.