Skip to content

Orca Security (CNAPP) Executor

Category: Cloud Security Script: orca.py Integration: REST API Faraday Plugin: Raw JSON Website: https://orca.security/

Description

Imports cloud security alerts from an Orca Security tenant into Faraday. Each alert becomes a [CNAPP] vulnerability, grouped under a host that represents the affected cloud asset.

Prerequisites

  • An Orca Security tenant with API access
  • An Orca API token with permission to read alerts and assets
  • Network access from the agent to your Orca API URL

Configuration

Environment Variables (Setup)

Variable Required Description
ORCA_HOST Yes Base URL of your Orca tenant, without the /api path (e.g., https://app.eu.orcasecurity.io). If you omit the scheme, https:// is used.
ORCA_API_TOKEN Yes Orca API token. It is sent as Token <value>. If the value already starts with Bearer or Token, it is sent as is.

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

Execution Arguments

Parameter Type Mandatory Description
ORCA_GROUP_BY_TYPE string No Set to true to let Orca merge duplicate alerts of the same type into one record with a count. Default: false (one record per alert).
ORCA_MIN_SEVERITY string No Minimum severity to import: info, low, medium, high or critical (default: info)
ORCA_STATUS string No Comma-separated alert states to import: OPEN, IN_PROGRESS, CLOSED, SNOOZED or DISMISSED (default: all). Common synonyms such as RESOLVED or IGNORED are mapped to these states.

YAML Configuration Example

executors:
  orca:
    repo_executor: orca.py
    max_size: 65536
    varenvs:
      ORCA_HOST: "https://app.eu.orcasecurity.io"
      ORCA_API_TOKEN: "<orca_api_token>"
    params:
      ORCA_GROUP_BY_TYPE:
        mandatory: false
        type: string
        base: string
      ORCA_MIN_SEVERITY:
        mandatory: false
        type: string
        base: string
      ORCA_STATUS:
        mandatory: false
        type: string
        base: string

How It Works

  1. Authenticates with the API token in the Authorization header
  2. Lists alerts with GET /api/alerts, 100 per page, filtered by state and severity and optionally grouped by type
  3. Looks up each alert's cloud asset with GET /api/assets to add its account, region and provider. If the lookup fails, the alert data is used.
  4. Maps each alert to a Faraday vulnerability:
    • Name: [CNAPP] followed by the alert type and the affected resource
    • Severity: Orca's severity, or the CVSS score when the severity is missing
    • Status: OPEN and IN_PROGRESS become open, CLOSED becomes closed, SNOOZED and DISMISSED become risk-accepted
    • Details: cloud account, region, tags, CVEs, CWEs, reference links and Orca's remediation text
  5. Groups the vulnerabilities under one host per cloud asset

Notes

  • Hosts use IP 0.0.0.0, because Orca findings belong to cloud resources and not to IP addresses. The hostname is <asset name>@<asset id>.
  • Alerts without an asset ID are grouped under one host without a name.
  • An unrecognized ORCA_MIN_SEVERITY falls back to info, and unrecognized ORCA_STATUS values are ignored. Both cases are written to the agent log.
  • TLS certificate verification is disabled for requests to the API.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor. Use ORCA_MIN_SEVERITY to filter by severity.