CyCognito Executor¶
Category: Attack Surface Management
Script: cycognito.py
Integration: REST API
Faraday Plugin: Raw JSON
Website: https://www.cycognito.com/
Description¶
Imports externally discovered assets and issues from CyCognito into Faraday. Each asset becomes a host and each issue becomes a vulnerability on the asset it affects.
Prerequisites¶
- A CyCognito account with API access
- An API token created in the CyCognito console under Settings > API
- Python
requestsmodule available to the agent
Configuration¶
Environment Variables (Setup)¶
| Variable | Required | Description |
|---|---|---|
CYCOG_HOST |
Yes | CyCognito API host (e.g., api.platform.cycognito.com) |
CYCOG_TOKEN |
Yes | CyCognito API token |
CYCOG_REALM |
No | Realm (organization) to import. Leave blank if your token is not limited to one realm. |
These variables are also accepted as execution arguments, so a single run can override them.
Execution Arguments¶
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
CYCOG_FILTER |
string | No | JSON filter sent to CyCognito for both assets and issues (e.g., {"discovery_source": "seed_domain"}). Invalid JSON is ignored. |
CYCOG_MIN_SEVERITY |
string | No | Minimum severity to import: info, low, medium, high or critical. Leave blank to import everything. |
CYCOG_PAGES |
string | No | Maximum number of pages (100 records each) to read from each list (default: 5, maximum: 50) |
YAML Configuration Example¶
executors:
cycognito:
repo_executor: cycognito.py
max_size: 65536
varenvs:
CYCOG_HOST: "api.platform.cycognito.com"
CYCOG_TOKEN: "<api_token>"
CYCOG_REALM: "<realm>"
params:
CYCOG_FILTER:
mandatory: false
type: string
base: string
CYCOG_MIN_SEVERITY:
mandatory: false
type: string
base: string
CYCOG_PAGES:
mandatory: false
type: string
base: string
How It Works¶
- Sends the API token in the
Authorizationheader of every request - Reads assets with
POST {CYCOG_HOST}/v1/assetsand issues withPOST {CYCOG_HOST}/v1/issues, 100 per page, passing the realm and the filter - Creates one host per asset, using its first public IP and its hostnames
- Attaches each issue to its asset as an
[EASM]vulnerability, with CVEs and remediation when present - Maps severity and status from CyCognito and drops issues below
CYCOG_MIN_SEVERITY
Notes¶
- Assets without an IP (for example domains) use IP
0.0.0.0. Issues that do not match any returned asset are grouped on a host named(unattached). - Assets are imported as hosts even when they have no issues.
- The run stops if the host or the token is missing.
- The shared agent parameters (
AGENT_CONFIG_*tags and severity filters) are not applied by this executor. UseCYCOG_MIN_SEVERITYto filter by severity.