PlexTrac Executor¶
Category: Pentesting and Bug Bounty
Script: plextrac.py
Integration: REST API (JWT)
Faraday Plugin: Raw JSON
Website: https://plextrac.com
Description¶
Imports pentest findings from PlexTrac into Faraday, so the results of external or internal engagements sit next to your scanner output. The executor reads findings through the REST API and creates one Faraday host and one vulnerability per finding.
Prerequisites¶
- A PlexTrac account with permission to read the clients and reports you want to import
- The PlexTrac API URL, if you are not using
https://api.plextrac.com - Network access from the agent to PlexTrac
Configuration¶
Environment Variables (Setup)¶
| Variable | Required | Description |
|---|---|---|
PLEXTRAC_HOST |
No | PlexTrac API URL (default: https://api.plextrac.com). Set it for your own PlexTrac instance. |
PLEXTRAC_USER |
Yes | PlexTrac username |
PLEXTRAC_PASSWORD |
Yes | PlexTrac password |
PLEXTRAC_PAGES |
No | Maximum number of pages of 100 findings to import, from 1 to 100 (default: 10) |
These variables are also accepted as execution arguments, so a single run can override them.
Execution Arguments¶
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
PLEXTRAC_CLIENT_ID |
string | No | Only import findings of these clients. Accepts one ID or a comma-separated list (e.g., acme-prod,acme-staging). Default: all clients your account can see. |
PLEXTRAC_REPORT_ID |
string | No | Only import findings of these reports. Accepts one ID or a comma-separated list (e.g., acme-q1-pentest,acme-mobile-q1). Default: all reports. |
YAML Configuration Example¶
executors:
plextrac:
repo_executor: plextrac.py
max_size: 65536
varenvs:
PLEXTRAC_HOST: "https://api.plextrac.com"
PLEXTRAC_USER: "<plextrac_user>"
PLEXTRAC_PASSWORD: "<plextrac_password>"
params:
PLEXTRAC_CLIENT_ID:
mandatory: false
type: string
base: string
PLEXTRAC_REPORT_ID:
mandatory: false
type: string
base: string
How It Works¶
- Logs in with
POST {PLEXTRAC_HOST}/api/v1/authenticateusingPLEXTRAC_USERandPLEXTRAC_PASSWORD, and uses the returned token as a Bearer credential - Reads
{PLEXTRAC_HOST}/api/v1/findings, filtered by client and report IDs if set, 100 findings per page, up toPLEXTRAC_PAGESpages - Maps each finding to a vulnerability named
[PENTEST] PlexTrac finding: <title>:- Severity: PlexTrac's rating (
Critical,High,Medium,Low,Informational), or the score when only a score is given - References: CVEs, CWEs and the references listed in the finding
- Severity: PlexTrac's rating (
- Creates one host per finding, using the finding's title and affected asset URL as hostnames
Notes¶
- Each finding gets its own host with IP
0.0.0.0, because PlexTrac findings describe engagement results rather than IP addresses. The description shows the client, report and status. - Findings that PlexTrac marks as closed, resolved, mitigated or accepted risk are still imported, but with severity
info. - A 401 response stops the run. Rate limits (429), 403 and other errors stop pagination and keep what was already read.
- The shared agent parameters (
AGENT_CONFIG_*tags and severity filters) are not applied by this executor.