Skip to content

Forescout eyeInspect Executor

Category: OT and IoT Security Script: forescout_eyeinspect.py Integration: REST API (session token) Faraday Plugin: Raw JSON Website: https://www.forescout.com/platform/eyeinspect/

Description

Imports OT/ICS devices and security alerts from a Forescout eyeInspect appliance into Faraday. Each device and each alert becomes a host with one vulnerability describing it.

Prerequisites

  • A Forescout eyeInspect appliance reachable from the agent
  • An eyeInspect user with permission to read devices and alerts through the REST API

Configuration

Environment Variables (Setup)

Variable Required Description
EI_HOST Yes eyeInspect appliance URL (e.g., https://eyeinspect.example.com)
EI_USER Yes eyeInspect username
EI_PAGES No Maximum number of pages (100 records each) to read for devices and for alerts, from 1 to 100 (default: 10)
EI_PASSWORD Yes eyeInspect password

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

Execution Arguments

Parameter Type Mandatory Description
EI_SITE_ID string No Import only the devices and alerts of this eyeInspect site (default: all sites)
EI_MIN_SEVERITY string No Minimum severity to import: info, low, medium, high or critical (default: no filter)

YAML Configuration Example

executors:
  forescout_eyeinspect:
    repo_executor: forescout_eyeinspect.py
    max_size: 65536
    varenvs:
      EI_HOST: "https://eyeinspect.example.com"
      EI_USER: "<ei_user>"
      EI_PASSWORD: "<ei_password>"
    params:
      EI_SITE_ID:
        mandatory: false
        type: string
        base: string
      EI_MIN_SEVERITY:
        mandatory: false
        type: string
        base: string

How It Works

  1. Logs in with EI_USER and EI_PASSWORD at /api/auth/login and uses the returned session token as a Bearer token
  2. Reads the device inventory from /api/devices and the alerts from /api/alerts, 100 records per page, optionally restricted to EI_SITE_ID
  3. Creates one host per device with a single [ASSET-INVENTORY] eyeInspect device: <name> vulnerability. Its severity comes from the device's criticality.
  4. Creates one host per alert with a single [eyeInspect Alert] <title> vulnerability. Its severity comes from the alert's severity. Alerts that are resolved, muted, suppressed or dismissed are set to info.
  5. Drops records below EI_MIN_SEVERITY, if set

Notes

  • The device IP is the first usable address of the device; alerts use the IP of their first related device or the source/destination IP. When none is available the host uses 0.0.0.0.
  • Reads at most EI_PAGES pages of devices and of alerts.
  • All vulnerabilities are imported as open, including those of closed alerts.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor. Use EI_MIN_SEVERITY to filter by severity.