Back to Checks
claude

Claude organization Claude Code remote control setting matches the documented baseline

claudecode_remote_control_matches_baseline
Service: claudecodeSeverity: medium
OfficialVerifiedPrivate
Categories:gen-aisoftware-supply-chain
Resource Type:ClaudeOrganizationSettings

The effective organization settings are evaluated for claude_code_remote_control_enabled. Remote control lets a session be driven from another device, which widens who can act on a developer machine.

Prowler logoProwlerprowler-provider-claude

Risk

Remote control lets a session be driven from another device, which widens who can act on a developer machine.

Run this check with Prowler

Run in Prowler Cloud
Run
prowler claude --checks claudecode_remote_control_matches_baseline

Recommendation

Disable Claude Code remote control, or record the decision to allow it in the audit config.

Remediation

Other

1Disable Claude Code remote control, 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_remote_control_matches_baseline(Check):
    """Claude Code remote control matches the documented baseline.

    Remote control lets a session be driven from another device, which widens who can act on a developer machine.

    Policy-pinned: compared against ``claude_code_remote_control_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_remote_control_expected", False
        )
        findings = []
        for settings in claudecode_client.settings:
            row = settings.get("claude_code_remote_control_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 Claude Code remote control {state}, matching the documented "
                    f"baseline (claude_code_remote_control_enabled is {str(row.value).lower()})."
                )
            else:
                report.status = "FAIL"
                report.status_extended = (
                    f"Organization {org} has Claude Code remote control {state} but the documented baseline "
                    f"is {'enabled' if expected else 'disabled'} (claude_code_remote_control_enabled is "
                    f"{str(row.value).lower()}). Either change the setting or update "
                    "claude_code_remote_control_expected in the Prowler audit config to record the decision."
                )
            findings.append(report)
        return findings