TruSTAR / Splunk Intelligence Management Executor¶
Category: Threat Intelligence
Script: trustar.py
Integration: REST API (OAuth2)
Faraday Plugin: Raw JSON
Website: https://www.splunk.com/en_us/products/intelligence-management.html
Description¶
Imports threat-intelligence indicators (IOCs) from TruSTAR / Splunk Intelligence Management into Faraday. Each indicator becomes a vulnerability under a single threat-intelligence host.
Prerequisites¶
- A TruSTAR (Splunk Intelligence Management) account with an API key and secret that can read the enclaves you want to import
- Network access to the TruSTAR API
Configuration¶
Environment Variables (Setup)¶
| Variable | Required | Description |
|---|---|---|
TRUSTAR_HOST |
No | TruSTAR API URL (default: https://api.trustar.co) |
TRUSTAR_API_KEY |
Yes | TruSTAR API key |
TRUSTAR_API_SECRET |
Yes | TruSTAR API secret |
These variables are also accepted as execution arguments, so a single run can override them.
Execution Arguments¶
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
TRUSTAR_ENCLAVE_IDS |
string | No | Comma-separated enclave IDs to import. Default: all enclaves the API key can read. |
TRUSTAR_PRIORITY |
string | No | Minimum indicator priority to import: LOW, MEDIUM or HIGH (critical is treated as HIGH). Default: all priorities. |
YAML Configuration Example¶
executors:
trustar:
repo_executor: trustar.py
max_size: 65536
varenvs:
TRUSTAR_HOST: "https://api.trustar.co"
TRUSTAR_API_KEY: "<trustar_api_key>"
TRUSTAR_API_SECRET: "<trustar_api_secret>"
params:
TRUSTAR_ENCLAVE_IDS:
mandatory: false
type: string
base: string
TRUSTAR_PRIORITY:
mandatory: false
type: string
base: string
How It Works¶
- Requests an OAuth2 access token from
{TRUSTAR_HOST}/oauth/tokenwithTRUSTAR_API_KEYandTRUSTAR_API_SECRET - Uses the enclaves in
TRUSTAR_ENCLAVE_IDS, or lists all readable enclaves from/api/1.3/enclaveswhen it is empty - Searches indicators with
POST /api/1.3/indicators/searchfor those enclaves, filtered byTRUSTAR_PRIORITY - Creates one vulnerability per indicator, named with the
[TruSTAR]prefix, indicator type and value - Maps severity from the TruSTAR priority:
HIGHhigh,MEDIUMmedium,LOWlow, anything else info.HIGHindicators correlated with 10 or more reports become critical.
Notes¶
- All indicators are placed under one host with IP
0.0.0.0and hostnametrustar, because IOCs are not tied to hosts. - All vulnerabilities have status open. The resolution is a blocking recommendation suited to the indicator type.
- Indicators of type
CVEare added to the vulnerability's CVE list. - At most 5,000 indicators are imported per run.
- An unrecognized
TRUSTAR_PRIORITYvalue stops the run. - The shared agent parameters (
AGENT_CONFIG_*tags and severity filters) are not applied by this executor. UseTRUSTAR_PRIORITYto filter by priority.