Beyond Security beSecure Executor¶
Category: Vulnerability Scanners
Script: besecure.py
Integration: REST API
Faraday Plugin: Raw JSON
Website: https://www.beyondsecurity.com/solutions/besecure
Description¶
Imports vulnerability scan results from a Beyond Security beSecure appliance into Faraday. The executor reads one scan, or all scans, and creates a host for every scanned target with its vulnerabilities.
Prerequisites¶
- A Beyond Security beSecure appliance reachable from the agent
- A beSecure user with permission to list scans and read their reports
Configuration¶
Environment Variables (Setup)¶
| Variable | Required | Description |
|---|---|---|
BESECURE_HOST |
Yes | Base URL of your beSecure appliance (e.g., https://besecure.example.com). https:// is added if missing. |
BESECURE_USER |
Yes | beSecure username |
BESECURE_PASSWORD |
Yes | beSecure password |
These variables are also accepted as execution arguments, so a single run can override them.
Execution Arguments¶
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
BESECURE_SCAN_ID |
string | No | ID of a single scan to import. If empty, all scans visible to the user are imported. |
YAML Configuration Example¶
executors:
besecure:
repo_executor: besecure.py
max_size: 65536
varenvs:
BESECURE_HOST: "https://besecure.example.com"
BESECURE_USER: "<besecure_user>"
BESECURE_PASSWORD: "<besecure_password>"
params:
BESECURE_SCAN_ID:
mandatory: false
type: string
base: string
How It Works¶
- Authenticates every request with HTTP Basic using
BESECURE_USERandBESECURE_PASSWORD - Gets the scan IDs: the one in
BESECURE_SCAN_ID, or all scans fromGET /api/scan/list - Downloads each scan's report from
GET /api/scan/report/{id} - Creates one host per scanned target (IP, hostname, OS and MAC address from the report) and maps each finding to a Faraday vulnerability:
- Severity: beSecure's severity name or its 1 to 5 risk level (1 is
info, 5 iscritical) - Status: closed, fixed, resolved, patched and mitigated findings become closed, everything else is open
- Details: description, solution, evidence, CVEs, references and CVSS score
- Severity: beSecure's severity name or its 1 to 5 risk level (1 is
Notes¶
- Targets with no vulnerabilities are not imported.
- Targets without an IP address use
0.0.0.0. BESECURE_HOSTcan be given with or withouthttps://. Without it,https://is assumed.- TLS certificates are not verified, so appliances with self-signed certificates work.
- The run stops if the login is rejected (HTTP 401). If a scan report cannot be read, that scan is skipped.
- The shared agent parameters (
AGENT_CONFIG_*tags and severity filters) are not applied by this executor.