Back to Checks
claude

Claude organization administrator count is within the documented maximum

identity_privileged_roles_limited
Service: identitySeverity: medium
OfficialVerifiedPrivate
Categories:gen-aiidentity-accessprivilege-escalation
Resource Type:ClaudeMember

Organization administrators are few and named. Every administrator can change the data-privacy settings the rest of this catalog depends on, so the count is a control in its own right.

Risk

Every administrator can change the data-privacy settings the rest of this catalog depends on, so the count is a control in its own right.

Run this check with Prowler

Run in Prowler Cloud
Install
pip install --extra-index-url https://__token__:${PROWLER_REGISTRY_DOWNLOAD_API_KEY}@registry.prowler.com/simple/ "prowler-provider-claude[runtime]"
Run
prowler claude --checks identity_privileged_roles_limited

Recommendation

Reduce the number of admin, owner and primary owner roles, and raise claude_max_admins in the audit config only with a documented reason.

Remediation

Other

1Reduce the number of admin, owner and primary owner roles, and raise claude_max_admins in the audit config only with a documented reason.

Check Code

from prowler.lib.check.models import Check

from prowler_provider_claude.lib.report import CheckReportClaude
from prowler_provider_claude.services.identity.identity_client import identity_client

PRIVILEGED_ROLES = {"admin", "owner", "primary_owner"}


class identity_privileged_roles_limited(Check):
    """Organization administrators are few and named."""

    def execute(self) -> list[CheckReportClaude]:
        maximum = identity_client.audit_config.get("claude_max_admins", 3)
        privileged = [
            m
            for m in identity_client.members
            if m.organization_role in PRIVILEGED_ROLES
        ]
        findings = []
        for member in privileged:
            report = CheckReportClaude(metadata=self.metadata(), resource=member)
            if len(privileged) <= maximum:
                report.status = "PASS"
                report.status_extended = (
                    f"Member {member.email or member.name} holds the {member.organization_role} "
                    f"role, and the organization has {len(privileged)} privileged member(s), "
                    f"within the documented maximum of {maximum}."
                )
            else:
                report.status = "FAIL"
                report.status_extended = (
                    f"Member {member.email or member.name} holds the {member.organization_role} "
                    f"role, and the organization has {len(privileged)} privileged member(s), "
                    f"above the documented maximum of {maximum}."
                )
            findings.append(report)
        return findings