Back to Checks
claude

Claude organization location metadata collection setting matches the documented baseline

dataprivacy_location_metadata_disabled
Service: dataprivacySeverity: low
OfficialVerifiedPrivate
Categories:gen-ai
Resource Type:ClaudeOrganizationSettings

The effective organization settings are evaluated for location_metadata_enabled. Location metadata is personal data under several privacy regimes and is rarely needed for the product to work.

Risk

Location metadata is personal data under several privacy regimes and is rarely needed for the product to work.

Run this check with Prowler

Run in Prowler Cloud
Install
pip install --extra-index-url https://__token__:${PROWLER_REGISTRY_DOWNLOAD_API_KEY}@registry.prowler.com/simple/ "prowler-provider-claude[runtime]"
Run
prowler claude --checks dataprivacy_location_metadata_disabled

Recommendation

Disable location metadata collection, or record the decision to allow it in the audit config.

Remediation

Other

1Disable location metadata collection, 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.dataprivacy.dataprivacy_client import (
    dataprivacy_client,
)


class dataprivacy_location_metadata_disabled(Check):
    """Location metadata collection matches the documented baseline.

    Location metadata is personal data under several privacy regimes and is rarely needed for the product to work.

    Policy-pinned: compared against ``claude_location_metadata_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 = dataprivacy_client.audit_config.get(
            "claude_location_metadata_expected", False
        )
        findings = []
        for settings in dataprivacy_client.settings:
            row = settings.get("location_metadata_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 location metadata collection {state}, matching the documented "
                    f"baseline (location_metadata_enabled is {str(row.value).lower()})."
                )
            else:
                report.status = "FAIL"
                report.status_extended = (
                    f"Organization {org} has location metadata collection {state} but the documented baseline "
                    f"is {'enabled' if expected else 'disabled'} (location_metadata_enabled is "
                    f"{str(row.value).lower()}). Either change the setting or update "
                    "claude_location_metadata_expected in the Prowler audit config to record the decision."
                )
            findings.append(report)
        return findings