Back to Checks
Claude organization blocks network egress from sandboxed code execution
execution_network_egress_disabled
Service: executionSeverity: high
OfficialVerifiedPrivate
Categories:gen-aitrust-boundariesinternet-exposed
Resource Type:ClaudeOrganizationSettings
The effective organization settings are evaluated for code_execution_network_egress_enabled. Egress from the execution sandbox turns generated code into a channel for pulling in payloads and pushing out data.
Risk
Egress from the execution sandbox turns generated code into a channel for pulling in payloads and pushing out data.
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 execution_network_egress_disabledRecommendation
Disable network egress for code execution.
Remediation
Other
1Disable network egress for code execution.
Check Code
from prowler.lib.check.models import Check
from prowler_provider_claude.lib.report import CheckReportClaude
from prowler_provider_claude.services.execution.execution_client import (
execution_client,
)
class execution_network_egress_disabled(Check):
"""Sandboxed code execution cannot reach the network.
Egress from the execution sandbox turns generated code into a channel for pulling in payloads and pushing out data.
"""
def execute(self) -> list[CheckReportClaude]:
findings = []
for settings in execution_client.settings:
row = settings.get("code_execution_network_egress_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} blocks network egress from code execution (code_execution_network_egress_enabled is false)."
else:
report.status = "FAIL"
report.status_extended = f"Organization {org} allows network egress from code execution (code_execution_network_egress_enabled is {str(row.value).lower()})."
findings.append(report)
return findings