Databricks records almost every sensitive action in its audit logs, but most teams never turn that record into detections. A stolen personal access token, a service principal given a new OAuth secret, or a user pulling query results out of the SQL editor all leave events behind, in the system.access.audit system table and in delivered audit log files. This guide shows data platform security engineers how audit delivery and system tables work, which service and action names matter, how token and service principal activity appears, and how to build and tune detections on top of it. It goes deeper than the Databricks Security Guide, which covers identity design and the hardening baseline. Facts come from Databricks documentation for the AWS deployment, checked in November 2026; table and event names change between releases, so confirm them against the current reference before you deploy a rule.
This is an independent guide from NHI Mgmt Group, based on Databricks's public documentation as of November 2026. It is not sponsored or reviewed by Databricks. Product features change, so confirm settings against Databricks's current documentation.
Key takeaways
- One table, many services.
system.access.auditholds events from every Databricks service;service_nameplusaction_nameidentify the event, andrequest_paramscarries the detail. - Account events sit in workspace 0. Logins, token, group and admin role changes appear with
workspace_id0, so a query filtered to one workspace misses them. - Command text needs verbose audit logs. Notebook and SQL command text is only captured after a workspace admin turns on Verbose Audit Logs, which is off by default.
- Machine identities are the priority. Watch
generateDbToken,tokenLoginandservicePrincipalCredentialsevents: new credentials for non-human identities are the most common persistence path in cloud platforms. - Retention is generous but not permanent. System tables keep audit data for 395 days free, but a deleted workspace loses its events older than 14 days, so keep a copy you control.
Audit log delivery and system tables
Databricks offers two ways to get the same audit stream. The documentation recommends the audit log system table for access to audit logs; the table is labelled Public Preview as of November 2026. File delivery remains available and is useful when a SIEM must ingest the raw records.
| Aspect | System table system.access.audit | Audit log delivery (AWS) |
|---|---|---|
| Format | Read-only Delta table queried with SQL | JSON files in an S3 bucket, encrypted with S3 server-side encryption |
| Setup | Unity Catalog workspace; account admins and metastore admins can read by default, others need USE CATALOG, USE SCHEMA and SELECT | Account admin creates a storage configuration, a credentials configuration (IAM role) and a log delivery configuration through the Account API |
| Latency | Queried in place with SQL; no separate delivery step | First delivery up to one hour; events typically delivered within 15 minutes after that |
| Account-level events | workspace_id = 0 | The workspaceId=0 partition, only when one configuration covers the whole account |
| Retention | 395 days free; account admins can set 30 to 3,650 days with the st_retention setting (storage charges beyond 395 days) | As long as your bucket lifecycle keeps it |
Delivered files follow the path <bucket>/<prefix>/workspaceId=<id>/date=<yyyy-mm-dd>/auditlogs_<internal-id>.json. System tables cover every workspace in the account within the same cloud region, and most audit data stays in the workspace's region, so a multi-region estate needs a query per region or a central copy.
Key columns in system.access.audit
| Column | What it holds | Detection use |
|---|---|---|
event_time, event_date | UTC timestamp and calendar date | Always filter on event_date for performance |
workspace_id | Workspace, or 0 for account-level events | Scope rules; include 0 for identity events |
service_name, action_name | Service (for example unityCatalog) and action | The primary rule selector |
user_identity | Struct naming the caller | Who acted: a user email or a service principal |
identity_metadata | run_by, run_as and, when a resource acts for a user (such as an OAuth app), acting_resource fields | Separate the person from the identity a job runs as |
source_ip_address, user_agent, session_id | Network origin and client | New IP or client for a known identity |
request_params | Map of parameters, varying by event | Object names, token IDs, setting keys |
response | Struct with status code and error message | Failures and denials |
audit_level | Workspace-level or account-level | Alternative to the workspace 0 filter |
Some request_params keys that contain SQL definitions (view_definition, function_info, definition_json, managed_definition) are visible only to account admins and members of the databricks_pii_access group. Querying the table from dedicated access mode compute needs Databricks Runtime 15.4 LTS or above and a workspace enabled for serverless compute.
High-risk events
The audit log reference lists hundreds of actions. The table below is the shortlist most security teams start with. Each row is a service_name and action_name pair as Databricks documents it.
| Service | Action | Why it matters |
|---|---|---|
accounts | setAdmin, removeAdmin | Admin role granted or revoked |
accounts | login, samlLogin, tokenLogin, oidcTokenAuthorization | Sign-in paths; tokenLogin is token-based access |
accounts | mfaAddKey, mfaDeleteKey, resetPassword | Authentication factor changes |
accounts | addPrincipalToGroup, createGroup, removeGroup | Group membership grants access in bulk |
accounts | createIpAccessList, updateIpAccessList, deleteIpAccessList, IpAccessDenied | Network guardrails changed, or blocked attempts |
accountsManager | createWorkspaceConfiguration, updateWorkspaceConfiguration, createCredentialsConfiguration, createNetworkPolicy | Account-level infrastructure change |
workspace | workspaceConfEdit | A workspace admin changed a setting (PATs, verbose logging and others) |
secrets | getSecret, putSecret, deleteScope | Secret read, change or scope deletion |
unityCatalog | updatePermissions | Grants changed on a securable |
unityCatalog | createStorageCredential, createExternalLocation | New path to underlying cloud storage |
clusterLibraries, clusterPolicies | installLibraries, edit, changeClusterPolicyAcl | Code supply and compute guardrails |
Changing the verbose logging setting itself emits a workspace event with action workspaceConfKeys and parameter enableVerboseAuditLogs. Alert on it being set to false: switching off logging is a classic step before abuse (ATT&CK T1685 Disable or Modify Tools covers the wider pattern).
Token and service principal activity
Personal access tokens and service principal OAuth secrets are non-human credentials, and they are where most cloud data platform compromises start. See the Databricks Service Principals and Token Security Guide for how to issue them safely; this section is about watching them.
- PAT lifecycle: the
accountsservice logsgenerateDbToken,revokeDbToken,updateDbToken,changeDbTokenState,changeDbTokenAclandgarbageCollectDbToken, plusreachMaxQuotaDbTokenwhen a quota is hit. A new token for a dormant user, or for a service principal outside the pipeline that should own it, deserves review. - PAT use:
tokenLoginshows token authentication. Baseline the source IP and user agent per identity and alert on new combinations. - OAuth secrets: the
servicePrincipalCredentialsservice logscreate,listanddeletewhen an account admin generates, lists or deletes an OAuth secret for a service principal. An extra secret on a production service principal is a persistence technique (ATT&CK T1098.001 Additional Cloud Credentials). - Token minting:
mintOAuthTokenandmintOAuthAuthorizationCoderecord OAuth token issuance; volume spikes for one service principal are worth a look. - Permissions on identities:
changeServicePrincipalAclsshows who can use or manage a service principal. Anyone granted the Service Principal User role can run jobs as it. - Who really acted: for jobs, compare
identity_metadata.run_bywithrun_as. A person launching work that runs as a high-privilege service principal is expected for a few owners and suspicious for anyone else.
Two platform behaviours help: Databricks automatically revokes PATs unused for 90 days or more, and the default maximum lifetime for new PATs is 730 days unless an admin sets maxTokenLifetimeDays. Turning PATs off in a workspace blocks their use but does not delete them; they work again if PATs are re-enabled, so treat a workspaceConfEdit that re-enables PATs as a high-severity event. The account console token report (Security, Token report) complements the logs with owner, creation, expiry and last-used dates. For the wider pattern of how machine identities show up across platforms, see How Non-Human Identities Appear in Cloud and SaaS Audit Logs.
Data access and export
Exfiltration from a lakehouse rarely looks like one large transfer. It looks like many reads by an identity that does not normally read, temporary credentials issued for direct storage access, or results downloaded from notebooks and the SQL editor.
| Signal | Events and tables | What to look for |
|---|---|---|
| Table discovery and reads | unityCatalog getTable; system.access.table_lineage | One identity touching many tables or schemas it has not used before |
| Direct storage access | unityCatalog generateTemporaryTableCredential | Temporary credentials for tables used outside the usual engines or IPs |
| Result downloads | databrickssql downloadQueryResult; notebook downloadLargeResults, downloadPreviewResults | Downloads by service principals (unexpected) or bulk downloads by a user |
| Code export | workspace workspaceExport | Many notebooks exported in a short window, often before a departure |
| Sharing | unityCatalog actions prefixed deltaSharing | New shares or recipients, and recipient activity on sensitive shares |
| Command content | notebook runCommand, jobs runCommand, databrickssql commandSubmit (verbose audit logs) | commandText with bulk SELECT *, writes to external paths or credential access |
| Blocked egress | system.access.outbound_network (Public Preview) | Serverless workloads trying to reach unapproved destinations |
These map to ATT&CK T1530 Data from Cloud Storage and T1567 Exfiltration Over Web Service. The SQL warehouse view is also in system.query.history, which keeps queries on SQL warehouses and serverless compute for 395 days. For response steps once exfiltration is suspected, see the Data Exfiltration Playbook.
Building detections
Start small, prove each rule against real data, then automate. A phased approach:
- Enable and grant: confirm Unity Catalog and system tables are enabled; grant a security group
USE CATALOGonsystemandUSE SCHEMAplusSELECTonsystem.access, rather than making analysts account admins. - Turn on verbose audit logs in each workspace (admin settings, Advanced tab) where command text is needed, after agreeing with data owners how command text containing sensitive values will be protected.
- Keep a copy you control: configure audit log delivery to a locked bucket, or stream the system table into your SIEM, so evidence survives a deleted workspace or a compromised admin. Databricks discourages moving audit data off the platform; weigh that against your evidence and retention duties, and restrict who can read the copy.
- Baseline for two to four weeks: for each identity, record normal source IPs, user agents, services, and daily counts of
getTable, downloads andtokenLogin. - Write rules in audit mode: run each as a scheduled query that writes hits to a review table, with no paging. Typical first rules: admin role grant (
setAdmin), PAT created for a service principal, OAuth secret created (servicePrincipalCredentialscreate), verbose logging disabled, IP access list deleted, storage credential created, and downloads by a service principal. - Tune and promote: add allow-lists for known automation (by service principal application ID and IP), then promote stable rules to alerts in your SIEM or Databricks SQL alerts.
- Roll back safely: a noisy rule goes back to audit mode, not deleted; record the reason with the rule.
A sensible first query shape: select event_time, workspace_id, user_identity, source_ip_address, action_name and request_params from system.access.audit where event_date is within the last day and service_name is accounts and action_name is in the token and admin actions above. Keep rules declarative and stored in version control. For rule design and testing practice, see the Cloud Detection Engineering Guide.
Measuring coverage
- Logging coverage: percentage of workspaces whose events appear in the table or in delivery in the last 24 hours (target 100%).
- Verbose coverage: percentage of production workspaces with Verbose Audit Logs on.
- Credential hygiene: number of active PATs owned by users versus service principals, and the oldest active token age.
- Time to triage: median minutes from a high-severity hit (admin grant, new OAuth secret) to analyst review.
- Rule quality: false positive rate per rule over 30 days, aiming to bring each below an agreed threshold before paging.
Framework mapping
| Framework | Reference | How this guide applies |
|---|---|---|
| NIST CSF 2.0 | PR.PS-04, DE.CM-03, DE.CM-09, DE.AE-02 | Logs generated and available; personnel and platform activity monitored; events analysed |
| NIST SP 800-53 Rev. 5 | AU-2, AU-6, AU-12, AC-2 | Event selection, review, generation; account monitoring |
| CIS Controls v8.1 | Control 8 Audit Log Management | Collect, retain and review audit logs |
| ISO/IEC 27001:2022 Annex A | 8.15 Logging, 8.16 Monitoring activities | Logging and monitoring of platform activity |
| MITRE ATT&CK | T1078.004, T1528, T1098.001, T1530, T1567 | Cloud account abuse, token theft, added credentials, cloud data collection and exfiltration |
Common failure patterns
- Filtering out workspace 0: rules scoped to workspace IDs never see logins, token creation or admin grants, which are account-level events.
- Assuming command text is there: without Verbose Audit Logs,
runCommandandcommandSubmitdo not appear, so investigations cannot show what was run. - Analysts as account admins: giving the SOC account admin to read system tables hands it far more power than needed; grant the system schemas instead.
- Treating service principals as noise: allow-listing all automation by identity hides a stolen service principal secret used from a new IP. Allow-list by identity and origin together.
- Single region queries: most audit data is regional, so a query run in one region misses workspaces elsewhere.
- Trusting the platform copy alone: when a workspace is deleted its events older than 14 days are removed from the table; without an external copy, evidence disappears with it.
Practitioner checklist
- Confirm system tables are enabled and grant a security group read access to
system.accessrather than admin roles. - Turn on Verbose Audit Logs in production workspaces and alert on
enableVerboseAuditLogsbeing set to false. - Keep an external, access-restricted copy of audit data through delivery or SIEM streaming.
- Include
workspace_id0 in every identity rule. - Alert on
setAdmin,servicePrincipalCredentialscreate,generateDbTokenfor service principals and IP access list deletion. - Baseline
tokenLoginsource IPs and user agents per identity and alert on new combinations. - Monitor downloads and
generateTemporaryTableCredentialby identities that do not normally use them. - Set
maxTokenLifetimeDaysand review the token report monthly. - Check retention (
st_retention) against your evidence obligations and run each query in every region. - Re-check the audit log reference each quarter: event names change.
Standards and references
- Databricks: Audit log reference
- Databricks: Audit log system table reference
- Databricks: Monitor account activity with system tables
- Databricks: Verbose audit logs
- Databricks: Configure audit log delivery
- Databricks: Monitor and revoke personal access tokens
- NIST: SP 800-53 Rev. 5 Security and Privacy Controls
- MITRE ATT&CK: T1098.001 Additional Cloud Credentials
Related NHI Mgmt Group resources: Databricks Security Guide · Databricks Service Principals and Token Security Guide · Database Audit Log Detection Guide · CIS Control 8 Audit Log Management Guide