Skip to content

Sprinto Executor

Category: Governance and Compliance Script: sprinto.py Integration: REST API Faraday Plugin: Raw JSON Website: https://sprinto.com/

Description

Imports failing compliance checks from Sprinto into Faraday as vulnerabilities, and optionally the monitored assets and personnel as hosts. Use it to track compliance failures next to your technical findings.

Prerequisites

  • A Sprinto account with an API key (created in Sprinto admin under API Access)
  • Network access to api.sprinto.com

Configuration

Environment Variables (Setup)

Variable Required Description
SPRINTO_API_KEY Yes Sprinto API key

These variables are also accepted as execution arguments, so a single run can override them.

Execution Arguments

Parameter Type Mandatory Description
SPRINTO_API_URL string No Sprinto API URL (default: https://api.sprinto.com)
SPRINTO_MODE string No What to import, as a comma-separated list: checks (failing checks as vulnerabilities), assets (monitored assets as hosts) and personnel (workforce as hosts). Default: checks.
SPRINTO_FRAMEWORK string No Only import checks of this framework (e.g., soc2, iso27001, hipaa, gdpr). Default: all frameworks.
SPRINTO_PAGE_SIZE integer No Rows per API request (default: 100)
SPRINTO_MAX_PAGES integer No Maximum pages to read per mode (default: 50, about 5,000 rows)
SPRINTO_MIN_SEVERITY string No Minimum severity of checks to import: info, low, medium, high or critical (default: medium). Unrecognized values fall back to medium.

YAML Configuration Example

executors:
  sprinto:
    repo_executor: sprinto.py
    max_size: 65536
    varenvs:
      SPRINTO_API_KEY: "<sprinto_api_key>"
    params:
      SPRINTO_API_URL:
        mandatory: false
        type: string
        base: string
      SPRINTO_MODE:
        mandatory: false
        type: string
        base: string
      SPRINTO_FRAMEWORK:
        mandatory: false
        type: string
        base: string
      SPRINTO_PAGE_SIZE:
        mandatory: false
        type: integer
        base: integer
      SPRINTO_MAX_PAGES:
        mandatory: false
        type: integer
        base: integer
      SPRINTO_MIN_SEVERITY:
        mandatory: false
        type: string
        base: string

How It Works

  1. Authenticates with Authorization: Bearer <SPRINTO_API_KEY>
  2. For each mode in SPRINTO_MODE, reads the matching endpoint with limit/offset pagination: /v1/checks (failing checks only), /v1/assets or /v1/personnel
  3. Maps failing checks to vulnerabilities named [GRC] <check name>, skipping those below SPRINTO_MIN_SEVERITY. Frameworks and controls become references.
  4. Maps assets and personnel to hosts, each with an info vulnerability ([GRC] Sprinto-monitored asset or [GRC] Sprinto workforce member) that holds their details
  5. Sends everything to Faraday with stable external IDs, so repeated runs update the same findings

Notes

  • Checks that Sprinto links to assets are added to a host for each asset. Checks without assets are grouped under a host named grc-sprinto with address grc:sprinto:global.
  • Asset hosts use the asset's IP address when Sprinto gives one, otherwise its external ID or 0.0.0.0. Personnel hosts use sprinto:person:<id> as address.
  • The severity filter only applies to checks. Assets and personnel are always info. A check without a severity is treated as high.
  • If Sprinto answers with HTTP 429, the executor waits 30 seconds and retries up to 3 times.
  • The run fails if SPRINTO_MODE contains a value other than checks, assets or personnel.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor. Use SPRINTO_MIN_SEVERITY to filter by severity.