Skip to content

Uptycs Executor

Category: SIEM and SOAR Script: uptycs.py Integration: REST API (JWT) Faraday Plugin: Raw JSON Website: https://www.uptycs.com

Description

Imports assets and alerts from an Uptycs tenant into Faraday. Each Uptycs asset becomes a host and each alert becomes a vulnerability prefixed with [SIEM].

Prerequisites

  • An Uptycs tenant with an API key (key ID and secret), created in the console under Configuration > Users > API Keys
  • The customer ID (UUID) of your Uptycs tenant
  • Network access to your Uptycs API host

Configuration

Environment Variables (Setup)

Variable Required Description
UPTYCS_HOST Yes Uptycs API URL including scheme (e.g., https://mytenant.uptycs.io)
UPTYCS_CUSTOMER_ID Yes Customer ID (UUID) of your Uptycs tenant
UPTYCS_API_KEY_ID Yes API key ID
UPTYCS_API_SECRET Yes API key secret

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

Execution Arguments

Parameter Type Mandatory Description
UPTYCS_TAG_FILTER string No Comma-separated asset tags. Only assets with one of these tags, and their alerts, are imported. Default: all assets.
UPTYCS_MIN_SEVERITY string No Minimum severity of alerts to import: info, low, medium, high or critical (default: info)

YAML Configuration Example

executors:
  uptycs:
    repo_executor: uptycs.py
    max_size: 65536
    varenvs:
      UPTYCS_HOST: "https://mytenant.uptycs.io"
      UPTYCS_CUSTOMER_ID: "00000000-0000-4000-8000-000000000000"
      UPTYCS_API_KEY_ID: "<uptycs_api_key_id>"
      UPTYCS_API_SECRET: "<uptycs_api_secret>"
    params:
      UPTYCS_TAG_FILTER:
        mandatory: false
        type: string
        base: string
      UPTYCS_MIN_SEVERITY:
        mandatory: false
        type: string
        base: string

How It Works

  1. Builds a short-lived JWT signed with UPTYCS_API_SECRET (issuer UPTYCS_API_KEY_ID) and sends it as a Bearer token
  2. Reads assets from /public/api/customers/{customer_id}/assets, limited to UPTYCS_TAG_FILTER tags when set
  3. Reads alerts from /public/api/customers/{customer_id}/alerts, limited to the filtered assets when UPTYCS_TAG_FILTER is set
  4. Attaches each alert to its asset as a vulnerability named [SIEM] <alert>, dropping alerts below UPTYCS_MIN_SEVERITY
  5. Maps severity from Uptycs' severity label, falling back to its 0-10 score

Notes

  • Assets without alerts are still imported as hosts.
  • Alerts that do not match an imported asset are grouped under a synthetic host. If nothing is returned, this host is still created.
  • UPTYCS_HOST must start with http:// or https://, and UPTYCS_CUSTOMER_ID must be a UUID. The run stops otherwise.
  • Malformed tags in UPTYCS_TAG_FILTER are logged and skipped. An unrecognized UPTYCS_MIN_SEVERITY falls back to info.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor. Use UPTYCS_MIN_SEVERITY to filter by severity.