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¶
- Builds the API URL from
CONFORMITY_REGION(us-west-2by default) and authenticates withAuthorization: ApiKey <CONFORMITY_API_KEY> - Reads failing checks from
/api/checks, filtered by region, account and risk level, 100 per page - Groups the checks by cloud account and reads each account's details from
/api/accounts/{id} - Maps each check to a Faraday vulnerability:
- Name:
[CNAPP] <rule> on <resource> - Severity: Conformity risk level (
LOW,MEDIUM,HIGHmap to the same names;VERY_HIGHandEXTREMEbecome critical) - Status: failed checks are open, suppressed checks are risk-accepted. Passed checks are dropped.
- Name:
Notes¶
- Each cloud account becomes one host with IP
0.0.0.0and 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
infolevel, so the lowest severity imported islow. CONFORMITY_REGIONalso accepts aliases (us,eu,apac,sydney,singapore) or a full URL starting withhttps://for custom deployments.- An unrecognized
CONFORMITY_MIN_RISK_LEVELfalls back toLOW.infois treated asLOWandcriticalasEXTREME. - The shared agent parameters (
AGENT_CONFIG_*tags and severity filters) are not applied by this executor. UseCONFORMITY_MIN_RISK_LEVELto filter by severity.