Skip to content

Rapid7 Threat Command (formerly IntSights) Executor

Category: Threat Intelligence Script: intsights_threat_command.py Integration: REST API Faraday Plugin: Raw JSON Website: https://www.rapid7.com/products/threat-command/

Description

Imports alerts or threat indicators (IOCs) from Rapid7 Threat Command (formerly IntSights) into Faraday. Each alert or indicator becomes a vulnerability prefixed with [ThreatCommand] under a single host.

Prerequisites

  • A Rapid7 Threat Command account with API access
  • A Threat Command API account ID and API key (Automation -> Integrations -> API Credentials)

Configuration

Environment Variables (Setup)

Variable Required Description
TC_ACCOUNT_ID Yes Threat Command API account ID
INTSIGHTS_HOST No Threat Command API URL (default: https://api.ti.insight.rapid7.com)
TC_API_KEY Yes Threat Command API key

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

Execution Arguments

Parameter Type Mandatory Description
TC_ALERT_TYPE string Yes What to import: an alert type (AttackIndication, DataLeakage, Phishing, BrandSecurity, ExploitableData, VIP or ReputationLeakage), all for every alert type, or iocs for threat indicators
TC_MIN_SEVERITY string No Minimum severity to import: low, medium or high. critical is treated as high. Default: all severities.

YAML Configuration Example

executors:
  intsights_threat_command:
    repo_executor: intsights_threat_command.py
    max_size: 65536
    varenvs:
      TC_ACCOUNT_ID: "<tc_account_id>"
      TC_API_KEY: "<tc_api_key>"
    params:
      TC_ALERT_TYPE:
        mandatory: true
        type: string
        base: string
      TC_MIN_SEVERITY:
        mandatory: false
        type: string
        base: string

How It Works

  1. Authenticates with HTTP Basic using TC_ACCOUNT_ID and TC_API_KEY
  2. According to TC_ALERT_TYPE, reads either the alerts (/public/v1/data/alerts/alerts-list, 50 per page) or the threat indicators (/public/v1/iocs/threat-indicators, 100 per page), filtered by TC_MIN_SEVERITY on the server
  3. Creates one vulnerability per record with its type, status, related indicators, source URL and assets. Severity High, Medium and Low map to high, medium and low. Alerts in Closed, Acknowledged or Dismissed status are set to info.
  4. Puts all vulnerabilities under one host

Notes

  • The host has the synthetic IP 0.0.0.0 and the hostname intsights-threat-command, because Threat Command records belong to your brand or assets rather than to a host.
  • The executor imports at most 5,000 records per run. All vulnerabilities are imported as open.
  • The executor exits with an error if TC_ALERT_TYPE is not one of the allowed values.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor. Use TC_MIN_SEVERITY to filter by severity.