Introducing a new way to review your PRs.

Read the announcement

prowler-cloud / prowler

This repo hosts Prowler OSS (CLI and Local Server). Prowler is the world’s most widely used open-source cloud security platform that automates security and compliance across any cloud environment for Humans and AI Agents.

View on GitHub

13 documents · Updated Nov 16, 2026

docs / compliance-framework

Compliance Framework

Overview

prowler/compliance/ is the data layer that maps Prowler check identifiers to compliance and reporting semantics. The files are JSON catalogs, not executable scan code: each framework names a standard, lists requirements or controls, and attaches check IDs that scan results can be grouped under when producing compliance outputs. There are no tests under tests/compliance/ in this snapshot.

The directory has two shapes. Provider-specific frameworks live under provider subdirectories such as prowler/compliance/aws/, prowler/compliance/azure/, prowler/compliance/gcp/, prowler/compliance/kubernetes/, prowler/compliance/m365/, prowler/compliance/github/, prowler/compliance/googleworkspace/, prowler/compliance/okta/, prowler/compliance/oraclecloud/, prowler/compliance/nhn/, and prowler/compliance/huaweicloud/. Their JSON uses capitalized top-level keys (Framework, Name, Version, Provider, Description, Requirements) and capitalized per-requirement keys (Id, Description, Checks, Attributes). Examples include prowler/…/cis_7.0_aws.json, prowler/…/cis_6.0_azure.json, prowler/…/cis_5.0_gcp.json, and prowler/…/cis_2.0.1_kubernetes.json.

Shared, cross-provider frameworks live directly under prowler/compliance/, for example prowler/…/cis_controls_8.1.json, prowler/…/dora_2022_2554.json, prowler/…/cyber_essentials_3.3.json, and prowler/…/fedramp_20x_ksi_2026.json. These use lowercase schema keys (framework, name, version, description, attributes_metadata, outputs, requirements) and put check mappings in provider-keyed objects such as "checks": {"aws": [...], "azure": [...], "gcp": [...]}. Shared frameworks also define output metadata: attributes_metadata describes which requirement attributes are reportable, and outputs drives grouping, PDF section order, chart configuration, and whether failed/manual findings are included.

Provider-specific standards encode one provider per file. A requirement in prowler/…/cis_7.0_aws.json maps an AWS CIS control to AWS check IDs such as iam_root_credentials_management_enabled; Azure CIS in prowler/…/cis_6.0_azure.json maps to Azure check IDs such as databricks_workspace_vnet_injection_enabled; GCP CIS in prowler/…/cis_5.0_gcp.json includes many manual controls with empty Checks; Kubernetes CIS in prowler/…/cis_2.0.1_kubernetes.json similarly contains manual or node-local benchmark items with empty Checks. Empty check arrays are meaningful: they preserve a requirement in reports even when Prowler has no automated check for it.

Several standards are repeated per provider rather than shared. CCC appears as separate provider files in prowler/…/ccc_aws.json, prowler/…/ccc_azure.json, and prowler/…/ccc_gcp.json; the same CCC requirement IDs and attribute structure are reused, but each file maps only the checks relevant to that provider. The same provider-specific pattern is used for CIS, ISO 27001, PCI, HIPAA, SOC 2, NIS2, MITRE ATT&CK, ENS, SecNumCloud, C5, and Prowler ThreatScore where present. Provider-specific ThreatScore files such as prowler/…/prowler_threatscore_aws.json add scoring semantics in attributes (LevelOfRisk, Weight) rather than only sectioning text.

ConfigRequirements / config_requirements entries are guardrails on how a mapped check must be configured for a requirement to count as the intended control. Provider-specific files use capitalized ConfigRequirements, as in prowler/…/iso27001_2022_aws.json requiring securityhub_enabled to run with mute_non_default_regions == false, prowler/…/cis_2.0.1_kubernetes.json requiring apiserver_audit_log_maxage_set with audit_log_maxage >= 30, and prowler/…/okta_idaas_stig_v1r2_okta.json requiring session timeout configuration keys to be below STIG limits. Shared frameworks use lowercase config_requirements and include a Provider field when the check namespace is provider-specific, as shown in prowler/…/cis_controls_8.1.json and prowler/…/fedramp_20x_ksi_2026.json.

The __init__.py files under provider compliance directories are empty package markers. Some provider directories currently contain only that marker (prowler/compliance/stackit/, prowler/compliance/openstack/, prowler/compliance/mongodbatlas/, prowler/compliance/llm/, prowler/compliance/linode/, prowler/compliance/iac/, prowler/compliance/cloudflare/, prowler/compliance/alibabacloud/), so routing by path should not assume every provider directory has compliance JSON yet.

Coupling

  • If a check is renamed or moved in a provider, update every Checks array or shared-framework checks.<provider> entry that references that check ID under prowler/compliance/**; these mappings are raw strings and the JSON files do not import or type-check provider check metadata.
  • If a provider-specific framework is added under prowler/compliance/<provider>/, keep the filename and top-level Provider aligned with the provider directory and existing naming pattern such as cis_7.0_aws.json; reviewers use the path to route provider-specific standards, while the JSON Provider value determines the reporting semantics inside the artifact.
  • If a cross-provider framework is added at the root of prowler/compliance/, use the lowercase schema with provider-keyed checks objects, attributes_metadata, and outputs; copying the capitalized provider-specific schema would omit the output metadata used by shared reports.
  • If a requirement has ConfigRequirements or config_requirements, verify that each Check also appears in the same requirement's check mapping and that shared-framework config requirements include Provider; otherwise the config guardrail can drift away from the finding it qualifies.
  • If report grouping changes, update both the requirement attributes and the output metadata in shared framework files. For example, prowler/…/cis_controls_8.1.json groups tables and PDFs by Section, while prowler/…/dora_2022_2554.json groups by Pillar; changing only requirement attributes leaves output sections and charts inconsistent.

Risks

  • prowler/…/**.json stores check mappings as unvalidated strings. If a check ID is misspelled or removed, that requirement silently loses automated evidence in compliance reports rather than failing at import time.
  • The repository has two JSON schemas in the same tree: capitalized provider-specific files such as prowler/…/cis_7.0_aws.json and lowercase shared files such as prowler/…/cis_controls_8.1.json. If a reviewer changes key casing while moving a standard between root and provider folders, downstream compliance report loaders may not find requirements, checks, or output metadata.
  • Manual controls with empty check lists are common in benchmark files such as prowler/…/cis_7.0_aws.json, prowler/…/cis_5.0_gcp.json, and prowler/…/cis_2.0.1_kubernetes.json. If empty arrays are treated as incomplete data during cleanup, reports will stop showing standards requirements that Prowler intentionally cannot automate.