OpenAI Logs
Panther supports pulling logs directly from OpenAI
Overview
Panther has the ability to fetch OpenAI audit logs by querying the OpenAI Audit Logs API. Panther queries the Audit Logs API every one minute. In order for Panther to access the API, you need to create a new OpenAI Admin key with appropriate permissions.
How to onboard OpenAI logs to Panther
Prerequisites
You are logged into OpenAI as an organization owner or administrator. This is required to complete Step 1.
Audit Logging must be enabled in OpenAI organization settings:
Navigate to Organization > Data controls > Data retention in your OpenAI account: Organization data retention settings
Enable Audit Logging.
When successfully enabled, the option will read Active with a green check.
Step 1: Create a new OpenAI Admin key
In your OpenAI account, navigate to Settings > Organization > Admin keys.
Click Create new admin key.
Enter a descriptive name for your key, e.g.,
Panther Audit Log Access.Configure the key permissions:
Permissions: Set to Read-only (or ensure the key has read access to audit logs).
Ensure the key has access to the Audit Logs resource.
Copy the Admin key value and store it in a secure location. You will need it in the next step.
OpenAI will not display this value again.
Step 2: Create a new OpenAI source in Panther
In the left-hand navigation bar of your Panther Console, click Log Sources.
Click Create New.
Search for "OpenAI," then click its tile.
On the slide-out panel, click Start Setup.
On the Configuration page, enter a descriptive Name, e.g.,
My OpenAI Audit Logs.The Log Types read-only dropdown will have an
OpenAI.Auditvalue.
Click Setup.
On the Credentials page, fill in the API Key field with the Admin key you generated in Step 1.
Click Setup.
You will be directed to a verification screen that confirms Panther can successfully connect to the OpenAI API.
You can optionally enable one or more Detection Packs.
The Trigger an alert when no events are processed setting defaults to YES. We recommend leaving this enabled, as you will be alerted if data stops flowing from the log source after a certain period of time. The timeframe is configurable, with a default of 24 hours.
Panther-managed detections
See Panther-managed rules for OpenAI in the panther-analysis GitHub repository.
Supported log types
OpenAI.AuditLogs
OpenAI audit logs track administrative and security-related events within your OpenAI organization, including API key management, project changes, user actions, and access control modifications.
Reference: OpenAI Audit Logs API Documentation
Last updated
Was this helpful?

