Skip to content

Vanta Executor

Category: Governance and Compliance Script: vanta.py Integration: REST API (OAuth2) Faraday Plugin: Raw JSON Website: https://www.vanta.com/

Description

Imports failing compliance tests from Vanta into Faraday as vulnerabilities, and optionally the resources and people that Vanta monitors as hosts. Use it to track compliance failures next to your technical findings.

Prerequisites

  • A Vanta account with an API application (client ID and secret) created in Vanta under Settings > API Access, with read access
  • Network access to api.vanta.com

Configuration

Environment Variables (Setup)

Variable Required Description
VANTA_CLIENT_ID Yes Vanta API client ID
VANTA_CLIENT_SECRET Yes Vanta API client secret

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

Execution Arguments

Parameter Type Mandatory Description
VANTA_API_URL string No Vanta API URL (default: https://api.vanta.com)
VANTA_MODE string No What to import, as a comma-separated list: tests (failing tests as vulnerabilities), resources (monitored assets as hosts) and people (workforce as hosts). Default: tests.
VANTA_FRAMEWORK string No Only import tests of this framework (e.g., soc2, iso27001, hipaa, gdpr). Default: all frameworks.
VANTA_PAGE_SIZE integer No Rows per API request (default: 100, the Vanta maximum)
VANTA_MAX_PAGES integer No Maximum pages to read per mode (default: 50, about 5,000 rows)
VANTA_MIN_SEVERITY string No Minimum severity of tests to import: info, low, medium, high or critical (default: medium). Unrecognized values fall back to medium.

YAML Configuration Example

executors:
  vanta:
    repo_executor: vanta.py
    max_size: 65536
    varenvs:
      VANTA_CLIENT_ID: "<vanta_client_id>"
      VANTA_CLIENT_SECRET: "<vanta_client_secret>"
    params:
      VANTA_API_URL:
        mandatory: false
        type: string
        base: string
      VANTA_MODE:
        mandatory: false
        type: string
        base: string
      VANTA_FRAMEWORK:
        mandatory: false
        type: string
        base: string
      VANTA_PAGE_SIZE:
        mandatory: false
        type: integer
        base: integer
      VANTA_MAX_PAGES:
        mandatory: false
        type: integer
        base: integer
      VANTA_MIN_SEVERITY:
        mandatory: false
        type: string
        base: string

How It Works

  1. Requests an access token from {VANTA_API_URL}/oauth/token using the OAuth2 client credentials flow (scope vanta-api.all:read)
  2. For each mode in VANTA_MODE, reads the matching endpoint with cursor pagination: /v1/tests (failing tests only), /v1/resources or /v1/people
  3. Maps failing tests to vulnerabilities named [GRC] <test name>, skipping those below VANTA_MIN_SEVERITY. Frameworks and control IDs become references.
  4. Maps resources and people to hosts, each with an info vulnerability ([GRC] Vanta-monitored asset or [GRC] Vanta workforce member) that holds their details
  5. Sends everything to Faraday with stable external IDs, so repeated runs update the same findings

Notes

  • Tests that Vanta links to a resource are added to a host for that resource. Tests without a resource are grouped under a host named grc-vanta with address grc:vanta:global.
  • Resource hosts use the resource's IP address when Vanta gives one, otherwise its external ID or 0.0.0.0. People hosts use vanta:person:<id> as address.
  • The severity filter only applies to tests. Resources and people are always info.
  • If Vanta answers with HTTP 429, the executor waits 30 seconds and retries up to 3 times.
  • The run fails if VANTA_MODE contains a value other than tests, resources or people.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor. Use VANTA_MIN_SEVERITY to filter by severity.