Skip to content

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

  1. Authenticates with HTTP Basic using TRIPWIRE_USER and TRIPWIRE_PASSWORD
  2. Reads managed nodes from /api/v1/computers, optionally limited to TRIPWIRE_NODE_GROUP
  3. Reads findings from /api/v1/elementVersions/findings, optionally limited to TRIPWIRE_RULE_TYPE
  4. Attaches each finding to its node as a vulnerability named [CONFIG-MGMT] <finding>, dropping findings below TRIPWIRE_MIN_SEVERITY
  5. 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 named tripwire-no-results is created.
  • Nodes without findings are still imported as hosts.
  • Both requests read up to 20,000 rows.
  • TRIPWIRE_HOST must start with http:// or https:// (e.g., https://tripwire.example.com).
  • Invalid TRIPWIRE_NODE_GROUP or TRIPWIRE_RULE_TYPE values are logged and ignored. An unrecognized TRIPWIRE_MIN_SEVERITY falls back to info.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor. Use TRIPWIRE_MIN_SEVERITY to filter by severity.