Skip to content

Secureworks Taegis XDR Threat Intelligence Executor

Category: Threat Intelligence Script: secureworks_taegis.py Integration: GraphQL API (OAuth2) Faraday Plugin: Raw JSON Website: https://www.secureworks.com/products/taegis-xdr

Description

Imports investigations and XDR alerts from Secureworks Taegis into Faraday. Each alert and each investigation of your Taegis tenant becomes a Faraday vulnerability.

Prerequisites

  • A Secureworks Taegis XDR tenant
  • A Taegis API client (client ID and client secret) created in the Taegis console, with permission to read alerts and investigations
  • The ID of the Taegis tenant to import
  • requests available in the agent's Python environment (checked with python3 -c 'import requests')

Configuration

Environment Variables (Setup)

Variable Required Description
TAEGIS_CLIENT_ID Yes Taegis API client ID
TAEGIS_CLIENT_SECRET Yes Taegis API client secret
TAEGIS_HOST No Taegis API URL (default: https://api.ctpx.secureworks.com). Use the URL of your region if it is different, e.g. https://api.us.secureworks.com or https://api.eu.secureworks.com. If you omit the scheme, https:// is used.

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

Execution Arguments

Parameter Type Mandatory Description
TAEGIS_TENANT_ID string Yes ID of the Taegis tenant to import. It is sent with every request as the x-tenant-context header.
TAEGIS_MIN_SEVERITY string No Minimum severity to import: info, low, medium, high or critical. Aliases such as informational, moderate and crit are accepted. If empty or unrecognized, everything is imported.

YAML Configuration Example

executors:
  secureworks_taegis:
    repo_executor: secureworks_taegis.py
    max_size: 65536
    varenvs:
      TAEGIS_CLIENT_ID: "<taegis_client_id>"
      TAEGIS_CLIENT_SECRET: "<taegis_client_secret>"
      TAEGIS_HOST: "https://api.ctpx.secureworks.com"
    params:
      TAEGIS_TENANT_ID:
        mandatory: true
        type: string
        base: string
      TAEGIS_MIN_SEVERITY:
        mandatory: false
        type: string
        base: string

How It Works

  1. Gets an OAuth2 token with the client credentials flow at POST /auth/api/v2/auth/token
  2. Queries the GraphQL API at POST /graphql for the tenant's investigations (up to 500)
  3. Queries the GraphQL API for XDR alerts of the last 30 days with a severity of 0.2 or higher (up to 500)
  4. Maps each record to a Faraday vulnerability:
    • Name: [Taegis Investigation] or [Taegis Alert] followed by the title
    • Severity: for investigations, the priority (Critical, High, Medium, Low, Informational). For alerts, the 0-1 alert severity (0.8 and above critical, 0.6 high, 0.4 medium, 0.2 low, lower info).
    • Details: description, status, confidence, event or alert count, assignee, dates and a link to the record in the Taegis console
  5. Drops records below TAEGIS_MIN_SEVERITY and groups the rest under one host

Notes

  • Taegis records belong to your tenant and not to assets, so all vulnerabilities go under one host with IP 0.0.0.0 and hostname secureworks-taegis. Use them to correlate with the findings of your other tools.
  • All vulnerabilities are created as open. Investigations that are closed, resolved or suspended in Taegis are lowered to info severity, and their status is kept in the description.
  • If the GraphQL API returns errors, they are written to the agent log and the run continues with the data it received.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor. Use TAEGIS_MIN_SEVERITY to filter by severity.