Skip to content

IriusRisk Threat Modeling Executor

Category: Threat Intelligence Script: iriusrisk.py Integration: REST API Faraday Plugin: Raw JSON Website: https://www.iriusrisk.com/

Description

Imports threat-model threats from IriusRisk into Faraday. The executor reads the threats of one product, or of every product in your tenant, and creates one Faraday vulnerability per threat with its risk level, CWEs and countermeasures.

Prerequisites

  • An IriusRisk tenant with API access
  • An IriusRisk API token that can read products and their threats

Configuration

Environment Variables (Setup)

Variable Required Description
IRIUS_HOST Yes URL of your IriusRisk instance (e.g., https://acme.iriusrisk.com). https:// is added if missing.
IRIUS_TOKEN Yes IriusRisk API token, sent in the api-token header

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

Execution Arguments

Parameter Type Mandatory Description
IRIUS_PRODUCT_REF string No Reference (slug) of a single product to import, as shown by IriusRisk. It is case-sensitive. If empty, the threats of all products are imported.

YAML Configuration Example

executors:
  iriusrisk:
    repo_executor: iriusrisk.py
    max_size: 65536
    varenvs:
      IRIUS_HOST: "https://acme.iriusrisk.com"
      IRIUS_TOKEN: "<irius_token>"
    params:
      IRIUS_PRODUCT_REF:
        mandatory: false
        type: string
        base: string

How It Works

  1. Uses IRIUS_PRODUCT_REF if set. Otherwise lists the products with GET /api/v1/products, 100 per page, up to 100 pages (5,000 products).
  2. For each product, calls GET /api/v1/products/{ref}/threats
  3. Maps each threat to a vulnerability:
    • Name: [IriusRisk] <product> :: <threat>
    • Severity: the threat's risk level (Very High becomes critical, High, Medium, Low, and Very Low/Nothing become info), or the 0-100 risk rating when no level is given
    • Resolution: the recommended countermeasures, or a generic review step when there are none
    • References: product and threat refs, category, state, CWEs, countermeasures and the product page in the IriusRisk console

Notes

  • All threats are grouped under a single host with IP 0.0.0.0 and hostname iriusrisk, because threat models are not tied to network hosts. The host is created even if no threats are found.
  • Threats in the Mitigated, Not applicable or Rejected states are set to info severity. The vulnerability status is always open.
  • Authentication errors, missing products and other failed requests are written to the agent log and skipped, and the run continues.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor.