Skip to content

Strix.ai Executor

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

Description

Imports results from Strix Cloud, the managed AI penetration testing service, into Faraday. It can import the validated vulnerabilities of your scans, and the domains and code repositories that Strix monitors. The executor does not run the Strix agent. It only reads data from the Strix Cloud API.

Prerequisites

  • A Strix Cloud account
  • A Strix personal access token (starts with strix_pat_), created at https://app.strix.ai/settings under API keys
  • requests available in the agent's Python environment (checked with python3 -c 'import requests')

Configuration

Environment Variables (Setup)

Variable Required Description
STRIX_API_KEY Yes Strix personal access token (strix_pat_...), sent as a Bearer token. Normally you set it once on the agent and leave it blank in the run form.

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

Execution Arguments

Parameter Type Mandatory Description
STRIX_API_URL string No Strix Cloud API URL (default: https://app.strix.ai). Change it only for a dedicated or on-prem tenant.
STRIX_MODE string No Comma-separated list of what to import: scans (vulnerabilities of your scans), domains (monitored domains) and repositories (monitored repositories). Default: scans,domains,repositories.
STRIX_SCAN_ID string No ID of a single scan to import. If empty, the most recent scans are imported.
STRIX_MAX_SCANS integer No Maximum number of scans to import (default: 20)
STRIX_PAGE_SIZE integer No Number of records requested per page (default: 20)
STRIX_MAX_PAGES integer No Maximum number of pages read from each list (default: 20)
STRIX_MIN_SEVERITY string No Minimum severity of vulnerabilities to import: info, low, medium, high or critical (default: medium)
STRIX_STATUS string No Status of the vulnerabilities to import (default: open). Set it to all to also import closed, snoozed and triaged ones.

YAML Configuration Example

executors:
  strix:
    repo_executor: strix.py
    max_size: 65536
    varenvs:
      STRIX_API_KEY: "<strix_api_key>"
    params:
      STRIX_API_URL:
        mandatory: false
        type: string
        base: string
      STRIX_MODE:
        mandatory: false
        type: string
        base: string
      STRIX_SCAN_ID:
        mandatory: false
        type: string
        base: string
      STRIX_MAX_SCANS:
        mandatory: false
        type: integer
        base: integer
      STRIX_PAGE_SIZE:
        mandatory: false
        type: integer
        base: integer
      STRIX_MAX_PAGES:
        mandatory: false
        type: integer
        base: integer
      STRIX_MIN_SEVERITY:
        mandatory: false
        type: string
        base: string
      STRIX_STATUS:
        mandatory: false
        type: string
        base: string

How It Works

  1. Authenticates with Authorization: Bearer <STRIX_API_KEY>. If the API answers 429 (rate limit), it waits 30 seconds and retries up to 3 times.
  2. In scans mode, reads the scan list from GET /api/v1/scans (or the single scan STRIX_SCAN_ID) and loads each scan's details with GET /api/v1/scans/{id}
  3. Creates a Faraday vulnerability for each validated vulnerability of a scan that passes the severity and status filters:
    • Name: the vulnerability title followed by the affected endpoint or code file
    • Severity: Strix's severity
    • Details: endpoint, method, CVSS, impact, technical analysis, proof of concept and evidence. The PoC script and the code before and after the fix go in the vulnerability data.
    • Resolution: Strix's remediation steps and code diff
    • References: CVE, CWE and a link to the vulnerability in the Strix dashboard
  4. Adds an informational Strix.ai scan: <title> entry for each scan, with the executive summary and report link
  5. In domains and repositories modes, reads GET /api/v1/domains and GET /api/v1/repositories and creates an informational entry on a host for each one

Notes

  • Hosts use the affected target as their address and hostname: the host name of the vulnerable URL, or the owner/name of the repository. Findings with no target fall back to the scan's first URL or repository, and otherwise to a generic agent-strix host.
  • The default STRIX_STATUS of open also skips vulnerabilities that have no status. Use all if you don't see the ones you expect.
  • Scan summaries, domains and repositories are always created with info severity. STRIX_MIN_SEVERITY applies only to scan vulnerabilities.
  • An invalid STRIX_MODE value stops the run. An unrecognized STRIX_MIN_SEVERITY falls back to medium.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor. Use STRIX_MIN_SEVERITY to filter by severity.