Skip to content

SecurityBridge (SAP Security) Executor

Category: Database and SAP Security Script: securitybridge_sap.py Integration: REST API Faraday Plugin: Raw JSON Website: https://securitybridge.com

Description

Imports the security findings of one SAP system monitored by SecurityBridge into Faraday. The SAP system becomes a Faraday host, and each finding becomes an [SAP-SECURITY] vulnerability with its SAP Notes and CVEs.

Prerequisites

  • A SecurityBridge tenant reachable from the agent
  • A SecurityBridge API key with read access to systems and findings, created under Administration > API Keys
  • The SAP system ID (SID) or SecurityBridge system ID of the system to import
  • requests available in the agent's Python environment (checked with python3 -c 'import requests')

Configuration

Environment Variables (Setup)

Variable Required Description
SB_HOST Yes Base URL of your SecurityBridge tenant in the form https://host[:port] (e.g., https://securitybridge.example.com). No path is allowed.
SB_API_KEY Yes SecurityBridge API key

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

Execution Arguments

Parameter Type Mandatory Description
SB_SYSTEM_ID string Yes SAP system to import, as SID (e.g., PRD) or SecurityBridge system ID. Letters, digits and ._- only, up to 64 characters.
SB_MIN_SEVERITY string No Minimum severity to import: info, low, medium, high or critical (default: info)

YAML Configuration Example

executors:
  securitybridge_sap:
    repo_executor: securitybridge_sap.py
    max_size: 65536
    varenvs:
      SB_HOST: "https://securitybridge.example.com"
      SB_API_KEY: "<sb_api_key>"
    params:
      SB_SYSTEM_ID:
        mandatory: true
        type: string
        base: string
      SB_MIN_SEVERITY:
        mandatory: false
        type: string
        base: string

How It Works

  1. Authenticates with Authorization: Bearer <SB_API_KEY>
  2. Reads the system record with GET /api/v1/systems/{system_id} (SID, client, product, release, host name, IP, risk score)
  3. Reads the system's findings with GET /api/v1/findings?systemId={system_id}, 100 per page
  4. Maps each finding to a Faraday vulnerability:
    • Name: [SAP-SECURITY] followed by the finding title
    • Severity: SecurityBridge's severity, or its numeric CVSS/risk score when the severity is missing
    • Status: open, resolved or fixed findings become closed, accepted or false-positive findings become risk-accepted
    • Details: category, SAP object, transport, evidence, CVEs, SAP Notes, and SecurityBridge's remediation text (or a generic remediation hint)
  5. Drops findings below SB_MIN_SEVERITY and creates one host for the SAP system

Notes

  • The host uses the system's host name (or the system ID) and IP. If SecurityBridge has no IP for the system, 0.0.0.0 is used. The operating system field shows the SAP product, release and risk score (e.g., SAP NetWeaver 7.50 SP12 (risk=72)).
  • If the system record cannot be read (for example, a 404), the run continues with a host built from the system ID.
  • Invalid values for SB_HOST or SB_SYSTEM_ID stop the run. An unrecognized SB_MIN_SEVERITY falls back to info.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor. Use SB_MIN_SEVERITY to filter by severity.