Skip to content

NetRise XIoT Executor

Category: Endpoint Security Script: netrise.py Integration: REST API Faraday Plugin: Raw JSON Website: https://www.netrise.io

Description

Imports the firmware devices and firmware vulnerabilities of a NetRise tenant into Faraday. Each NetRise device becomes a host and each finding becomes a vulnerability on that host.

Prerequisites

  • A NetRise tenant with API access
  • A NetRise API token (created in the NetRise console under Settings, API Tokens)

Configuration

Environment Variables (Setup)

Variable Required Description
NETRISE_HOST Yes NetRise tenant URL (e.g., https://api.netrise.io)
NETRISE_TOKEN Yes NetRise API token, sent as a bearer token

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

Execution Arguments

Parameter Type Mandatory Description
NETRISE_DEVICE_GROUP string No Import only the devices of this NetRise device group (e.g., edge_routers). If not set, all devices are imported.
NETRISE_MIN_SEVERITY string No Minimum severity to import: info, low, medium, high or critical (default: info)

YAML Configuration Example

executors:
  netrise:
    repo_executor: netrise.py
    max_size: 65536
    varenvs:
      NETRISE_HOST: "https://api.netrise.io"
      NETRISE_TOKEN: "<netrise_token>"
    params:
      NETRISE_DEVICE_GROUP:
        mandatory: false
        type: string
        base: string
      NETRISE_MIN_SEVERITY:
        mandatory: false
        type: string
        base: string

How It Works

  1. Authenticates with the API token as a bearer token
  2. Reads the device inventory from GET /api/v1/devices (100 per page), filtered by NETRISE_DEVICE_GROUP if set
  3. For each device, reads its findings from GET /api/v1/firmware-vulnerabilities. If no devices are found, it reads all findings instead.
  4. Maps each finding to a Faraday vulnerability:
    • Name: [EDR] plus the vulnerability label
    • Severity: NetRise's severity, or the CVSS score when no severity is given
    • Status: the finding's status or determination; false positives become risk-accepted, everything else is open
    • References: CVEs and advisory links
  5. Drops findings below NETRISE_MIN_SEVERITY and groups the rest under one host per device

Notes

  • Each device is a host. The IP is the device's IP address if NetRise has one, otherwise 0.0.0.0. The host OS field holds the firmware vendor, model and version.
  • Devices without findings are also imported as hosts.
  • Setup variables can also be passed as execution arguments.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor. Use NETRISE_MIN_SEVERITY to filter by severity.
  • An unrecognized NETRISE_MIN_SEVERITY falls back to info. A numeric CVSS score is also accepted.