Skip to content

Edgescan Executor

Category: Vulnerability Scanners Script: edgescan.py Integration: REST API Faraday Plugin: Raw JSON Website: https://www.edgescan.com

Description

Imports assets and vulnerabilities from Edgescan into Faraday. Each Edgescan asset that has vulnerabilities becomes a host with its vulnerabilities attached.

Prerequisites

  • An Edgescan account with API access
  • An Edgescan API token with permission to read assets and vulnerabilities

Configuration

Environment Variables (Setup)

Variable Required Description
EDGESCAN_HOST No Edgescan URL (default: https://live.edgescan.com)
EDGESCAN_TOKEN Yes Edgescan API token

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

Execution Arguments

Parameter Type Mandatory Description
EDGESCAN_ASSET_TAG string No Import only assets with this Edgescan tag (default: all assets)
EDGESCAN_MIN_SEVERITY string No Minimum severity to import: info, low, medium, high or critical (default: info)

YAML Configuration Example

executors:
  edgescan:
    repo_executor: edgescan.py
    max_size: 65536
    varenvs:
      EDGESCAN_HOST: "https://live.edgescan.com"
      EDGESCAN_TOKEN: "<edgescan_token>"
    params:
      EDGESCAN_ASSET_TAG:
        mandatory: false
        type: string
        base: string
      EDGESCAN_MIN_SEVERITY:
        mandatory: false
        type: string
        base: string

How It Works

  1. Authenticates with the X-API-TOKEN header
  2. Lists assets from /api/v1/assets (filtered by EDGESCAN_ASSET_TAG when set), 100 per page
  3. For each asset, lists its vulnerabilities from /api/v1/vulnerabilities, filtered by minimum severity
  4. Maps each vulnerability to a Faraday vulnerability:
    • Severity: Edgescan's 1-5 scale (1 = info, 2 = low, 3 = medium, 4 = high, 5 = critical)
    • Status: closed and fixed become closed; everything else is open
    • Details: description, remediation, evidence, references, CVEs and CVSS score when present
  5. Creates one host per asset, using the asset's location as IP and its name as hostname

Notes

  • Assets without vulnerabilities are not imported.
  • An asset whose location is not an IP address (for example a web application URL) is still used as the host's ip value as-is. Assets without a location use 0.0.0.0.
  • TLS certificates are not verified.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor. Use EDGESCAN_MIN_SEVERITY to filter by severity.