Skip to content

Nozomi Networks Guardian / CMC Executor

Category: OT and IoT Security Script: nozomi_guardian.py Integration: REST API (Open Query) Faraday Plugin: Raw JSON Website: https://www.nozominetworks.com/products/guardian/

Description

Imports assets, alerts and vulnerabilities from a Nozomi Networks Guardian appliance into Faraday. Each record becomes a host with one vulnerability entry that carries the Guardian details.

Prerequisites

  • A Nozomi Guardian (or CMC) appliance reachable from the agent
  • A Guardian user with permission to run Open Query requests

Configuration

Environment Variables (Setup)

Variable Required Description
NOZOMI_PAGES No Maximum number of pages (100 records each) to read per query (default: 10, maximum: 100)
NOZOMI_HOST Yes Guardian URL (e.g., https://guardian.example.com)
NOZOMI_USER Yes Guardian username
NOZOMI_PASSWORD Yes Guardian password

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

Execution Arguments

Parameter Type Mandatory Description
NOZOMI_QUERY_SCOPE string No What to import: assets, alerts, vulns or all (default: all). Unknown values also import everything.
NOZOMI_MIN_SEVERITY string No Minimum severity to import: info, low, medium, high or critical. Records below it are dropped. If not set, everything is imported.

YAML Configuration Example

executors:
  nozomi_guardian:
    repo_executor: nozomi_guardian.py
    max_size: 65536
    varenvs:
      NOZOMI_HOST: "https://guardian.example.com"
      NOZOMI_USER: "<nozomi_user>"
      NOZOMI_PASSWORD: "<nozomi_password>"
    params:
      NOZOMI_QUERY_SCOPE:
        mandatory: false
        type: string
        base: string
      NOZOMI_MIN_SEVERITY:
        mandatory: false
        type: string
        base: string

How It Works

  1. Authenticates with HTTP Basic using NOZOMI_USER and NOZOMI_PASSWORD
  2. For each selected scope, runs Open Query requests against /api/open/query/do (assets, alerts, vulnerabilities), 100 records per page
  3. Maps each record to a host with one vulnerability:
    • Assets: [ASSET-INVENTORY] entries, with severity taken from the asset's criticality
    • Alerts: [Nozomi Alert] entries, with severity taken from the alert's severity or risk
    • Vulnerabilities: [Nozomi Vuln] entries, with severity taken from the severity or CVSS score
  4. Drops records below NOZOMI_MIN_SEVERITY

Notes

  • Every record becomes its own host. The IP comes from the record (asset IP, alert source IP, or the vulnerable asset's IP) and falls back to 0.0.0.0 when Guardian gives none.
  • Alerts and vulnerabilities that Guardian has resolved, muted, closed, mitigated or marked as accepted risk are imported with info severity.
  • With the default NOZOMI_PAGES, at most 1000 records per scope are imported.
  • 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 NOZOMI_MIN_SEVERITY to filter by severity.