Tripwire Enterprise (Compliance / FIM) Executor¶
Category: Governance and Compliance
Script: tripwire_enterprise.py
Integration: REST API
Faraday Plugin: Raw JSON
Website: https://www.tripwire.com
Description¶
Imports managed nodes and their file integrity and compliance findings from a Tripwire Enterprise console into Faraday. Each managed node becomes a host and each finding becomes a vulnerability prefixed with [CONFIG-MGMT].
Prerequisites¶
- A Tripwire Enterprise console with the REST API enabled
- A console user that can read nodes and element version findings
- Network access from the agent to
TRIPWIRE_HOST
Configuration¶
Environment Variables (Setup)¶
| Variable | Required | Description |
|---|---|---|
TRIPWIRE_HOST |
Yes | Tripwire Enterprise console URL including scheme (e.g., https://tripwire.example.com) |
TRIPWIRE_USER |
Yes | Console user name |
TRIPWIRE_PASSWORD |
Yes | Console user password |
These variables are also accepted as execution arguments, so a single run can override them.
Execution Arguments¶
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
TRIPWIRE_NODE_GROUP |
string | No | Name of a node group to import (e.g., DC Tier-1 Windows Servers). Default: all nodes. |
TRIPWIRE_RULE_TYPE |
string | No | Only import findings of this rule type: compliance, configuration, policy, file_integrity or change (synonyms such as config or fim are accepted). Default: all. |
TRIPWIRE_MIN_SEVERITY |
string | No | Minimum severity of findings to import: info, low, medium, high or critical (default: info) |
YAML Configuration Example¶
executors:
tripwire_enterprise:
repo_executor: tripwire_enterprise.py
max_size: 65536
varenvs:
TRIPWIRE_HOST: "https://tripwire.example.com"
TRIPWIRE_USER: "<tripwire_user>"
TRIPWIRE_PASSWORD: "<tripwire_password>"
params:
TRIPWIRE_NODE_GROUP:
mandatory: false
type: string
base: string
TRIPWIRE_RULE_TYPE:
mandatory: false
type: string
base: string
TRIPWIRE_MIN_SEVERITY:
mandatory: false
type: string
base: string
How It Works¶
- Authenticates with HTTP Basic using
TRIPWIRE_USERandTRIPWIRE_PASSWORD - Reads managed nodes from
/api/v1/computers, optionally limited toTRIPWIRE_NODE_GROUP - Reads findings from
/api/v1/elementVersions/findings, optionally limited toTRIPWIRE_RULE_TYPE - Attaches each finding to its node as a vulnerability named
[CONFIG-MGMT] <finding>, dropping findings belowTRIPWIRE_MIN_SEVERITY - Uses the node's name, IP address and operating system for the host
Notes¶
- Findings whose node is not in the imported node list are grouped under a host named
tripwire-orphan-findings. If the console returns no nodes at all, a placeholder host namedtripwire-no-resultsis created. - Nodes without findings are still imported as hosts.
- Both requests read up to 20,000 rows.
TRIPWIRE_HOSTmust start withhttp://orhttps://(e.g.,https://tripwire.example.com).- Invalid
TRIPWIRE_NODE_GROUPorTRIPWIRE_RULE_TYPEvalues are logged and ignored. An unrecognizedTRIPWIRE_MIN_SEVERITYfalls back toinfo. - The shared agent parameters (
AGENT_CONFIG_*tags and severity filters) are not applied by this executor. UseTRIPWIRE_MIN_SEVERITYto filter by severity.