Join our Newsletter — 33% off our NHI Course
Home› Guides› Databricks Audit Logs and System Tables: Detecting Workspace…
Guide Cloud Security

Databricks Audit Logs and System Tables: Detecting Workspace Abuse

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 12 min read
On this page

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.audit holds events from every Databricks service; service_name plus action_name identify the event, and request_params carries the detail.
  • Account events sit in workspace 0. Logins, token, group and admin role changes appear with workspace_id 0, 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, tokenLogin and servicePrincipalCredentials events: 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.

AspectSystem table system.access.auditAudit log delivery (AWS)
FormatRead-only Delta table queried with SQLJSON files in an S3 bucket, encrypted with S3 server-side encryption
SetupUnity Catalog workspace; account admins and metastore admins can read by default, others need USE CATALOG, USE SCHEMA and SELECTAccount admin creates a storage configuration, a credentials configuration (IAM role) and a log delivery configuration through the Account API
LatencyQueried in place with SQL; no separate delivery stepFirst delivery up to one hour; events typically delivered within 15 minutes after that
Account-level eventsworkspace_id = 0The workspaceId=0 partition, only when one configuration covers the whole account
Retention395 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

ColumnWhat it holdsDetection use
event_time, event_dateUTC timestamp and calendar dateAlways filter on event_date for performance
workspace_idWorkspace, or 0 for account-level eventsScope rules; include 0 for identity events
service_name, action_nameService (for example unityCatalog) and actionThe primary rule selector
user_identityStruct naming the callerWho acted: a user email or a service principal
identity_metadatarun_by, run_as and, when a resource acts for a user (such as an OAuth app), acting_resource fieldsSeparate the person from the identity a job runs as
source_ip_address, user_agent, session_idNetwork origin and clientNew IP or client for a known identity
request_paramsMap of parameters, varying by eventObject names, token IDs, setting keys
responseStruct with status code and error messageFailures and denials
audit_levelWorkspace-level or account-levelAlternative 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.

ServiceActionWhy it matters
accountssetAdmin, removeAdminAdmin role granted or revoked
accountslogin, samlLogin, tokenLogin, oidcTokenAuthorizationSign-in paths; tokenLogin is token-based access
accountsmfaAddKey, mfaDeleteKey, resetPasswordAuthentication factor changes
accountsaddPrincipalToGroup, createGroup, removeGroupGroup membership grants access in bulk
accountscreateIpAccessList, updateIpAccessList, deleteIpAccessList, IpAccessDeniedNetwork guardrails changed, or blocked attempts
accountsManagercreateWorkspaceConfiguration, updateWorkspaceConfiguration, createCredentialsConfiguration, createNetworkPolicyAccount-level infrastructure change
workspaceworkspaceConfEditA workspace admin changed a setting (PATs, verbose logging and others)
secretsgetSecret, putSecret, deleteScopeSecret read, change or scope deletion
unityCatalogupdatePermissionsGrants changed on a securable
unityCatalogcreateStorageCredential, createExternalLocationNew path to underlying cloud storage
clusterLibraries, clusterPoliciesinstallLibraries, edit, changeClusterPolicyAclCode 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 accounts service logs generateDbToken, revokeDbToken, updateDbToken, changeDbTokenState, changeDbTokenAcl and garbageCollectDbToken, plus reachMaxQuotaDbToken when 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: tokenLogin shows token authentication. Baseline the source IP and user agent per identity and alert on new combinations.
  • OAuth secrets: the servicePrincipalCredentials service logs create, list and delete when 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: mintOAuthToken and mintOAuthAuthorizationCode record OAuth token issuance; volume spikes for one service principal are worth a look.
  • Permissions on identities: changeServicePrincipalAcls shows 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_by with run_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.

SignalEvents and tablesWhat to look for
Table discovery and readsunityCatalog getTable; system.access.table_lineageOne identity touching many tables or schemas it has not used before
Direct storage accessunityCatalog generateTemporaryTableCredentialTemporary credentials for tables used outside the usual engines or IPs
Result downloadsdatabrickssql downloadQueryResult; notebook downloadLargeResults, downloadPreviewResultsDownloads by service principals (unexpected) or bulk downloads by a user
Code exportworkspace workspaceExportMany notebooks exported in a short window, often before a departure
SharingunityCatalog actions prefixed deltaSharingNew shares or recipients, and recipient activity on sensitive shares
Command contentnotebook runCommand, jobs runCommand, databrickssql commandSubmit (verbose audit logs)commandText with bulk SELECT *, writes to external paths or credential access
Blocked egresssystem.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:

  1. Enable and grant: confirm Unity Catalog and system tables are enabled; grant a security group USE CATALOG on system and USE SCHEMA plus SELECT on system.access, rather than making analysts account admins.
  2. 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.
  3. 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.
  4. Baseline for two to four weeks: for each identity, record normal source IPs, user agents, services, and daily counts of getTable, downloads and tokenLogin.
  5. 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 (servicePrincipalCredentials create), verbose logging disabled, IP access list deleted, storage credential created, and downloads by a service principal.
  6. 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.
  7. 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

FrameworkReferenceHow this guide applies
NIST CSF 2.0PR.PS-04, DE.CM-03, DE.CM-09, DE.AE-02Logs generated and available; personnel and platform activity monitored; events analysed
NIST SP 800-53 Rev. 5AU-2, AU-6, AU-12, AC-2Event selection, review, generation; account monitoring
CIS Controls v8.1Control 8 Audit Log ManagementCollect, retain and review audit logs
ISO/IEC 27001:2022 Annex A8.15 Logging, 8.16 Monitoring activitiesLogging and monitoring of platform activity
MITRE ATT&CKT1078.004, T1528, T1098.001, T1530, T1567Cloud 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, runCommand and commandSubmit do 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.access rather than admin roles.
  • Turn on Verbose Audit Logs in production workspaces and alert on enableVerboseAuditLogs being set to false.
  • Keep an external, access-restricted copy of audit data through delivery or SIEM streaming.
  • Include workspace_id 0 in every identity rule.
  • Alert on setAdmin, servicePrincipalCredentials create, generateDbToken for service principals and IP access list deletion.
  • Baseline tokenLogin source IPs and user agents per identity and alert on new combinations.
  • Monitor downloads and generateTemporaryTableCredential by identities that do not normally use them.
  • Set maxTokenLifetimeDays and 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

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

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.