Skip to content

Mandiant Advantage Threat Intelligence Executor

Category: Threat Intelligence Script: mandiant.py Integration: REST API (OAuth2) Faraday Plugin: Raw JSON Website: https://advantage.mandiant.com/

Description

Looks up the CVEs and indicators of compromise (IOCs) you list in Mandiant Advantage Threat Intelligence and imports the results into Faraday. Mandiant data is not tied to a host, so everything is grouped under one synthetic host.

Prerequisites

  • A Mandiant Advantage Threat Intelligence subscription with API access
  • A Mandiant API key ID and key secret (generated in Mandiant Advantage)
  • At least one CVE or indicator to look up. With neither, the run produces an empty result.

Configuration

Environment Variables (Setup)

Variable Required Description
MANDIANT_HOST No Mandiant API URL (default: https://api.intelligence.mandiant.com)
MANDIANT_KEY_ID Yes Mandiant API key ID
MANDIANT_KEY_SECRET Yes Mandiant API key secret

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

Execution Arguments

Parameter Type Mandatory Description
MANDIANT_VULN_CVES string No Comma-separated CVE IDs to look up (e.g., CVE-2024-1234, CVE-2023-5678). Invalid IDs are skipped.
MANDIANT_INDICATOR_LIST string No Comma-separated indicators in type:value format (e.g., ip:198.51.100.1, fqdn:malicious.example.com). Accepted types: md5, sha1, sha256, ip, ipv4, ipv6, fqdn, domain, url. Invalid entries are skipped.

YAML Configuration Example

executors:
  mandiant:
    repo_executor: mandiant.py
    max_size: 65536
    varenvs:
      MANDIANT_KEY_ID: "<mandiant_key_id>"
      MANDIANT_KEY_SECRET: "<mandiant_key_secret>"
    params:
      MANDIANT_VULN_CVES:
        mandatory: false
        type: string
        base: string
      MANDIANT_INDICATOR_LIST:
        mandatory: false
        type: string
        base: string

How It Works

  1. Requests an OAuth2 token from /token, using the key ID and secret as HTTP Basic credentials
  2. For each CVE, calls GET /v4/vulnerability/{cve_id}
  3. For each indicator, calls GET /v4/indicator/{type}/{value}
  4. Maps each result to a Faraday vulnerability:
    • CVEs: severity from Mandiant's risk rating, or the CVSS score when there is no rating. Includes exploitation state, affected products, fix references and associated actors and malware.
    • Indicators: severity from the Mandiant confidence score (mscore): 80 and above is critical, 50 to 79 high, 25 to 49 medium, 10 to 24 low, below 10 info
  5. Groups all results under one host

Notes

  • The executor creates a single host per run. Its IP is 0.0.0.0 and its hostname is mandiant. The findings are threat intelligence, not scan results for a specific asset.
  • Requests are paced at about three per second, so large lists take a while.
  • Setup variables can also be passed as execution arguments.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor.