Skip to content

CybelAngel Executor

Category: Attack Surface Management Script: cybelangel.py Integration: REST API (OAuth2) Faraday Plugin: Raw JSON Website: https://cybelangel.com/

Description

Imports externally discovered assets and digital-risk threats from CybelAngel into Faraday. Each asset becomes a host and each threat becomes a vulnerability on the asset it affects.

Prerequisites

  • A CybelAngel account with API access
  • An API client (client ID and secret) created in the CybelAngel console under Settings > API Keys
  • Python requests module available to the agent

Configuration

Environment Variables (Setup)

Variable Required Description
CYBELANGEL_CLIENT_ID Yes API client ID
CYBELANGEL_CLIENT_SECRET Yes API client secret
CYBELANGEL_HOST No CybelAngel API URL (default: https://platform.cybelangel.com)
CYBELANGEL_AUTH_HOST No CybelAngel authentication URL (default: https://auth.cybelangel.com)
CYBELANGEL_AUDIENCE No OAuth2 audience for the token request (default: https://platform.cybelangel.com/)

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

Execution Arguments

Parameter Type Mandatory Description
CYBELANGEL_MIN_SEVERITY string No Minimum severity to import: info, low, medium, high or critical (aliases such as Sev1 to Sev5 or P1 to P5 are also accepted). Leave blank to import everything.
CYBELANGEL_FROM_DATE string No Only import threats created on or after this date, in YYYY-MM-DD or ISO 8601 format (e.g., 2025-01-01). Invalid values are ignored.
CYBELANGEL_PAGES string No Maximum number of pages (100 records each) to read from each list (default: 5, maximum: 50)

YAML Configuration Example

executors:
  cybelangel:
    repo_executor: cybelangel.py
    max_size: 65536
    varenvs:
      CYBELANGEL_CLIENT_ID: "<client_id>"
      CYBELANGEL_CLIENT_SECRET: "<client_secret>"
    params:
      CYBELANGEL_MIN_SEVERITY:
        mandatory: false
        type: string
        base: string
      CYBELANGEL_FROM_DATE:
        mandatory: false
        type: string
        base: string
      CYBELANGEL_PAGES:
        mandatory: false
        type: string
        base: string

How It Works

  1. Requests an access token from {CYBELANGEL_AUTH_HOST}/oauth/token using the client credentials flow
  2. Reads assets from GET /api/2.0/assets and threats from GET /api/2.0/threats, 100 per page. CYBELANGEL_FROM_DATE is sent to the threats endpoint as created_after.
  3. Creates one host per asset, using its first public IP and its hostnames
  4. Attaches each threat to its asset as an [EASM] vulnerability, with CVEs when present
  5. Maps severity and status from CybelAngel. Open and in-progress threats are open, resolved threats are closed, and false-positive or risk-accepted threats are risk-accepted. Threats below CYBELANGEL_MIN_SEVERITY are dropped.

Notes

  • Assets without an IP (for example domains) use IP 0.0.0.0. Threats that do not match any returned asset are grouped on a host named (unattached).
  • Assets are imported as hosts even when they have no threats.
  • The run stops if the credentials are missing or the token request fails.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor. Use CYBELANGEL_MIN_SEVERITY to filter by severity.