Back to Checks
Prowlerprowler-provider-claude
Claude organization cloud-hosted Claude Code setting matches the documented baseline
claudecode_web_matches_baseline
Service: claudecodeSeverity: low
OfficialVerifiedPrivate
Categories:gen-aisoftware-supply-chain
Resource Type:ClaudeOrganizationSettings
The effective organization settings are evaluated for claude_code_web_enabled. Cloud sessions execute outside your network, so source and secrets reach an environment your controls do not cover.
Risk
Cloud sessions execute outside your network, so source and secrets reach an environment your controls do not cover.
Run this check with Prowler
Run in Prowler CloudRun
prowler claude --checks claudecode_web_matches_baselineRecommendation
Disable cloud-hosted Claude Code, or record the decision to allow it in the audit config.
Remediation
Other
1Disable cloud-hosted Claude Code, or record the decision to allow it in the audit config.
Check Code
from prowler.lib.check.models import Check
from prowler_provider_claude.lib.report import CheckReportClaude
from prowler_provider_claude.services.claudecode.claudecode_client import (
claudecode_client,
)
class claudecode_web_matches_baseline(Check):
"""Cloud-hosted Claude Code matches the documented baseline.
Cloud sessions execute outside your network, so source and secrets reach an environment your controls do not cover.
Policy-pinned: compared against ``claude_code_web_expected`` in the Prowler audit config
rather than assumed, so a capability the organization chose to enable is
only reported when it differs from the documented baseline.
"""
def execute(self) -> list[CheckReportClaude]:
expected = claudecode_client.audit_config.get("claude_code_web_expected", False)
findings = []
for settings in claudecode_client.settings:
row = settings.get("claude_code_web_enabled")
if row is None:
continue
org = settings.name.removesuffix(" effective settings")
state = "enabled" if row.value else "disabled"
report = CheckReportClaude(metadata=self.metadata(), resource=settings)
if row.value == expected:
report.status = "PASS"
report.status_extended = (
f"Organization {org} has cloud-hosted Claude Code {state}, matching the documented "
f"baseline (claude_code_web_enabled is {str(row.value).lower()})."
)
else:
report.status = "FAIL"
report.status_extended = (
f"Organization {org} has cloud-hosted Claude Code {state} but the documented baseline "
f"is {'enabled' if expected else 'disabled'} (claude_code_web_enabled is "
f"{str(row.value).lower()}). Either change the setting or update "
"claude_code_web_expected in the Prowler audit config to record the decision."
)
findings.append(report)
return findings