Skip to content

Check Point CloudGuard (CNAPP) Executor

Category: Cloud Security Script: checkpoint_cloudguard.py Integration: REST API Faraday Plugin: Raw JSON Website: https://www.checkpoint.com/cloudguard/

Description

Imports cloud security findings from Check Point CloudGuard (CNAPP/CSPM) into Faraday. Findings are grouped by cloud account, with one vulnerability per finding.

Prerequisites

  • A Check Point CloudGuard tenant with API access
  • An API key and secret of a service account that can read findings and cloud accounts
  • Network access to the CloudGuard API

Configuration

Environment Variables (Setup)

Variable Required Description
CG_HOST Yes Base URL of the CloudGuard API for your tenant
CG_API_KEY Yes API key of the service account. If you enter a value that starts with Bearer, it is sent as is and CG_API_SECRET is not used to build the header.
CG_API_SECRET Yes API secret of the service account

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

Execution Arguments

Parameter Type Mandatory Description
CG_CLOUD_ACCOUNT_ID string No ID of a single cloud account to import. Leave blank to import all accounts.
CG_MIN_SEVERITY string No Minimum severity to import: info, low, medium, high or critical (default: info). Unrecognized values fall back to info.

YAML Configuration Example

executors:
  checkpoint_cloudguard:
    repo_executor: checkpoint_cloudguard.py
    max_size: 65536
    varenvs:
      CG_HOST: "<cloudguard_api_url>"
      CG_API_KEY: "<api_key>"
      CG_API_SECRET: "<api_secret>"
    params:
      CG_CLOUD_ACCOUNT_ID:
        mandatory: false
        type: string
        base: string
      CG_MIN_SEVERITY:
        mandatory: false
        type: string
        base: string

How It Works

  1. Authenticates every request with HTTP Basic using CG_API_KEY and CG_API_SECRET
  2. Reads findings from GET {CG_HOST}/v1/findings, 100 per page, filtered by cloud account and severity when configured
  3. Looks up each cloud account with GET {CG_HOST}/v1/cloud-accounts to get its name, vendor and region (skipped if unavailable)
  4. Creates one vulnerability per finding, named [CNAPP] <rule> on <resource>, with the rule details, CVEs and CVSS score when present
  5. Maps severity and status from the finding. Open, new and active findings are open, fixed/resolved/mitigated are closed, and ignored, suppressed or false-positive findings are risk-accepted.

Notes

  • Each cloud account becomes a host with IP 0.0.0.0, named after the account. Findings without an account are grouped under a single unnamed host.
  • TLS certificate verification is disabled for the API calls.
  • A 401 response stops the run. Other request errors are written to the agent log and the findings collected so far are still imported.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor. Use CG_MIN_SEVERITY to filter by severity.