Skip to content

Hadrian Executor

Category: Attack Surface Management Script: hadrian.py Integration: REST API Faraday Plugin: Raw JSON Website: https://hadrian.io/

Description

Imports the externally discovered assets and issues of a Hadrian (EASM) tenant into Faraday. Each asset becomes a host and its issues become vulnerabilities prefixed with [EASM].

Prerequisites

  • A Hadrian account with API access
  • A Hadrian API token (Settings -> API Tokens)

Configuration

Environment Variables (Setup)

Variable Required Description
HADRIAN_HOST Yes Hadrian API host (e.g., api.hadrian.io). https:// is added when missing.
HADRIAN_TOKEN Yes Hadrian API token

These variables are also accepted as execution arguments, so a single run can override them.

Execution Arguments

Parameter Type Mandatory Description
HADRIAN_WORKSPACE string No Hadrian workspace ID to import (default: all workspaces the token can read)
HADRIAN_MIN_SEVERITY string No Minimum severity to import: info, low, medium, high or critical (default: no filter)
HADRIAN_PAGES string No Maximum number of pages (100 items each) to read per list, from 1 to 50 (default: 5)

YAML Configuration Example

executors:
  hadrian:
    repo_executor: hadrian.py
    max_size: 65536
    varenvs:
      HADRIAN_HOST: "api.hadrian.io"
      HADRIAN_TOKEN: "<hadrian_token>"
    params:
      HADRIAN_WORKSPACE:
        mandatory: false
        type: string
        base: string
      HADRIAN_MIN_SEVERITY:
        mandatory: false
        type: string
        base: string
      HADRIAN_PAGES:
        mandatory: false
        type: string
        base: string

How It Works

  1. Authenticates with Authorization: Bearer <HADRIAN_TOKEN>
  2. Lists the assets from /api/v1/assets and the issues from /api/v1/issues, 100 per page, restricted to HADRIAN_WORKSPACE when set
  3. Attaches each issue to its asset and maps it to a Faraday vulnerability:
    • Severity: Hadrian's severity
    • Status: open-like statuses stay open, resolved/fixed become closed, accepted or false-positive issues become risk-accepted
    • Details: remediation, CVEs and other issue data
  4. Creates one host per asset with its first public IP and its names
  5. Drops issues below HADRIAN_MIN_SEVERITY, if set

Notes

  • Assets without a public IP (domain-based assets) use the synthetic IP 0.0.0.0.
  • Issues that cannot be matched to a listed asset are grouped under a host named (unattached).
  • Reads at most HADRIAN_PAGES pages for the assets and for the issues.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor. Use HADRIAN_MIN_SEVERITY to filter by severity.