Back to Checks
Claude organization has a data retention period configured
dataprivacy_retention_period_configured
Service: dataprivacySeverity: high
OfficialVerifiedPrivate
Categories:gen-ai
Resource Type:ClaudeOrganizationSettings
A retention period is in force for organization content. Storage limitation is an explicit obligation under several privacy regimes, and it starts with a retention period actually being set.
Risk
Storage limitation is an explicit obligation under several privacy regimes, and it starts with a retention period actually being set.
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 dataprivacy_retention_period_configuredRecommendation
Configure a retention period covering chat content, or an organization-wide period, in the data and privacy controls.
Remediation
Other
1Configure a retention period covering chat content, or an organization-wide period, in the data and privacy controls.
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_retention_period_configured(Check):
"""A retention period is in force for organization content.
A key of ``all`` covers every data type and is exclusive. A missing key
means no administrator-configured period is in force for that data type,
though Anthropic's service defaults may still apply.
"""
def execute(self) -> list[CheckReportClaude]:
findings = []
for settings in dataprivacy_client.settings:
row = settings.get("data_retention_periods")
if row is None:
continue
report = CheckReportClaude(metadata=self.metadata(), resource=settings)
org = settings.name.removesuffix(" effective settings")
periods = row.value if isinstance(row.value, dict) else {}
if "all" in periods or "chat" in periods:
covered = "every data type" if "all" in periods else "chat content"
report.status = "PASS"
report.status_extended = (
f"Organization {org} has an administrator-configured retention period "
f"covering {covered}."
)
else:
report.status = "FAIL"
report.status_extended = (
f"Organization {org} has no administrator-configured retention period for "
f"chat content (data_retention_periods covers: "
f"{', '.join(sorted(periods)) or 'nothing'})."
)
findings.append(report)
return findings