Back to Checks
claude

Claude organization has the Compliance API enabled

audit_compliance_api_enabled
Service: auditSeverity: high
OfficialVerifiedPrivate
Categories:gen-ailoggingforensics-ready
Resource Type:ClaudeOrganizationSettings

The Compliance API is enabled and answering. The Compliance API is the organization's only programmatic record of who did what; without it there is nothing to feed a SIEM or an investigation.

Prowler logoProwlerprowler-provider-claude

Risk

The Compliance API is the organization's only programmatic record of who did what; without it there is nothing to feed a SIEM or an investigation.

Run this check with Prowler

Run in Prowler Cloud
Run
prowler claude --checks audit_compliance_api_enabled

Recommendation

Enable the Compliance API for the parent organization and provision a Compliance Access Key with the read scopes.

Remediation

Other

1Enable the Compliance API for the parent organization and provision a Compliance Access Key with the read scopes.

Check Code

from prowler.lib.check.models import Check

from prowler_provider_claude.lib.report import CheckReportClaude
from prowler_provider_claude.services.audit.audit_client import audit_client


class audit_compliance_api_enabled(Check):
    """The Compliance API is enabled and answering.

    Reaching the effective-settings endpoint at all is the evidence. When it
    does not answer there is nothing read to grade - a missing key, a missing
    scope and a disabled endpoint look the same from here - so the service logs
    the reason and the check reports no finding.
    """

    def execute(self) -> list[CheckReportClaude]:
        findings = []
        for settings in audit_client.settings:
            if not settings.available:
                continue
            report = CheckReportClaude(metadata=self.metadata(), resource=settings)
            org = settings.name.removesuffix(" effective settings")
            report.status = "PASS"
            report.status_extended = (
                f"The Compliance API answers for organization {org}, returning "
                f"{len(settings.rows)} effective setting(s)."
            )
            findings.append(report)
        return findings