Skip to content

IBM QRadar SOAR (Resilient) Executor

Category: SIEM and SOAR Script: qradar_soar.py Integration: REST API Faraday Plugin: Raw JSON Website: https://www.ibm.com/products/qradar-soar

Description

Imports security incidents from an IBM QRadar SOAR (formerly IBM Resilient) organization into Faraday. Each incident becomes a Faraday vulnerability, attached to the host found in the incident's artifacts.

Prerequisites

  • An IBM QRadar SOAR instance reachable from the agent
  • The ID of the organization to import
  • An API key (key ID and secret) with read access to the incidents and artifacts of that organization

Configuration

Environment Variables (Setup)

Variable Required Description
QRADAR_SOAR_HOST Yes Base URL of your SOAR instance (e.g., https://soar.example.com). If you omit the scheme, https:// is used.
QRADAR_SOAR_ORG_ID Yes ID of the SOAR organization to import incidents from (e.g., 201)
QRADAR_SOAR_API_KEY_ID Yes API key ID
QRADAR_SOAR_API_KEY_SECRET Yes API key secret

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

Execution Arguments

Parameter Type Mandatory Description
QRADAR_SOAR_QUERY string No JSON filter to select which incidents to import. Accepts a full query ({"filters": [...]}), a list of filters, or a single condition such as {"field_name": "plan_status", "method": "equals", "value": "A"}. If empty, all incidents are imported.

YAML Configuration Example

executors:
  qradar_soar:
    repo_executor: qradar_soar.py
    max_size: 65536
    varenvs:
      QRADAR_SOAR_HOST: "https://soar.example.com"
      QRADAR_SOAR_ORG_ID: "201"
      QRADAR_SOAR_API_KEY_ID: "<api_key_id>"
      QRADAR_SOAR_API_KEY_SECRET: "<api_key_secret>"
    params:
      QRADAR_SOAR_QUERY:
        mandatory: false
        type: string
        base: string

How It Works

  1. Authenticates with HTTP Basic, using the API key ID as user and the API key secret as password
  2. Lists incidents with POST /rest/orgs/{org_id}/incidents/query_paged, newest first, 100 per page and up to 200 pages, applying QRADAR_SOAR_QUERY if set
  3. Fetches the artifacts of each incident (GET /rest/orgs/{org_id}/incidents/{id}/artifacts) to find the affected asset: IP address, host name, MAC address and operating system
  4. Maps each incident to a vulnerability:
    • Name and description: the incident name, description and dates
    • Severity: the incident's severity text if present, otherwise severity_code (4 high, 5 medium, 6 low); anything else is info
    • Status: closed if the incident has a resolution or its plan status is C, otherwise open
    • Resolution: the incident's resolution summary
    • CVEs: artifacts of type CVE or Vulnerability, and custom properties whose name contains cve
  5. Groups incidents by asset into Faraday hosts

Notes

  • Incidents without an IP address or host name in their artifacts are grouped under a host with IP 0.0.0.0.
  • If QRADAR_SOAR_QUERY is not valid JSON, it is ignored and all incidents are imported.
  • TLS certificate verification is disabled for requests to the SOAR server.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor.