Skip to content

Trend Micro Cloud One Conformity (CNAPP) Executor

Category: Cloud Security Script: trendmicro_conformity.py Integration: REST API Faraday Plugin: Raw JSON Website: https://www.trendmicro.com/en_us/business/products/hybrid-cloud/cloud-one-conformity.html

Description

Imports failing cloud configuration checks from Trend Micro Cloud One Conformity into Faraday. Each cloud account becomes a host and each failed check becomes a vulnerability prefixed with [CNAPP].

Prerequisites

  • A Conformity account with an API key that can read checks and accounts
  • Network access to the Conformity regional API (https://<region>-api.cloudconformity.com)

Configuration

Environment Variables (Setup)

Variable Required Description
CONFORMITY_API_KEY Yes Conformity API key

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

Execution Arguments

Parameter Type Mandatory Description
CONFORMITY_ACCOUNT_ID string No ID of one Conformity cloud account to import. Default: all accounts the API key can see.
CONFORMITY_REGION string No Conformity region (e.g., us-west-2, eu-west-1, ap-southeast-2, ap-southeast-1, ca-central-1), an alias (us, eu, apac) or a full https:// URL. Default: us-west-2.
CONFORMITY_MIN_RISK_LEVEL string No Minimum risk level to import: LOW, MEDIUM, HIGH, VERY_HIGH or EXTREME (default: LOW)

YAML Configuration Example

executors:
  trendmicro_conformity:
    repo_executor: trendmicro_conformity.py
    max_size: 65536
    varenvs:
      CONFORMITY_API_KEY: "<conformity_api_key>"
    params:
      CONFORMITY_ACCOUNT_ID:
        mandatory: false
        type: string
        base: string
      CONFORMITY_REGION:
        mandatory: false
        type: string
        base: string
      CONFORMITY_MIN_RISK_LEVEL:
        mandatory: false
        type: string
        base: string

How It Works

  1. Builds the API URL from CONFORMITY_REGION (us-west-2 by default) and authenticates with Authorization: ApiKey <CONFORMITY_API_KEY>
  2. Reads failing checks from /api/checks, filtered by region, account and risk level, 100 per page
  3. Groups the checks by cloud account and reads each account's details from /api/accounts/{id}
  4. Maps each check to a Faraday vulnerability:
    • Name: [CNAPP] <rule> on <resource>
    • Severity: Conformity risk level (LOW, MEDIUM, HIGH map to the same names; VERY_HIGH and EXTREME become critical)
    • Status: failed checks are open, suppressed checks are risk-accepted. Passed checks are dropped.

Notes

  • Each cloud account becomes one host with IP 0.0.0.0 and hostname <account name>@<account id>, because findings belong to cloud accounts rather than IP addresses. Accounts without matching checks are not imported.
  • Conformity has no info level, so the lowest severity imported is low.
  • CONFORMITY_REGION also accepts aliases (us, eu, apac, sydney, singapore) or a full URL starting with https:// for custom deployments.
  • An unrecognized CONFORMITY_MIN_RISK_LEVEL falls back to LOW. info is treated as LOW and critical as EXTREME.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor. Use CONFORMITY_MIN_RISK_LEVEL to filter by severity.