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
requestsavailable in the agent's Python environment (checked withpython3 -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¶
- Authenticates with
Authorization: Bearer <SB_API_KEY> - Reads the system record with
GET /api/v1/systems/{system_id}(SID, client, product, release, host name, IP, risk score) - Reads the system's findings with
GET /api/v1/findings?systemId={system_id}, 100 per page - 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)
- Name:
- Drops findings below
SB_MIN_SEVERITYand 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.0is 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_HOSTorSB_SYSTEM_IDstop the run. An unrecognizedSB_MIN_SEVERITYfalls back toinfo. - The shared agent parameters (
AGENT_CONFIG_*tags and severity filters) are not applied by this executor. UseSB_MIN_SEVERITYto filter by severity.