Back to Checks
claude

Claude organization prevents Claude Code from bypassing permission prompts

claudecode_bypass_permissions_disabled
Service: claudecodeSeverity: critical
OfficialVerifiedPrivate
Categories:gen-aisoftware-supply-chain
Resource Type:ClaudeOrganizationSettings

The effective organization settings are evaluated for claude_code_desktop_bypass_permissions_enabled. Bypassing permissions removes the approval step in front of file writes, shell commands and network calls, which is the single control standing between an agent and the developer's machine.

Prowler logoProwlerprowler-provider-claude

Risk

Bypassing permissions removes the approval step in front of file writes, shell commands and network calls, which is the single control standing between an agent and the developer's machine.

Run this check with Prowler

Run in Prowler Cloud
Run
prowler claude --checks claudecode_bypass_permissions_disabled

Recommendation

Disable bypass permissions mode for Claude Code across the organization.

Remediation

Other

1Disable bypass permissions mode for Claude Code across the organization.

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_bypass_permissions_disabled(Check):
    """Claude Code cannot bypass the permission prompt.

    Bypassing permissions removes the approval step in front of file writes, shell commands and network calls, which is the single control standing between an agent and the developer's machine.
    """

    def execute(self) -> list[CheckReportClaude]:
        findings = []
        for settings in claudecode_client.settings:
            row = settings.get("claude_code_desktop_bypass_permissions_enabled")
            if row is None:
                continue
            org = settings.name.removesuffix(" effective settings")
            report = CheckReportClaude(metadata=self.metadata(), resource=settings)
            if row.value is False:
                report.status = "PASS"
                report.status_extended = f"Organization {org} does not allow Claude Code to bypass permission prompts (claude_code_desktop_bypass_permissions_enabled is false)."
            else:
                report.status = "FAIL"
                report.status_extended = f"Organization {org} allows Claude Code to bypass permission prompts (claude_code_desktop_bypass_permissions_enabled is {str(row.value).lower()})."
            findings.append(report)
        return findings