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
requestsmodule 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¶
- Requests an access token from
{CYBELANGEL_AUTH_HOST}/oauth/tokenusing the client credentials flow - Reads assets from
GET /api/2.0/assetsand threats fromGET /api/2.0/threats, 100 per page.CYBELANGEL_FROM_DATEis sent to the threats endpoint ascreated_after. - Creates one host per asset, using its first public IP and its hostnames
- Attaches each threat to its asset as an
[EASM]vulnerability, with CVEs when present - 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_SEVERITYare 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. UseCYBELANGEL_MIN_SEVERITYto filter by severity.