Skip to content

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

  1. Requests an OAuth2 access token from {TRUSTAR_HOST}/oauth/token with TRUSTAR_API_KEY and TRUSTAR_API_SECRET
  2. Uses the enclaves in TRUSTAR_ENCLAVE_IDS, or lists all readable enclaves from /api/1.3/enclaves when it is empty
  3. Searches indicators with POST /api/1.3/indicators/search for those enclaves, filtered by TRUSTAR_PRIORITY
  4. Creates one vulnerability per indicator, named with the [TruSTAR] prefix, indicator type and value
  5. Maps severity from the TruSTAR priority: HIGH high, MEDIUM medium, LOW low, anything else info. HIGH indicators correlated with 10 or more reports become critical.

Notes

  • All indicators are placed under one host with IP 0.0.0.0 and hostname trustar, 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 CVE are added to the vulnerability's CVE list.
  • At most 5,000 indicators are imported per run.
  • An unrecognized TRUSTAR_PRIORITY value stops the run.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor. Use TRUSTAR_PRIORITY to filter by priority.