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 athttps://app.strix.ai/settingsunder API keys requestsavailable in the agent's Python environment (checked withpython3 -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¶
- Authenticates with
Authorization: Bearer <STRIX_API_KEY>. If the API answers 429 (rate limit), it waits 30 seconds and retries up to 3 times. - In
scansmode, reads the scan list fromGET /api/v1/scans(or the single scanSTRIX_SCAN_ID) and loads each scan's details withGET /api/v1/scans/{id} - 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
- Adds an informational
Strix.ai scan: <title>entry for each scan, with the executive summary and report link - In
domainsandrepositoriesmodes, readsGET /api/v1/domainsandGET /api/v1/repositoriesand 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/nameof the repository. Findings with no target fall back to the scan's first URL or repository, and otherwise to a genericagent-strixhost. - The default
STRIX_STATUSofopenalso skips vulnerabilities that have no status. Useallif you don't see the ones you expect. - Scan summaries, domains and repositories are always created with
infoseverity.STRIX_MIN_SEVERITYapplies only to scan vulnerabilities. - An invalid
STRIX_MODEvalue stops the run. An unrecognizedSTRIX_MIN_SEVERITYfalls back tomedium. - The shared agent parameters (
AGENT_CONFIG_*tags and severity filters) are not applied by this executor. UseSTRIX_MIN_SEVERITYto filter by severity.