Back to Checks
Claude workspace administrator count is within the documented maximum
workspace_admins_limited
Service: workspaceSeverity: low
OfficialVerifiedPrivate
Categories:gen-aiidentity-accesstrust-boundariesprivilege-escalation
Resource Type:ClaudeWorkspace
Workspace administrators are not the default role. When most members are workspace administrators the role stops being a boundary.
Risk
When most members are workspace administrators the role stops being a boundary.
Run this check with Prowler
Run in Prowler CloudInstall
pip install --extra-index-url https://__token__:${PROWLER_REGISTRY_DOWNLOAD_API_KEY}@registry.prowler.com/simple/ "prowler-provider-claude[runtime]"Run
prowler claude --checks workspace_admins_limitedRecommendation
Reduce workspace administrators to the people who manage the workspace.
Remediation
Other
1Reduce workspace administrators to the people who manage the workspace.
Check Code
from prowler.lib.check.models import Check
from prowler_provider_claude.lib.report import CheckReportClaude
from prowler_provider_claude.services.workspace.workspace_client import (
workspace_client,
)
class workspace_admins_limited(Check):
"""Workspace administrators are not the default role."""
def execute(self) -> list[CheckReportClaude]:
maximum = workspace_client.audit_config.get("claude_max_workspace_admins", 3)
findings = []
for workspace in [w for w in workspace_client.workspaces if not w.archived]:
if workspace.members is None:
continue
report = CheckReportClaude(metadata=self.metadata(), resource=workspace)
admins = [
m for m in workspace.members if m.workspace_role == "workspace_admin"
]
if len(admins) <= maximum:
report.status = "PASS"
report.status_extended = (
f"Workspace {workspace.name} has {len(admins)} administrator(s), within the "
f"documented maximum of {maximum}."
)
else:
report.status = "FAIL"
report.status_extended = (
f"Workspace {workspace.name} has {len(admins)} administrator(s), above the "
f"documented maximum of {maximum}."
)
findings.append(report)
return findings