IBM Guardium (Database Security) Executor¶
Category: Database and SAP Security
Script: ibm_guardium.py
Integration: REST API (OAuth2)
Faraday Plugin: Raw JSON
Website: https://www.ibm.com/products/ibm-guardium-data-protection
Description¶
Imports Database Activity Monitoring (DAM) policy violations and sensitive-data classification findings from an IBM Guardium collector into Faraday. Each monitored database server becomes a Faraday host, and each report row becomes a vulnerability prefixed with [DATABASE-SECURITY].
Prerequisites¶
- Network access to the Guardium REST API
- A Guardium user allowed to use the REST API and run the chosen report
- An OAuth2 client registered in Guardium (the default client ID is
guardium) - The name of the Guardium report to pull
- The Python
requestspackage in the agent environment
Configuration¶
Environment Variables (Setup)¶
| Variable | Required | Description |
|---|---|---|
GUARDIUM_HOST |
Yes | Guardium base URL, without a path (e.g., https://guardium.example.com:8443) |
GUARDIUM_USER |
Yes | Guardium username |
GUARDIUM_PASSWORD |
Yes | Password of GUARDIUM_USER |
GUARDIUM_CLIENT_ID |
No | OAuth2 client ID (default: guardium) |
GUARDIUM_CLIENT_SECRET |
No | OAuth2 client secret, if your client has one |
These variables are also accepted as execution arguments, so a single run can override them.
Execution Arguments¶
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
GUARDIUM_REPORT_NAME |
string | Yes | Name of the Guardium report to pull (e.g., Policy Violations). Letters, digits, spaces and ._-, up to 128 characters. |
GUARDIUM_MIN_SEVERITY |
string | No | Minimum severity to import: info, low, medium, high or critical (default: info). Guardium values such as MED are also accepted. |
YAML Configuration Example¶
executors:
ibm_guardium:
repo_executor: ibm_guardium.py
max_size: 65536
varenvs:
GUARDIUM_HOST: "https://guardium.example.com:8443"
GUARDIUM_USER: "<guardium_user>"
GUARDIUM_PASSWORD: "<guardium_password>"
GUARDIUM_CLIENT_ID: "guardium"
GUARDIUM_CLIENT_SECRET: "<guardium_client_secret>"
params:
GUARDIUM_REPORT_NAME:
mandatory: true
type: string
base: string
GUARDIUM_MIN_SEVERITY:
mandatory: false
type: string
base: string
How It Works¶
- Requests an access token from
{GUARDIUM_HOST}/oauth/tokenwith the OAuth2 password grant - Reads the report rows from
/restAPI/online_dam_violationsand/restAPI/online_classification, 100 rows per page, usingGUARDIUM_REPORT_NAMEfor both - Maps each row to a Faraday vulnerability:
- Name:
[DATABASE-SECURITY]plus the policy, rule or classification name - Severity: Guardium's severity (
HIGH,MED,LOW,INFO), or a 0–10 risk score when there is no severity - Status: acknowledged violations become risk-accepted. Otherwise the row's status is mapped (e.g.,
resolvedbecomes closed); rows without status are open. - Description and references: policy, rule, database, schema, table, column, database user, client IP, SQL verb and timestamp
- Name:
- Groups the vulnerabilities by database server hostname (or IP) and creates one host per server, with the database type and version as its OS
Notes¶
- Hosts use the server IP reported by Guardium, or
0.0.0.0when the row has no IP. Rows without server information are grouped under a host namedunknown. - Imports at most 200 pages of 100 rows from each endpoint.
- When both reports return nothing, the run creates one empty placeholder host.
- A failed token request or a
401response stops the run. A403or404on a report endpoint is logged and that endpoint is skipped. - The shared agent parameters (
AGENT_CONFIG_*tags and severity filters) are not applied by this executor. UseGUARDIUM_MIN_SEVERITYto filter by severity.