Fortify on Demand Executor¶
Category: Source Code Analysis
Script: fortify_fod.py
Integration: REST API (OAuth2)
Faraday Plugin: Raw JSON
Website: https://www.opentext.com/products/fortify-on-demand
Description¶
Imports the vulnerabilities (SAST, SCA and DAST) of Fortify on Demand application releases into Faraday. Each release becomes a host and its vulnerabilities are attached to it.
Prerequisites¶
- A Fortify on Demand tenant
- An API key (client ID and secret) with permission to read applications, releases and vulnerabilities
- The regional API URL of your tenant (for example
https://api.ams.fortify.com)
Configuration¶
Environment Variables (Setup)¶
| Variable | Required | Description |
|---|---|---|
FOD_HOST |
Yes | Regional FoD API URL (e.g., https://api.ams.fortify.com, https://api.emea.fortify.com) |
FOD_TENANT |
Yes | Fortify on Demand tenant name |
FOD_CLIENT_ID |
Yes | API key (client ID) |
FOD_CLIENT_SECRET |
Yes | API secret (client secret) |
These variables are also accepted as execution arguments, so a single run can override them.
Execution Arguments¶
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
FOD_RELEASE_ID |
string | No | ID of a single release to import (default: all releases of all applications) |
FOD_MIN_SEVERITY |
string | No | Minimum severity to import: info, low, medium, high or critical (default: info) |
YAML Configuration Example¶
executors:
fortify_fod:
repo_executor: fortify_fod.py
max_size: 65536
varenvs:
FOD_HOST: "https://api.ams.fortify.com"
FOD_TENANT: "<fod_tenant>"
FOD_CLIENT_ID: "<fod_client_id>"
FOD_CLIENT_SECRET: "<fod_client_secret>"
params:
FOD_RELEASE_ID:
mandatory: false
type: string
base: string
FOD_MIN_SEVERITY:
mandatory: false
type: string
base: string
How It Works¶
- Requests an access token from
/oauth/tokenwith the OAuth2 client credentials flow (scopeapi-tenant). IfFOD_CLIENT_IDhas no tenant prefix,<FOD_TENANT>\is added to it. - Reads the release
FOD_RELEASE_ID, or lists all applications (/api/v3/applications) and their releases - Reads each release's vulnerabilities from
/api/v3/releases/{id}/vulnerabilities, and enriches each one with its details and recommendation - Maps each vulnerability to a Faraday vulnerability:
- Severity: FoD's severity level
- Status: suppressed findings and those audited as "Not an Issue", "Not Exploitable" or "False Positive" become risk-accepted; closed or remediated findings become closed; the rest are open
- Resolution: FoD's recommendation for the finding
- Drops vulnerabilities below
FOD_MIN_SEVERITYand skips releases left without vulnerabilities
Notes¶
- Each release is a host with IP
0.0.0.0and hostname<application>/<release>, because FoD findings belong to applications rather than IP addresses. - Two extra requests per vulnerability are made (details and recommendation), so large tenants take longer.
- TLS certificates are not verified.
- The shared agent parameters (
AGENT_CONFIG_*tags and severity filters) are not applied by this executor. UseFOD_MIN_SEVERITYto filter by severity.