Back to Checks
Prowlerprowler-provider-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.
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 CloudRun
prowler openai --checks organization_audit_logging_enabledRecommendation
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)]