Back to Checks
Claude organization IP allowlist contains no range of /8 or wider
organization_ip_allowlist_no_broad_ranges
Service: organizationSeverity: medium
OfficialVerifiedPrivate
Categories:gen-aiidentity-accesstrust-boundariesinternet-exposed
Resource Type:ClaudeOrganizationSettings
IP allowlist contains no range broad enough to be meaningless. An allowlist that admits 0.0.0.0/0 or a /8 provides the appearance of a network control without the effect.
Risk
An allowlist that admits 0.0.0.0/0 or a /8 provides the appearance of a network control without the effect.
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 organization_ip_allowlist_no_broad_rangesRecommendation
Replace over-broad entries with the specific egress ranges your workforce uses.
Remediation
Other
1Replace over-broad entries with the specific egress ranges your workforce uses.
Check Code
from prowler.lib.check.models import Check
from prowler_provider_claude.lib.report import CheckReportClaude
from prowler_provider_claude.services.organization.organization_client import (
organization_client,
)
WIDE_OPEN = {"0.0.0.0/0", "::/0"}
BROADEST_USEFUL_PREFIX = 8
class organization_ip_allowlist_no_broad_ranges(Check):
"""IP allowlist contains no range broad enough to be meaningless.
A /8 admits sixteen million addresses and 0.0.0.0/0 admits everything, so an
allowlist containing either is a control on paper only.
"""
def execute(self) -> list[CheckReportClaude]:
findings = []
for settings in organization_client.settings:
row = settings.get("ip_allowlist_ip_ranges")
if row is None:
continue
report = CheckReportClaude(metadata=self.metadata(), resource=settings)
org = settings.name.removesuffix(" effective settings")
ranges = [str(entry).strip() for entry in (row.value or [])]
broad = []
for entry in ranges:
if entry in WIDE_OPEN:
broad.append(entry)
elif ":" not in entry and "/" in entry:
try:
prefix = int(entry.split("/", 1)[1])
except ValueError:
continue
if prefix <= BROADEST_USEFUL_PREFIX:
broad.append(entry)
if not ranges:
report.status = "PASS"
report.status_extended = (
f"Organization {org} has no IP allowlist ranges configured, so there is "
"no over-broad entry to report."
)
elif broad:
report.status = "FAIL"
report.status_extended = (
f"Organization {org} has {len(broad)} IP allowlist entry(ies) broad enough "
f"to admit most of the internet: {', '.join(broad)}."
)
else:
report.status = "PASS"
report.status_extended = (
f"Organization {org} has {len(ranges)} IP allowlist range(s), none broader "
f"than a /{BROADEST_USEFUL_PREFIX}."
)
findings.append(report)
return findings