Skip to content

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

  1. Authenticates every request with HTTP Basic using BESECURE_USER and BESECURE_PASSWORD
  2. Gets the scan IDs: the one in BESECURE_SCAN_ID, or all scans from GET /api/scan/list
  3. Downloads each scan's report from GET /api/scan/report/{id}
  4. 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 is critical)
    • Status: closed, fixed, resolved, patched and mitigated findings become closed, everything else is open
    • Details: description, solution, evidence, CVEs, references and CVSS score

Notes

  • Targets with no vulnerabilities are not imported.
  • Targets without an IP address use 0.0.0.0.
  • BESECURE_HOST can be given with or without https://. 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.