Cobalt.io Executor¶
Category: Pentesting and Bug Bounty
Script: cobalt.py
Integration: REST API
Faraday Plugin: Raw JSON
Website: https://www.cobalt.io
Description¶
Imports findings from Cobalt.io pentests into Faraday. Each finding becomes a host keyed on the affected URL with one vulnerability describing the finding, its proof and the suggested fix.
Prerequisites¶
- A Cobalt.io account with API access
- An API token and an organization token (both created in the Cobalt API settings)
- Python
requestsmodule available to the agent
Configuration¶
Environment Variables (Setup)¶
| Variable | Required | Description |
|---|---|---|
COBALT_TOKEN |
Yes | Cobalt API token, sent as a Bearer token |
COBALT_ORG_TOKEN |
Yes | Cobalt organization token, sent in the X-Org-Token header. It limits which pentests the run can read. |
COBALT_HOST |
No | Cobalt API base URL (default: https://api.cobalt.io). Change it only for an enterprise mirror or sandbox. |
COBALT_PAGES |
No | Maximum number of pages (100 findings each) to read (default: 10, maximum: 100) |
These variables are also accepted as execution arguments, so a single run can override them.
Execution Arguments¶
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
COBALT_PENTEST_ID |
string | No | Pentest ID or handle to import. Use a comma-separated list for several pentests. Leave blank to import findings from all pentests the organization token can access. |
COBALT_MIN_SEVERITY |
string | No | Minimum severity to import: info, low, medium, high or critical. Leave blank to import everything. |
YAML Configuration Example¶
executors:
cobalt:
repo_executor: cobalt.py
max_size: 65536
varenvs:
COBALT_TOKEN: "<api_token>"
COBALT_ORG_TOKEN: "<org_token>"
params:
COBALT_PENTEST_ID:
mandatory: false
type: string
base: string
COBALT_MIN_SEVERITY:
mandatory: false
type: string
base: string
How It Works¶
- Sends the API token and organization token with every request to
GET {COBALT_HOST}/v2/findings, filtered by pentest whenCOBALT_PENTEST_IDis set - Reads the findings page by page, 100 per page
- Creates one host and one
[PENTEST]vulnerability for each finding. The description includes the affected targets and URL, the pentester's notes and proof of concept; the suggested fix becomes the resolution. - Uses the Cobalt severity (
informationalbecomesinfo). Findings in a closed state (invalid,out_of_scope,not_applicable,duplicate,accepted_risk,wont_fix,resolved) are lowered toinfo. - Drops findings below
COBALT_MIN_SEVERITY
Notes¶
- Each host has IP
0.0.0.0because pentest findings are tied to URLs and not to IP addresses. The URL is used as the hostname. - All vulnerabilities are open. The original Cobalt state is kept as a reference.
- The shared agent parameters (
AGENT_CONFIG_*tags and severity filters) are not applied by this executor.