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¶
- Authenticates with HTTP Basic using
TC_ACCOUNT_IDandTC_API_KEY - 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 byTC_MIN_SEVERITYon the server - Creates one vulnerability per record with its type, status, related indicators, source URL and assets. Severity
High,MediumandLowmap to high, medium and low. Alerts inClosed,AcknowledgedorDismissedstatus are set toinfo. - Puts all vulnerabilities under one host
Notes¶
- The host has the synthetic IP
0.0.0.0and the hostnameintsights-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_TYPEis not one of the allowed values. - The shared agent parameters (
AGENT_CONFIG_*tags and severity filters) are not applied by this executor. UseTC_MIN_SEVERITYto filter by severity.