Back to Checks
Prowlerprowler-provider-claude
Claude organization Claude Code security review setting matches the documented baseline
claudecode_security_review_enabled
Service: claudecodeSeverity: medium
OfficialVerifiedPrivate
Categories:gen-aisoftware-supply-chain
Resource Type:ClaudeOrganizationSettings
The effective organization settings are evaluated for claude_code_security_enabled. The security capability adds automated review to code the agent produces, which is cheap defence in depth.
Risk
The security capability adds automated review to code the agent produces, which is cheap defence in depth.
Run this check with Prowler
Run in Prowler CloudRun
prowler claude --checks claudecode_security_review_enabledRecommendation
Enable the Claude Code security capability, or record the decision not to in the audit config.
Remediation
Other
1Enable the Claude Code security capability, or record the decision not to 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_security_review_enabled(Check):
"""The Claude Code security capability matches the documented baseline.
The security capability adds automated review to code the agent produces, which is cheap defence in depth.
Policy-pinned: compared against ``claude_code_security_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_security_expected", True
)
findings = []
for settings in claudecode_client.settings:
row = settings.get("claude_code_security_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 the Claude Code security capability {state}, matching the documented "
f"baseline (claude_code_security_enabled is {str(row.value).lower()})."
)
else:
report.status = "FAIL"
report.status_extended = (
f"Organization {org} has the Claude Code security capability {state} but the documented baseline "
f"is {'enabled' if expected else 'disabled'} (claude_code_security_enabled is "
f"{str(row.value).lower()}). Either change the setting or update "
"claude_code_security_expected in the Prowler audit config to record the decision."
)
findings.append(report)
return findings