Back to Checks
openai

OpenAI organization audit logging is enabled

organization_audit_logging_enabled
Service: organizationSeverity: medium
OfficialVerifiedPrivate
Categories:gen-ailoggingforensics-ready
Resource Type:OpenAIOrganization

The API Platform organization is checked for audit log events, the only evidence the API gives that audit logging is on.

Prowler logoProwlerprowler-provider-openai

Risk

Without audit logs there is no record of who created keys, changed roles or invited users, so an intrusion cannot be reconstructed.

Run this check with Prowler

Run in Prowler Cloud
Run
prowler openai --checks organization_audit_logging_enabled

Recommendation

Turn on audit logging in the organization's Data controls. It cannot be turned off afterwards.

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_audit_logging_enabled(Check):
    def execute(self):
        # Only events prove the setting; without them the service warns instead.
        if not organization_client.audit_logging_enabled:
            return []
        text = f"Organization {organization_client.resource['name']} records audit log events."
        return [finding(self.metadata(), organization_client.resource, True, text)]