Back to Checks
openai

OpenAI organization data retention is restricted

organization_data_retention_restricted
Service: organizationSeverity: medium
OfficialVerifiedPrivate
Categories:gen-ai
Resource Type:OpenAIOrganization

The API Platform organization's data retention type is checked against allowed_data_retention_types (default: zero data retention and modified abuse monitoring, standard and enhanced).

Prowler logoProwlerprowler-provider-openai

Risk

With standard retention, prompts and outputs are kept by OpenAI for abuse monitoring, which may exceed what the organization's privacy commitments allow.

Run this check with Prowler

Run in Prowler Cloud
Run
prowler openai --checks organization_data_retention_restricted

Recommendation

Request zero data retention or modified abuse monitoring from OpenAI and set it in Data controls.

Check Code

from prowler.lib.check.models import Check

from prowler_provider_openai.check_report import finding
from prowler_provider_openai.services.organization.organization_client import (
    organization_client,
)


class organization_data_retention_restricted(Check):
    def execute(self):
        kind = organization_client.data_retention_type
        if kind is None:
            return []
        allowed = organization_client.audit_config.get("allowed_data_retention_types") or []
        org = organization_client.resource["name"]
        if kind in allowed:
            text = f"Organization {org} uses {kind} data retention."
        else:
            text = f"Organization {org} uses {kind} data retention, not one of: {', '.join(allowed)}."
        return [finding(self.metadata(), organization_client.resource, kind in allowed, text)]