Skip to content

XBOW Executor

Category: AI-Driven Security Testing Script: xbow.py Integration: REST API Faraday Plugin: Raw JSON Website: https://xbow.com/

Description

Imports results from XBOW, the autonomous AI pentester, into Faraday. By default it imports the vulnerabilities XBOW found. It can also import engagements (assessment runs) and registered assets as informational records.

Prerequisites

  • An XBOW account with API access
  • An XBOW API key, created in the XBOW partner console
  • Network access from the agent to the XBOW API (https://api.xbow.com by default)

Configuration

Environment Variables (Setup)

Variable Required Description
XBOW_API_KEY Yes XBOW API key

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

Execution Arguments

Parameter Type Mandatory Description
XBOW_API_URL string No XBOW API base URL (default: https://api.xbow.com). Change it for private-cloud deployments.
XBOW_MODE string No Comma-separated data to import: findings, engagements, assets (default: findings)
XBOW_FINDINGS_PATH string No Path of the findings endpoint (default: /v1/findings)
XBOW_ENGAGEMENTS_PATH string No Path of the engagements endpoint (default: /v1/engagements)
XBOW_ASSETS_PATH string No Path of the assets endpoint (default: /v1/assets)
XBOW_PAGE_SIZE integer No Items per API page (default: 100)
XBOW_MAX_PAGES integer No Maximum pages read per mode (default: 50)
XBOW_MIN_SEVERITY string No Minimum finding severity to import: info, low, medium, high or critical (default: medium)

YAML Configuration Example

executors:
  xbow:
    repo_executor: xbow.py
    max_size: 65536
    varenvs:
      XBOW_API_KEY: "<api_key>"
    params:
      XBOW_API_URL:
        mandatory: false
        type: string
        base: string
      XBOW_MODE:
        mandatory: false
        type: string
        base: string
      XBOW_FINDINGS_PATH:
        mandatory: false
        type: string
        base: string
      XBOW_ENGAGEMENTS_PATH:
        mandatory: false
        type: string
        base: string
      XBOW_ASSETS_PATH:
        mandatory: false
        type: string
        base: string
      XBOW_PAGE_SIZE:
        mandatory: false
        type: integer
        base: integer
      XBOW_MAX_PAGES:
        mandatory: false
        type: integer
        base: integer
      XBOW_MIN_SEVERITY:
        mandatory: false
        type: string
        base: string

How It Works

  1. Authenticates to the XBOW API with the header Authorization: Bearer <XBOW_API_KEY>
  2. For each mode in XBOW_MODE, reads the matching endpoint page by page (cursor or page number). On HTTP 429 it waits 30 seconds and retries, up to 3 times.
  3. findings: creates one vulnerability per finding, named [AGENT] <title>, on the host of the tested asset. The description includes the proof of concept, remediation and XBOW agent. CVEs, CWEs and references become references. Findings below XBOW_MIN_SEVERITY are skipped.
  4. engagements: creates one info-level record per engagement with its status, start and end dates and finding count
  5. assets: creates one host per asset with an info-level [AGENT] XBOW-monitored asset record (type, URL and owner)
  6. Removes duplicates by external ID (xbow:finding:<id>, xbow:engagement:<id>, xbow:asset:<id>), so re-runs update the same records

Notes

  • Hosts are identified by the asset's IP. Assets without an IP use 0.0.0.0, with the asset's hostname, name, URL or ID as hostname.
  • Findings and engagements without a target asset are grouped under the synthetic hosts agent-xbow and xbow-engagements.
  • Findings with an unknown severity are imported as medium. An unrecognized XBOW_MIN_SEVERITY falls back to medium, and an invalid XBOW_MODE value stops the run.
  • Records are tagged agent:xbow, agent:xbow:engagement or agent:xbow:asset-inventory.
  • If an endpoint returns an error, that mode stops and the run continues with the next one.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor. Use XBOW_MIN_SEVERITY to filter by severity.