Skip to content

Ivanti Security Controls (iSec) Executor

Category: Patch Management Script: ivanti_security_controls.py Integration: REST API Faraday Plugin: Raw JSON Website: https://www.ivanti.com/products/security-controls

Description

Imports the missing patches found by an Ivanti Security Controls patch scan into Faraday. Each scanned machine becomes a host and each missing patch a vulnerability prefixed with [PATCH-MGMT].

Prerequisites

  • An Ivanti Security Controls console with the REST API enabled and reachable from the agent
  • An API key (Tools -> Options -> REST API in the console)
  • A completed patch scan, or a machine group that has one

Configuration

Environment Variables (Setup)

Variable Required Description
ISEC_HOST Yes Ivanti Security Controls console URL (e.g., https://isec.example.com:3121)
ISEC_API_KEY Yes Console API key

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

Execution Arguments

Parameter Type Mandatory Description
ISEC_MACHINE_GROUP string No* Name of the machine group whose most recent scan is imported
ISEC_SCAN_ID string No* ID of the scan to import. Takes priority over ISEC_MACHINE_GROUP.
ISEC_MIN_SEVERITY string No Minimum severity to import: info, low, medium, high or critical (default: info)

* You must set ISEC_SCAN_ID, ISEC_MACHINE_GROUP, or both.

YAML Configuration Example

executors:
  ivanti_security_controls:
    repo_executor: ivanti_security_controls.py
    max_size: 65536
    varenvs:
      ISEC_HOST: "https://isec.example.com:3121"
      ISEC_API_KEY: "<isec_api_key>"
    params:
      ISEC_MACHINE_GROUP:
        mandatory: false
        type: string
        base: string
      ISEC_SCAN_ID:
        mandatory: false
        type: string
        base: string
      ISEC_MIN_SEVERITY:
        mandatory: false
        type: string
        base: string

How It Works

  1. Authenticates with Authorization: AppKey <ISEC_API_KEY>
  2. Picks the scan: ISEC_SCAN_ID if set, otherwise the most recent scan of ISEC_MACHINE_GROUP from /api/scans (falling back to the most recent scan overall)
  3. Reads the scan details from /api/scans/{id} and its missing patches from /api/scans/{id}/missingPatches, 100 per page
  4. Maps each missing patch to a Faraday vulnerability:
    • Severity: the patch's severity label or CVSS score
    • Status: taken from the patch status when present; otherwise open
    • Details: bulletin and KB IDs, vendor, product, CVEs, release date and scan information
  5. Groups the patches by machine, creates one host per machine and drops patches below ISEC_MIN_SEVERITY

Notes

  • You must set ISEC_SCAN_ID or ISEC_MACHINE_GROUP; the executor exits otherwise.
  • When no missing patches match, the executor still creates one empty host for the scan so the run is recorded.
  • Only one scan is imported per run.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor. Use ISEC_MIN_SEVERITY to filter by severity.