Databricks Voices content is authored and published by Databricks employees that want to share their own individual learnings and Databricks knowledge. This content supplements the official Databricks product documentation found in other sections of this site.
A Security Responder's Guide to Databricks
A practical guide to evidence, investigation, containment, and recovery
Summary and what to do first
Audience: Databricks administrators, security teams, and incident responders.
This guide helps you stop unauthorized access to your Databricks environment, preserve potentially affected data, and investigate what happened.
In this document: Databricks basics · Investigation workflow · Evidence coverage · Investigation toolkit · Preserve evidence · Containment · Preventative controls · Public resources
What to do first
Use a trusted administrator identity on a clean device. Contain implicated administrators first because they may be able to undo other changes. If trusted administration is unavailable, invoke your organization's validated emergency-access or provider account-recovery process through an independently verified channel. Preserve available identity-provider, cloud, and SIEM evidence while administrative control remains unresolved. A clean device alone does not establish that an identity is trustworthy. Preserve evidence in parallel rather than waiting to finish collection before stopping active abuse.
Contain each exposed credential.
Identify the credential type and use its containment procedure. Personal access tokens (PATs), OAuth secrets for service principals (application identities), user OAuth tokens, and browser sessions require different actions.
Deactivating an identity blocks its access to Databricks, including through credentials you may not yet have found. Deactivate identities.
Enable context-based ingress where possible.
This restricts where and how people and applications can connect to Databricks, making stolen credentials harder to use from an attacker's infrastructure. Restrict access.
Stop suspicious jobs, queries, and compute.
Work already running may continue after credentials are revoked. Stop malicious activity and check for new jobs or credentials the attacker could use to return. Containment guidance.
Rotate secrets the attacker may have read.
Secrets stored in Databricks may also provide access to cloud storage and other systems. Replace exposed secrets to limit the incident's reach. Downstream credential guidance.
Keep copies of data that may have been taken.
Preserve the data and its table history so you can work out what may have been exposed, even as tables change. Preserve data.
Then use the investigation guide to establish what happened and which data and systems were affected.
Databricks for security responders
Databricks is a data and AI platform used for data engineering, analytics, business intelligence, machine learning, and AI workloads. A workspace brings together users, service principals, notebooks, SQL, jobs, models, secrets, and compute. Unity Catalog governs access to data and other securable objects across these workloads. A typical Databricks customer will have many workspaces for different areas of their business, unified into a single account.
Databricks separates platform services from the compute that processes your data. With classic compute, compute resources run in your cloud account. With serverless compute, Databricks manages the compute plane and isolates your workloads in the workspace region. Primary data commonly remains in cloud storage that you manage. The exact architecture and network controls depend on the cloud and compute model. See the Databricks Trust Center architecture overview and the high-level architecture documentation for details.
This matters during an incident because a compromised Databricks identity can have reach beyond the workspace interface. Depending on its permissions and your design, a user may be able to run SQL, Python, Scala, R, or even just execute shell commands. They might query governed data, export notebooks, read secrets, change configuration, or connect to external systems. Your investigation should examine both the identity's Databricks activity and the downstream resources that its permissions or stored credentials could reach.
How Databricks is used
Credentials stored in Databricks can provide access to other systems. If an attacker reads them, include those systems in the investigation and coordinate credential rotation with their owners.
Investigation workflow
Investigate credential use, execution, data and secret access, and changes that could preserve an attacker's foothold. Establish evidence coverage, then build a timeline across identities, workspaces, and connected systems. Use the opening checklist for immediate actions, preserve data and evidence in parallel, and use the containment reference for product-specific response steps.
A question-driven investigation workflow
Begin by writing the questions that your investigation must answer. This bounds the work and produces results that your team can act on.
-
Establish visibility. Determine the available audit-log period, whether logging changed, and which workspaces are in scope. Record known gaps before interpreting results.
-
Triage for a lead. Rank security-sensitive activity by actor, source IP, token, and time. Prioritize identities that performed several different sensitive actions, particularly rare ones. Then look for shared IPs or tokens that connect activity across identities.
-
Pivot and build a timeline. For each lead, examine only the relevant event families. Correlate authentication, denied requests, successful changes, new privileges, token events, secret access, data movement, exports, and execution. Compare the user agent with expected console, CLI, SDK, Terraform, application, or automation activity.
-
Trace the original exposure. Ask where the credential or session could have been obtained and whether the same access could expose its replacement. Assign the relevant endpoint, runner, repository, integration, or secret-consumer owner to verify that the exposure path has been closed. Do not delay initial containment while completing this work.
-
State impact and a bounded finding. Identify affected resources and their time or version boundaries. Distinguish observed successful access, evidence of export or transfer, and potential accessibility only. Record confidence, plausible benign explanations, known gaps, and the owner of the next evidence source. Avoid attributing intent from an audit row.
Identify available evidence
The primary record available to you is system.access.audit. It records account and workspace activity such as authentication, API calls, identity and group changes, token lifecycle events, administrative grants, workspace configuration changes, IP access-list events, notebook exports, and secret-related actions. system.query.history adds SQL statement history for investigations that need query-level evidence.
The audit trail should be handled as evidence:
-
Record the earliest and latest available timestamps and confirm whether verbose audit logging was disabled at any point.
-
Preserve the query, parameters, result rows, and UTC timestamps used to support each conclusion.
-
Correlate actors with source IPs, sessions, user agents, request IDs, workspaces, and affected objects.
-
Expand the time range when a later event may be a second phase of an earlier compromise.
-
Treat an empty result as "no matching events found in this data and time window," not proof that an event did not occur.
Can Databricks perform an investigation for us?
Your organization leads its incident investigation and decides containment and recovery for the systems it controls. Contact Databricks Support or your account team for help with product behavior and available response options. Confirm the scope and service coverage of any additional investigation or remediation assistance.
Choose investigation tools
Use the tools below to answer incident-specific questions and preserve supporting evidence. Pair security investigators with administrators who understand the affected Databricks environment.
Use approved AI tools
AI tools can help inspect system tables, refine queries, and build a timeline. Use your organization's approved environment, whether that is Genie, Genie Code, or a coding assistant connected to Databricks. Keep incident data and credentials within approved access and data-handling boundaries. Validate generated queries and conclusions against the collected records.
Three suggestions for tooling
The open-source repository supports different operating models without moving audit data out of your environment.
The repository is open-source investigation content and is not covered by Databricks Support. Review and test it under your change, privacy, and evidence-handling processes before operational use.
- Use the Genie Agent for interactive investigation. The Genie Agent package maps natural-language questions to verified detection queries. An analyst can ask who changed an ingress control, which identities presented from multiple IPs, or who exported an unusual number of notebooks. The queries run through your SQL warehouse as the asking user and remain subject to that user's Unity Catalog permissions.
- Run the repository content directly without Genie. Use the same repository for event-based and behavioral detection notebooks. It also contains seven threat-model generators covering account takeover, data exfiltration, insider threat, ransomware, and other scenarios. Import the Git folder and run the selected generator. Then open and run the investigation notebook it creates under
generated/. Running the generator alone does not execute the investigation. See the investigation toolkit for starting points. - Use Genie Code to build an evidence notebook. Genie Code can help an analyst inspect system tables, refine pivots, visualize a timeline, and document supporting rows. Start from the repository's tested queries rather than asking it to invent audit field names. Keep the generated SQL and results in the notebook so that findings remain reviewable. The model's narrative is not evidence by itself.
The conversational agent and the scheduled detections serve different purposes. Scheduled detections notice activity and can feed alerting. The agent helps an analyst investigate a question. Keep monitoring in place even when the interactive agent is available.
Build Evidence Notebooks
For a material investigation, build Databricks notebooks that record conclusions alongside the queries and saved result sets supporting them. Running a query again can return different data, so preserve the original collected results as well. This maintains a ground truth for investigators and their agents and reduces the risk of unsupported conclusions or lost context.
What attackers do
Below are threat categories covered by this guide and the audit-log signals worth pulling first for each. Example questions mapped to the vetted detection queries and bundled threat-model notebooks are in the investigation toolkit.
Check logging coverage first
Review whether verbose audit logging changed during the incident. Disabling it reduces notebook- and command-level visibility, rather than disabling every audit event. Use detect_verbose_audit_logging_disabled as a starting point, then record the affected workspaces, periods, and event families in the evidence coverage checks.
Account takeover
An attacker obtains a personal access token (PAT) or OAuth secret and uses it from their own infrastructure. The signals worth pulling first:
-
Logins from unusual locations —
tokenLoginevents from IP addresses, geographies, or networks (ASNs) the identity has never used before. -
Source IPs that were previously blocked by an IP access list (
IpAccessDenied) and are now succeeding — correlate the workspace, request timing, applicable policy, and operation result. Check for differences between workspace allow lists or changes to the allow list, including whether a change was authorized. See the audit log reference for the exact action names: https://docs.databricks.com/aws/en/admin/account-settings/audit-logs.
tokenLogin events are generated for most actions, so their volume is high. Examples include a user clicking through the web UI, a remote caller hitting the REST API, and compute-plane jobs calling back to the API. A single tokenLogin is not suspicious on its own. These events are still one of the most useful data sources early in an investigation because they tie an identity and token to a source IP and a point in time.
Secret theft
The attacker harvests credentials stored in Databricks, or cloud credentials reachable from compute:
-
Secret activity — review workspace
secretsevents and Unity Catalog secret access, includingservice_name='unityCatalog'withaction_name='getSecret'. Unusual scope enumeration or repeated reads can identify a lead. Distinguish listing, attempted reads, and successful value retrieval when scoping downstream credential exposure. The repository'sdetect_secrets_discoveryis a starting point, not a complete inventory of these paths. -
Notebook exports — bulk workspace or notebook export events. Notebooks can contain embedded credentials and connection strings.
-
Code that reaches for credentials — notebook or job code that attempts to read secrets or other credentials, including hex- or base64-obfuscated code.
Data theft
Moving data out of the lakehouse:
-
Unusual SQL Statement Execution API activity, especially repeated bulk reads. Distinguish submission, successful execution, result retrieval or destination writes, and the evidence supporting a data-transfer conclusion. Correlate statement IDs with available download, storage, and network records. Submission volume alone does not show that results left Databricks.
-
Python commands that move data — reading tables or files and writing them out to external storage or over the network.
Use system.access.table_lineage and system.access.column_lineage to identify implicated tables, paths, and columns. Join statement or workload identifiers to query history where available. Lineage captures only some activity. Neither a lineage row nor its absence is enough on its own to establish that data was exfiltrated or that no access occurred.
Persistence
The attacker establishes durable footholds so access survives a credential reset:
-
Minting new credentials — creating PATs, OAuth tokens, or service-principal secrets. Use
detect_access_token_createdfor PAT-creation leads and distinguish successful creation from failed attempts. OAuth-token issuance and service-principal-secret creation require separate investigation.detect_token_scanning_activityexamines use of existing PATs, not credential creation. -
Creating new identities — new users or service principals.
-
Creating new jobs — scheduled jobs that re-establish access or run attacker code on a timer.
Before drawing conclusions, check evidence coverage and interpretation for missing records, query pitfalls, and attribution limits.
Evidence coverage and interpretation
Coverage and time boundaries
-
Record the available audit history, affected workspaces, system-table enablement, and periods of reduced logging. Audit logs may arrive with some latency. Check the latest available event timestamps before interpreting recent activity.
-
Report an empty result as "no matching events found" for the named table, filters, and time range. It does not prove that an event did not occur.
-
Preserve timestamps in UTC before converting them for local reporting.
-
Verify content visibility before SQL-content searches. Query-history
statement_textis masked by default unless the reader is an account administrator or belongs todatabricks_pii_access. Some audit request parameters are also masked. Record the fields actually visible to the investigating identity. -
For customer-managed-key-protected query history, confirm the access and decryption configuration needed to view query text. If text is unavailable, work with your administrator or Databricks Support to resolve access before completing SQL-content searches. See query-history access and encrypted fields.
Query correctness
-
Use tested queries and verify the available
request_paramskeys before writing custom SQL. A wrong key can returnNULLinstead of an error. -
Confirm that an action name exists before concluding that it is absent. A discovery query such as
SELECT action_name, count(*) ... GROUP BY action_namecan distinguish an incorrect name from an empty result. -
Filter on the correct field. For example, IP access-list changes use
service_name='accounts'and can be recorded atWORKSPACE_LEVEL. Filtering only onaudit_level='ACCOUNT_LEVEL'can incorrectly return no rows. -
Configuration events may prove that a setting changed without recording its prior value. Collect configuration snapshots when the investigation requires historical diffs.
Interpretation limits
-
Severity is a triage aid, not a verdict. Corroborate high-severity events with timing, source, user agent, authorization, and surrounding activity.
-
Preserve failed and denied actions. They can reveal the route an actor tried before finding a successful one.
-
Activity submitted through notebooks, jobs, SQL warehouses, or serverless compute can appear from platform or compute network addresses. Correlate request IDs, actor identity, user agent, and upstream events before treating an IP address as an endpoint indicator.
-
For encoded SQL, the current Genie query reports
executed_by, while the scheduled notebook reportsexecuted_as. These fields can identify different principals for the same statement, so investigators should verify the submitter and run-as identity.
Evidence and correlation
-
Preserve the query, parameters, result set, collection time, and any transformations behind each conclusion.
-
Establish logging visibility first. Triage by the breadth of sensitive actions rather than raw login volume, then scope pivots to the relevant event families.
-
Correlate actors with source IPs, sessions, tokens, user agents, request IDs, workspaces, and affected objects.
-
Treat the agent as an investigation interface, not an authority. Review material findings with the incident-response team and build an attempt → change → effect timeline.
Investigation toolkit
Choose interactive Genie investigation or run the repository notebooks directly. Installing Genie is optional. See the tooling choices.
Genie setup
The Genie Agent requires Unity Catalog, a SQL warehouse, access to system.access.audit, and Genie access with CAN USE on the warehouse. Some detections also query system.query.history, which requires access to that table. Separately verify unmasked statement text, audit parameters, and data freshness using the evidence coverage checks. Table access alone does not establish complete content visibility. Genie runs queries with the asking user's applicable permissions.
Install the agent using the Git-folder method:
-
Create a Git folder from
https://github.com/databricks-solutions/cybersec-workspace-detection-app. -
Open
genie-agent/deploy/install_notebookand attach the required notebook compute. -
Fill in the
warehouse_id,space_id, andcreate_agentwidgets, then select Run all.
For a locked-down workspace that cannot reach GitHub, use the CLI installer from a local clone:
python genie-agent/deploy/install.py --profile <profile>
Both installation methods are re-runnable and embed queries in the Genie Agent. Review installer smoke-test errors and verify the required evidence tables before relying on coverage. Creating the space does not establish that every query ran successfully.
Run the visibility check before interpreting any other result: "Did anyone turn off verbose audit logging?" The trusted detection is detect_verbose_audit_logging_disabled. When verbose logging is disabled, some notebook- and command-level events are not recorded. The workspaceConfEdit event that records the setting change remains available and can help bound the gap.
The questions below are starting points. Include the incident's time window and any known identities, workspaces, IP addresses, or token identifiers in each question. Preserve the returned evidence, then investigate the strongest lead.
Detection reference
Task | Starter questions |
|---|---|
"Rank actors by the breadth of security-sensitive activity." "Which actor and source IP should the investigation examine first?" | |
"Which identities used non-SSO authentication?" "Did one identity, token, or session appear from multiple IP addresses or devices?" "Who created a PAT during the incident window?" | |
"Who changed an IP access list?" "Were there failed change attempts?" "Did denied logons change after the update?" | |
"Who enumerated secret scopes or read many distinct secrets?" "Did a credential scanner run?" "Who exported an unusual number of notebooks?" | |
"Which identities had unusual download volume?" "Were storage credentials, mounts, or external connections created?" "Were inline credentials used in SQL?" | |
"Which statements or submitted commands match encoded-payload patterns?" Inspect the content and execution outcome before concluding that decoded code ran. | |
"Who changed SSO, account settings, workspace settings, or administrative assignments?" "Who created users or changed group membership?" | |
"Were users, groups, or principals removed?" "Did administrative SQL activity spike?" "Which security controls changed before the destructive activity?" | |
"Did credential or token scanners run?" "Was there unusual secret enumeration?" | |
"Were users or PATs created immediately before an administrative activity spike?" |
Investigation triage
- Queries:
detect_investigation_triage - Coverage: Use at the start of any investigation. It ranks actors by the range of sensitive actions they performed, so analysts should also pivot on shared IPs and tokens to find distributed activity.
Account takeover and session hijacking
- Queries:
detect_non_sso_login,detect_token_scanning_activity,detect_session_multi_ip_logins,detect_session_multi_device,detect_session_high_count_per_ip,detect_access_token_created - Coverage: Account takeover. IP geolocation and ASN enrichment are not included in the Genie functions.
IP access controls
- Queries:
detect_ip_access_list_changes,detect_ip_acl_validation_failures,detect_denied_ip_logon_attempts - Coverage: Relevant to the account takeover and insider threat investigations. Audit events may not contain enough historical state to reconstruct every prior CIDR.
Secrets, credentials, and notebook exports
- Queries:
detect_secrets_discovery,detect_credential_scanner_activity,detect_bulk_notebook_export - Coverage: Data exfiltration and supply chain.
Data movement
- Queries:
detect_data_movement_downloads,detect_data_movement_explicit_creds,detect_data_movement_sql_queries,detect_bulk_notebook_export - Coverage: Data exfiltration.
COPY INTOloads data from external storage into a Delta table, so analysts must inspect the statement and surrounding activity before treating it as evidence of exfiltration.
Encoded execution
- Queries:
detect_encoded_command_execution - Coverage: Included in the data exfiltration and insider threat investigations. The supply-chain notebook does not currently include this detection.
Privilege, persistence, and configuration changes
- Queries:
detect_sso_config_changed,detect_config_changes_high_priority,detect_config_changes_account_level,detect_config_changes_workspace_level,detect_account_admin_granted,detect_workspace_admin_granted,detect_metastore_admin_granted,detect_group_changes,detect_user_account_created - Coverage: Insider threat. The repository does not currently provide dedicated detections for OAuth-secret creation, new service principals, or new jobs.
Ransomware and destructive activity
- Queries:
detect_user_account_deleted,detect_group_changes,detect_user_role_modified,detect_admin_sql_activity_spike,detect_verbose_audit_logging_disabled - Coverage: Ransomware. Access and storage impact still require correlation with Unity Catalog grants and cloud-storage evidence.
Supply-chain indicators
- Queries:
detect_credential_scanner_activity,detect_token_scanning_activity,detect_secrets_discovery - Coverage: Supply chain. This notebook does not currently inspect new libraries, jobs, or encoded commands.
Resource abuse
- Queries:
detect_admin_sql_activity_spike,detect_user_account_created,detect_access_token_created - Coverage: Resource abuse. The notebook does not inventory compute creation, duration, or ownership. Those questions require additional account, billing, and compute evidence.
Follow-up pivots
After finding a lead, use focused pivots:
-
What else did this actor do around the same time?
-
What other activity came from this source IP, token, session, or user agent?
-
Which configuration changes came from automation, and which came from an interactive client?
-
Did denied attempts precede a successful change?
-
What sequence connects the attempt, change, and observed effect?
Preserve data and evidence
The steps below focus on Delta table history and independent copies. For logs, notebooks, files, models, and external systems, use non-Delta preservation. Preserve evidence alongside containment, not as a prerequisite to stopping active abuse.
Use these procedures alongside the opening checklist. Replace every example account, workspace, table, identity, version and timestamp with the verified incident values. Use a trusted responder identity, preserve original settings and responses, and record the scope, operator, time and verification for each change. Public documentation links below use AWS unless another cloud is named. Use the matching cloud documentation and deployment endpoints for your environment.
The SQL examples use a 90-day hold and source version 123. Select the actual hold period with the incident and data owners, keep any longer existing retention, and use a restricted evidence catalog and schema.
Purpose. Keep an independent copy of the data that may have been accessible to the attacker, including relevant historical table versions. Do this alongside containment. Do not delay stopping active compromise. A deep clone preserves one selected snapshot. It does not establish what was actually taken and does not copy the source's transaction history. (Table history, Clone a table)
Identify tables and record the original state.
Work with the data owner to identify affected tables and the suspected access window. In restricted incident storage, save the following outputs, the UTC collection time, operator, and workspace/metastore identity:
DESCRIBE DETAIL prod.sales.orders;
DESCRIBE TABLE EXTENDED prod.sales.orders;
SHOW TBLPROPERTIES prod.sales.orders;
SHOW GRANTS ON TABLE prod.sales.orders;
DESCRIBE HISTORY prod.sales.orders;
Record whether delta.deletedFileRetentionDuration and delta.logRetentionDuration are explicitly set or absent, including their exact original values. Defaults are normally 7 days for deleted data files and 30 days for logs. They protect different things: time travel needs both the transaction history and the referenced data files. Increasing only log retention is insufficient. Save the original predictive-optimization state, including whether it is inherited. (Table history, Table properties, Predictive optimization)
Stop cleanup and extend both data and log retention.
Pause relevant maintenance jobs and external cleanup processes. Check running tasks as well as future schedules. Coordinate cloud-storage lifecycle/deletion rules with the storage owner. On Unity Catalog managed tables, predictive optimization can run VACUUM automatically. Record its state, then disable it for each affected table while arranging the hold:
ALTER TABLE prod.sales.orders DISABLE PREDICTIVE OPTIMIZATION;
For each affected Delta table, extend delta.logRetentionDuration beyond its default 30 days to cover the investigation, alongside the data-file hold in delta.deletedFileRetentionDuration. Delta log cleanup runs automatically after checkpoints, separately from VACUUM. Pausing VACUUM does not pause log cleanup. Choose a retention window that keeps the relevant versions available through the investigation, and never shorten an existing longer setting. This example uses 90 days for both settings. Set log retention first and keep it at least as long as deleted-file retention:
ALTER TABLE prod.sales.orders SET TBLPROPERTIES
('delta.logRetentionDuration' = 'interval 90 days');
ALTER TABLE prod.sales.orders SET TBLPROPERTIES
('delta.deletedFileRetentionDuration' = 'interval 90 days');
SHOW TBLPROPERTIES prod.sales.orders;
DESCRIBE TABLE EXTENDED prod.sales.orders;
Save the verified values and change times. Keep the retention safety check enabled. Never disable it for evidence preservation. The check protects against unsafe short retention and is not an incident hold. Property changes do not cancel a VACUUM already running or prevent an external storage administrator from deleting files. (Table properties, Predictive optimization, VACUUM)
Find explicit VACUUM calls and their retention arguments.
Inspect table history for VACUUM entries and their available parameters, user, compute, job and notebook identifiers. Historical logging varies, so the absence of entries does not prove that no VACUUM occurred. Query execution history provides another lead:
SELECT start_time, workspace_id, executed_by,
statement_id, statement_text, query_source
FROM system.query.history
WHERE start_time >= current_timestamp() - INTERVAL 30 DAYS
AND statement_text ILIKE '%vacuum%'
ORDER BY start_time DESC;
Review all relevant results, including calls using unqualified names or storage paths. Correlate them with table identity, query context, job runs, and audit logs. Search the affected workspaces. Query history is not a complete inventory: it covers SQL warehouses, serverless notebooks/jobs and supported pipeline execution, and statement text can be unavailable, masked or truncated. Classic notebook/job code and external applications need separate inspection. (VACUUM, Query history)
In Jobs & Pipelines, inspect scheduled, triggered and currently running maintenance jobs. The Jobs API lists definitions, not all executable source. Follow notebook paths, Python/SQL files, Git references, pipelines, imported libraries and externally orchestrated scripts. Search the actual executed source and runtime parameters for VACUUM, RETAIN, .vacuum(, retentionHours, deletedFileRetentionDuration, and retentionDurationCheck.enabled. Resolve dynamic variables because a wrapper may pass hours without writing a SQL RETAIN clause.
Inspect cluster/job Spark configuration too, including session defaults for newly created tables. Settings with the spark.databricks.delta.properties.defaults. prefix do not retroactively update existing tables. Change and verify each affected table's properties for the hold. (Jobs API, Delta Python API)
Version-sensitive detail: on older execution paths, explicit VACUUM ... RETAIN n HOURS or DeltaTable.vacuum(n) must be reviewed for a retention value that supersedes the table default. Do not assume a table-property change neutralizes them. Databricks Runtime 18.0 changes this: its release notes say VACUUM ignores the retention-duration argument except zero hours. Confirm how the actual runtime or warehouse behaves, and pause the maintenance process that calls VACUUM. Do not use that version difference as the evidence hold. (VACUUM, Delta Python API, Runtime 18.0)
For predictive optimization, inspect its separate operations history:
SELECT start_time, operation_type, operation_metrics
FROM system.storage.predictive_optimization_operations_history
WHERE catalog_name = 'prod' AND schema_name = 'sales'
AND table_name = 'orders' AND operation_type = 'VACUUM'
ORDER BY start_time DESC;
Save relevant records. This table's details are in operation_metrics, not operation_parameters. Predictive optimization follows the table's deleted-file retention setting. (Predictive optimization, Optimization history)
Make independent copies of the relevant versions.
Preserve the version active at the start of the suspected access window, even if it was committed earlier. Also preserve each materially relevant version introduced during the window. Record why each version was chosen.
Before cloning, check the table type, runtime, and any table-level or ABAC row filters and column masks against the documented restrictions. Where historical cloning is unsupported, coordinate another preservation method with the data owner and Databricks Support. Do not remove production protections merely to make a clone succeed. For an eligible table, use source SELECT access and the required CREATE/USE privileges in a restricted evidence catalog/schema:
CREATE TABLE ir_evidence.incident_20261026.orders_v123
DEEP CLONE prod.sales.orders VERSION AS OF 123
TBLPROPERTIES (
'delta.logRetentionDuration' = 'interval 90 days',
'delta.deletedFileRetentionDuration' = 'interval 90 days'
);
For a Unity Catalog managed evidence table, also disable predictive optimization on the target and verify its retention settings. Use a new target name per snapshot. Avoid CREATE OR REPLACE. Record the clone result, query/job identifier, source version, target table identity and creation time. Verify the target opens, inspect its metadata and compare appropriate counts/aggregates with the same source version. Verify effective target access, including inherited catalog/schema grants, and restrict evidence writes/deletion to the response custodians. Keep evidence out of application pipelines and maintenance jobs. (Clone a table)
A deep clone copies data files. A shallow clone references source data and is unsuitable as the independent preservation copy. Clone support has table-type/runtime limits: streaming tables and materialized views cannot be cloned. Source history, user-defined commit metadata and Unity Catalog tags are not copied, so preserve the original history and metadata exports separately. If files/logs have already expired, a historical clone may fail. Stop destructive cleanup and work with the storage owner/Databricks Support on existing backups or retained object versions. Changing retention does not restore deleted evidence. (Table history, Clone a table, VACUUM)
Preserve non-Delta evidence too.
A Delta clone does not preserve arbitrary volume files, notebooks, models, external database contents, or log records. Coordinate protected copies or provider-native snapshots with those owners. Preserve original paths, object versions, metadata, collection times and evidence manifests. Protect copies from the compromised identity and routine cleanup. Copy relevant audit and query results into restricted incident storage and retain the exact query, filters, collection time, and visibility gaps.
Release the hold deliberately.
After incident/legal approval, restore each original explicit property value. If originally absent, use ALTER TABLE ... UNSET TBLPROPERTIES IF EXISTS ('property_name') rather than inventing an original value. Restore deleted-file retention before reducing log retention. Restore predictive optimization to its saved ENABLE, DISABLE, or INHERIT state and resume only the reviewed maintenance jobs. Verify and record the final state. Keep evidence copies under their separate incident retention decision. (Table properties, Predictive optimization, Runtime 18.0)
Back to What to do first · Evidence preservation
Containment reference
Start with what you know and the scope you can control. Several procedures may apply to the same incident. One identity can have several authentication paths. Revoking its PAT does not remove its OAuth secrets, browser sessions, or credentials issued by Microsoft Entra ID.
Start with compromised administrators because they may be able to undo other containment changes. Use a trusted administrator identity on a clean device. Preserve evidence alongside containment, without delaying the response to active abuse.
Deactivation blocks an identity while retaining its credentials. Revocation deletes a particular credential. An ingress rule refuses matching requests but leaves the credential in place. Treat these as separate actions, and verify each one.
Start from what you know
What you know | Start here |
|---|---|
A specific credential is exposed | Use the credential procedures. |
A person or program is compromised, but you aren't able to remove all credentials | Block the identity while investigating its authentication paths. |
The affected identities are still uncertain |
Two response paths combine the relevant actions and handoffs:
- An actively misused service principal, including one that production depends on.
- A compromised user when you only administer an affected workspace.
For a precise recommendation from a report, go directly to PAT revocation, bulk PAT revocation, service-principal OAuth, federation, user OAuth, or browser sessions.
For Azure source identities, use the Entra user, Entra service principal, or managed identity guidance. If source access is unavailable, use Databricks-side containment.
Stop identified harmful workloads and begin downstream-credential response in parallel with access containment. Verify the affected paths and plan recovery rather than treating any one action as complete containment.
Contain an actively misused service principal
Use this path when a service principal is being used without authorization, including when production depends on it. Have the verified identity ID, affected account and workspaces, and a trusted administrator ready. An alert naming one secret does not establish that it is the only affected access path.
Account-level deactivation can interrupt legitimate workloads. The incident lead and workload owner must manage that disruption. Creating a new secret on an identity that remains blocked does not restore service.
-
Block access now. Have a trusted account administrator deactivate the principal. On Azure, also prevent provisioning from restoring access. Do not wait for a complete credential inventory or source-identity response.
If an account administrator is unavailable, contain the workspaces you administer. Request account-wide deactivation and its read-back result through a trusted account administrator or the incident lead. Record the accepting owner and next checkpoint, or mark the request unassigned and escalate. If you can only manage secrets, remove exposed secrets within your authority and report “Secret removed. Issued-token access not yet confirmed blocked.”
-
Stop ongoing harm in parallel. Have workspace and workload owners stop suspicious runs, queries, compute, and triggers. Preserve evidence without delaying that work. Ask affected system owners to address copied downstream credentials. Keep replacement credentials out of locations the attacker can still read.
-
Remove the ways back. Assign an owner to each applicable path. Use Databricks OAuth secret removal, PAT inventory and revocation, federation containment, and, where applicable, Entra service-principal or managed-identity containment. Review service-principal management grants, including delegated OAuth access, and remove unauthorized persistence. A pending request to another team remains pending remediation.
-
Verify the boundary and record gaps. Read back the principal's state and recheck it after provisioning. Confirm selected credentials were removed and suspicious work stopped. Review later operation results across the affected scope. Continued successful misuse means the intended boundary is not verified. Investigate the remaining path and escalate. Quiet or unavailable logs do not prove containment. Record covered workspaces, evidence times, and untested paths.
-
Restore production through a clean route. While containment runs, the workload owner can prepare a separate, verified clean identity, reviewed workload configuration, and only the required permissions. Deliver new credentials through a protected channel and confirm legitimate operation before reporting service restored. Follow the recovery checks. Keep the original principal blocked until its credential, delegation, provisioning, and persistence paths have been addressed.
Need another response path? Return to the action chooser.
Contain a user as a workspace administrator
Use this path when you administer an affected workspace but cannot change the Databricks account or identity provider. You can start without knowing whether the user used a PAT, OAuth, or a browser session. Verify the workspace host and the user's identity record there. Keep raw credentials out of the response record.
-
Block the user in your workspace. Use workspace-level deactivation with a separate, trusted workspace-administrator identity. Retrieve the user's record again and confirm
activeisfalse. This is a workspace action, not evidence that the account or other workspaces are covered.If the update fails or the user becomes active again, record access as not yet blocked. Where supported and within your authority, consider workspace IP restrictions or temporary PAT restrictions. Check disruption and preserve responder access. These are partial measures. PAT restrictions do not address OAuth or browser access, and an allowed network can still contain an attacker.
-
Stop harmful work in parallel. Stop identified malicious workloads and triggers, preserve their evidence, and revoke exposed workspace PATs you can identify. Do not wait for the credential type to be resolved before deactivating the user or stopping harmful work. A PAT inventory does not account for OAuth or browser sessions.
-
Hand off the uncovered scope. Ask a trusted account administrator to block the identity across the account, check other affected workspaces, and prevent provisioning from undoing the block where applicable. Ask the identity-provider owner to address source credentials and sessions. Send:
- The workspace host, workspace ID, verified workspace user ID, and account identity ID if confirmed. Resolve the account identity separately rather than assuming a workspace user ID is valid there.
- The observed activity, local changes, UTC times, and verification results.
- The requested wider actions and the evidence needed back. Name the pending owners and next checkpoint.
-
State exactly what is verified. Recheck local state and subsequent operation results, including after synchronization. State the latest evidence time and any log-coverage gaps. If the user remains inactive but wider actions are unconfirmed, report “Local inactive state confirmed. Account and other-workspace access unverified. Source-identity response pending.” If the update failed or reverted, report “Local access not yet blocked” and retain the wider unresolved scope. A successful local update or quiet logs cannot establish account-wide containment.
-
Keep recovery separate. Keep local containment in place until the incident lead and responsible owners review the exposed credentials, sessions, persistence, and restoration plan. Restore required work through a clean route. An unavailable account or identity owner is an unresolved dependency, not permission to reactivate the user.
Need a different action? Return to the action chooser.
Record the containment scope
For each affected identity, record its Databricks ID, whether it is a user or service principal, its administrative roles, and every account and workspace in scope. For each credential, record its type, issuer, management identifier, observed use, action, UTC change time, and verification result. Keep raw credential values out of reports.
Use the audit evidence to distinguish authentication paths. A tokenLogin event alone does not establish the credential type or prove an operation succeeded. Correlate authentication details, identity records, and subsequent operations. Mark an unknown path as unknown rather than treating the first credential found as the complete inventory.
Track three results separately: the change was accepted, the intended access boundary was verified, and recovery was approved. For a handoff, send the verified identifiers, affected scope, observed activity, changes and UTC times, requested action, and evidence needed back. Record the accepting owner and next checkpoint. An unassigned request or unavailable log source remains an explicit gap.
Revoke exposed credentials
Revoke a personal access token
- Who: A workspace administrator, or an account administrator using the Token report.
- Prerequisite: Workspace Token Management requires Premium or above.
- Applies to: PATs belonging to people or service principals.
- Effect: Permanently revokes the selected PAT.
Act now
Revoke the identified PAT without waiting for the rest of the inventory. For identity misuse, deactivate the owner, stop harmful workloads, and address downstream exposure in parallel.
Preserve token metadata, including the owner, workspace, creation time, and expiry, before revocation. A workspace administrator can permanently revoke the PAT through the workspace Token Management API or CLI. Select the token ID returned by Token Management after confirming its owner and workspace. Do not submit a raw token value, an OAuth application/client ID, or an OAuth secret ID. If the incident record has only a scanner hash, match it to the management inventory before deleting anything. Do not assume that an external tool uses the same identifier format. (Manage PATs, Token Management)
With an administrator profile configured for the affected workspace:
databricks token-management list --profile <workspace-admin-profile> --output json
databricks token-management delete <token-id> --profile <workspace-admin-profile>
The corresponding REST operations, on https://<workspace-host>, are:
GET /api/2.0/token-management/tokens
DELETE /api/2.0/token-management/tokens/{token_id}
The account Token report provides another revocation route for an account administrator, filtered to the intended owner and workspace.
If you cannot complete this action
If the token cannot be mapped or deletion fails, ask a trusted workspace or account administrator to revoke it using the verified owner, workspace, and management identifier. Do not guess an ID. Contain an identified compromised owner through deactivation or supported temporary PAT restrictions while revocation is unresolved.
Verify and recover
Confirm the selected token is absent and review later operation results. Do not test with the leaked token. Other credentials and sessions remain separate. For a trusted owner, replace the PAT through a protected channel after closing the exposure. For a compromised owner, keep the identity blocked and use a clean route under the recovery checks.
Export and revoke PATs across workspaces
- Who: An account administrator for the account report, or workspace administrators for workspace-by-workspace revocation.
- Prerequisite: Workspace Token Management requires Premium or above.
- Applies to: Several exposed PATs, or an identity whose affected PAT is not yet known.
- Effect: Revokes the selected PATs, with potential disruption to dependent jobs and integrations.
Act now
Export the inventory before revoking. Deactivate a compromised owner and stop harmful workloads in parallel rather than waiting for every workspace's inventory.
For an identified user, list their PATs and revoke every affected token. For example:
databricks token-management list --created-by-username <user-email> --profile <workspace-admin-profile> --output json
Review the returned identifiers, then use the Token Management delete operation to revoke each affected token. PATs are workspace scoped, so repeat across every affected workspace. An account administrator can also use Account console → Security → Token report to locate and revoke PATs across the account, filtering by owner and workspace. Export the report before revoking, so the case record retains the inventory of the tokens being removed. (Manage PATs, Token Management)
If you cannot complete this action
Without the account report, have each affected workspace administrator list and revoke PATs locally. Send the verified owner and workspace list, request the results, and assign missing workspaces to an account administrator. If revocation cannot finish, request temporary PAT restrictions where supported. Report uncovered workspaces explicitly.
Verify and recover
Reconcile the saved inventory with removal results per workspace. Report confirmed removals, uncovered workspaces, and pending owners. The report excludes OAuth secrets, federation, and user sessions. At recovery, replace credentials for trusted owners safely. Keep compromised owners blocked and restore work through a clean route. Revoke exposed PATs before lifting restrictions.
Contain service-principal OAuth
- Who: An account administrator or a responder with the required Service Principal Manager permissions.
- Applies to: Databricks-issued machine-to-machine OAuth using a service principal's secret.
- Effect: Deleting the secret stops new tokens being issued through that secret. It is not a complete response to tokens already issued.
If the principal is being actively misused, start with the service-principal response path. It covers immediate access blocking, parallel workload containment, limited permissions, and production recovery. The steps below remove Databricks OAuth secrets.
Act now
Deactivate an actively compromised principal and stop harmful workloads in parallel with secret removal. Coordinate disruption with the workload owner without leaving the compromised secret usable.
Identify the Databricks service principal and the leaked OAuth secret ID. Its numeric service-principal ID, OAuth application/client ID, secret ID, and secret value are distinct. List secret metadata, then delete the compromised secret. If the affected secret cannot be determined, contain the service principal and remove all potentially exposed secrets. Creating a replacement alone leaves the old secret usable. (OAuth M2M, Account secret management, Workspace secret proxy)
Using an authorized account-level profile:
databricks account service-principal-secrets list <service-principal-id> --profile <account-admin-profile> --output json
databricks account service-principal-secrets delete <service-principal-id> <secret-id> --profile <account-admin-profile>
The account API is:
DELETE /api/2.0/accounts/{account_id}/servicePrincipals/{service_principal}/credentials/secrets/{secret_id}
Use the account host. An account administrator or a responder with the required Service Principal Manager permissions must perform the operation. Where appropriate, the workspace proxy provides the same secret-management operation through the workspace host:
databricks service-principal-secrets-proxy delete <service-principal-id> <secret-id> --profile <workspace-profile>
DELETE /api/2.0/accounts/servicePrincipals/{service_principal}/credentials/secrets/{secret_id}
Databricks documents M2M access tokens as valid for one hour. During active compromise, keep the principal deactivated and apply relevant access or network restrictions while verifying containment. Before recovery, review its other secrets, PATs, federation policies, workspace assignments, and privileges. (OAuth M2M, Account secret management, Workspace secret proxy, Service principal deactivation)
If you cannot complete this action
The workspace secret proxy is another route for a responder with the required permissions, not a permission bypass. If neither route works, send the verified principal and secret IDs to its manager or an account administrator. Request identity deactivation while removal is pending. Removing only a secret does not confirm that issued-token access is blocked.
Verify and recover
Confirm selected secret IDs are absent. Separately verify identity state and later operations. Report secret removal and issued-token blocking as distinct results, with pending scope and owners. Review other credentials, federation, and management or delegated OAuth grants. For recovery, use the clean route in the service-principal path. A new secret on a blocked identity does not restore service.
Contain federation
- Who: An account administrator, with the owner of the external identity provider or workload.
- Applies to: Workload identity federation and account-wide federation policies.
- Effect: Removes or narrows a trust path through which external identities can obtain Databricks tokens without a stored OAuth secret.
Act now
Deactivate a compromised Databricks identity while changing its trust. Stop harmful workloads in parallel. Removing a trust alone does not establish that issued tokens have stopped working.
- Preserve the affected principal's federation policies and the account-wide federation policies. Record the trusted issuer, audience, subject restrictions, and owners.
- Remove unauthorized policies. For a legitimate but compromised workload, contain its external identity or execution environment and remove or narrow the affected trust.
- If issued tokens may still be in use, deactivate the Databricks identity rather than relying only on the trust change.
See workload federation policies, service-principal policy commands, and account policy commands.
If you cannot complete this action
If you cannot change the trust, send the principal, policy ID, issuer, audience, and subject to an account administrator. With only workspace authority, block the local identity. Ask the external owner to contain issuance and execution. Retain Databricks containment and record unaccepted handoffs for escalation. Deleting an OAuth secret does not remove federation.
Verify and recover
Read back trust and identity state, then review later operations. Record trust removal, verified blocking, and unresolved issuance separately, with pending owners. Before recovery, have the external owner confirm clean execution and reviewed trust conditions. Keep compromised identities blocked, using the clean workload route. Do not recreate unchanged compromised trust to restore production.
Contain user OAuth
- Who: An account administrator and the identity-provider team.
- Applies to: A person's Databricks OAuth access and refresh tokens, including OAuth used by command-line tools and partner applications.
- Effect: Account-level deactivation blocks the person's Databricks access while the response addresses existing sessions and new sign-ins.
Act now
- Deactivate the user at account level.
- Disable the compromised identity at the identity provider and address its sign-in methods and sessions. For Azure, use the Entra user procedure.
- Before reactivation, determine which OAuth applications and refresh-token sessions were exposed. Confirm the applicable expiration or revocation path with Databricks Support where needed. Do not assume a one-hour access-token lifetime ends access when a refresh token remains usable.
- Identify service principals accessed through delegated OAuth and contain those identities. The user's inactive state does not establish that sessions acting as a service principal are blocked.
Stop harmful workloads and remove persistence in parallel, including credentials or application access created during the compromised session.
If you cannot complete this action
With only workspace access, follow the workspace-user response path and request account-wide deactivation. If the identity-provider owner is unavailable, retain Databricks containment and hand off the affected user and exposed applications. A request for assistance does not establish that sessions were revoked.
Verify and recover
Verify the user remains inactive and review later operation results. Deactivation retains credentials, which can become usable after reactivation. Removing OAuth consent for the user making the request does not invalidate existing tokens. Neither local CLI logout nor a password reset establishes server-side session containment. See OAuth U2M.
Keep access blocked until the responsible owners confirm how exposed access tokens, refresh tokens, and new sign-ins are addressed. If that cannot be established, restore required work through a clean route and keep this user's reactivation pending under the recovery checks.
Contain browser sessions
- Who: An account administrator and the identity-provider team.
- Applies to: A person's existing Databricks web sessions.
- Effect: Deactivation blocks the user's access. Signing the user out of the identity provider alone does not establish that an existing Databricks session has ended.
Act now
- Deactivate the user at account level and contain the identity-provider account.
- Investigate changes made through the browser, including new credentials, application consent, privileges, and scheduled work.
- Before reactivation, confirm that exposed Databricks sessions have expired or that an appropriate revocation action has been completed. Ask Databricks Support to confirm the available options if this cannot be established.
Stop harmful workloads in parallel. PATs and other credentials created during a session need separate revocation. See user deactivation and user OAuth.
If you cannot complete this action
If account administration is unavailable, use the workspace-user response path and request wider deactivation. Send the verified user, affected workspaces, exposed sessions, and observed changes to the identity owner. Keep source sign-out and Databricks session remediation separate in the handoff.
Verify and recover
Confirm the user remains inactive, investigate later successful operations, and verify that identified harmful work has stopped. Remove persistence and address session validity before recovery. Quiet browser activity or identity-provider sign-out alone is not a safe reactivation criterion.
Block compromised identities
Deactivate a Databricks identity
- Who: The account-host procedure requires an account administrator. Workspace administrators can start with the workspace-scoped route shown below.
- Applies to: A compromised user or service principal, especially when its credential inventory is incomplete.
- Effect: Blocks access while retaining the identity, credentials, permissions, and objects. Reactivation can restore access through credentials that were not revoked.
Act now
Block the verified identity without waiting for its complete credential inventory. Stop harmful workloads and address copied downstream credentials in parallel.
Use account-level deactivation when the identity itself may be compromised. It blocks access to the account and all its workspaces while preserving the identity's objects and permissions for investigation. A workspace-level deactivation blocks only that workspace. It leaves the account and other workspaces accessible. Prefer deactivation over deleting the identity during response. (Manage users)
Identify the administrative scope.
The account-host procedure below requires account-administrator authority. Workspace administrators can start with the workspace-scoped procedure shown later. Verify the scope and authority of the actual route used rather than inferring account-wide coverage from a workspace role or a successful request. Use a separate, trusted administrator identity for the response. (Manage users) (Identity management)
For account operations, use the appropriate account host:
Cloud | ACCOUNT_HOST |
|---|---|
AWS |
|
Azure |
|
GCP |
|
These are the standard commercial-cloud hosts. Use the account console host for the actual deployment if it differs. Authenticate with an account-level administrator credential, such as a Databricks OAuth token. A workspace credential is not interchangeable with an account credential. (AWS authentication) (Azure authentication) (GCP authentication)
Resolve the Databricks identity and save its current record.
Look up a user by its exact Databricks userName, normally an email address, and use the returned SCIM id for subsequent requests. Save the response, account/workspace scope, request time, and administrator used in the incident record. Confirm the result identifies the intended person before making the change. (Account SCIM API)
GET {ACCOUNT_HOST}/api/2.1/accounts/{ACCOUNT_ID}/scim/v2/Users?filter=userName%20eq%20%22user%40example.com%22
Authorization: Bearer {ADMIN_OAUTH_ACCESS_TOKEN}
The matching identity is in Resources. Its id is the Databricks SCIM identifier. It is not the user's email address or the identity provider's object ID. For a service principal, use the ServicePrincipals endpoint and exact applicationId filter. The returned SCIM id is distinct from its OAuth Application (client) ID. (Account SCIM API)
Deactivate at the account level.
Apply the following PATCH to the verified SCIM ID. These account requests use the documented SCIM v2.1 endpoint. This payload follows the Databricks deactivation example. (Manage users)
PATCH {ACCOUNT_HOST}/api/2.1/accounts/{ACCOUNT_ID}/scim/v2/Users/{SCIM_USER_ID}
Authorization: Bearer {ADMIN_OAUTH_ACCESS_TOKEN}
Content-Type: application/scim+json
{
"schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
"Operations": [
{"op": "replace", "path": "active", "value": [{"value": "false"}]}
]
}
For a service principal, use the same PATCH body with:
PATCH {ACCOUNT_HOST}/api/2.1/accounts/{ACCOUNT_ID}/scim/v2/ServicePrincipals/{SCIM_SERVICE_PRINCIPAL_ID}
Then GET the identity by ID and confirm active is false. Save the result and check relevant audit logs for subsequent activity. (Manage users) (Manage service principals)
If necessary, contain one workspace first.
Use a separate, trusted workspace-administrator identity and an OAuth access token authorized for the affected workspace. Account-administrator permissions are not required for this workspace-scoped request. Resolve and verify the user on the workspace host:
GET https://{WORKSPACE_HOST}/api/2.0/preview/scim/v2/Users?filter=userName%20eq%20%22user%40example.com%22
PATCH https://{WORKSPACE_HOST}/api/2.0/preview/scim/v2/Users/{WORKSPACE_SCIM_USER_ID}
Send the PATCH to the verified workspace user with the workspace administrator's OAuth token:
PATCH https://{WORKSPACE_HOST}/api/2.0/preview/scim/v2/Users/{WORKSPACE_SCIM_USER_ID}
Authorization: Bearer {WORKSPACE_ADMIN_OAUTH_ACCESS_TOKEN}
Content-Type: application/scim+json
{
"schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
"Operations": [
{"op": "replace", "path": "active", "value": [{"value": "false"}]}
]
}
GET the same user resource afterwards. Confirm the user still exists and active is false. Recheck after provisioning and review subsequent operation results. If the update fails or the status reverts, record the workspace block as unresolved and escalate. Do not substitute an account host or an unverified identity ID.
Resolve and confirm the ID in that workspace. This API also provides the legacy path for workspaces without identity federation. Repeat containment in every affected workspace or have an account administrator apply account-wide deactivation. For workspace service principals, the administrator can open Settings → Identity and access → Service principals → Manage, select the principal, and clear Active. (Manage users) (Manage service principals) (Workspace Users API)
Keep the identity disabled and close related access paths.
Ask the identity-provider team to align the source identity and provisioning with containment. On Azure, prevent automatic reprovisioning or reactivation using supported Databricks controls without waiting for source-side access. Recheck identity state after synchronization.
Which identity API should responders expect?
Use account-level identity management as the main procedure. Databricks enables identity federation for all new workspaces, and the user-management documentation describes it as the default for most workspaces. Verify the workspace's identity-federation status and the identity's account record before choosing the response scope. (Manage users) (Identity management)
Discover the environment's actual topology: in the account console, open the workspace and look for Identity federation: Enabled. Account-level deactivation is the broad containment action. The workspace API remains useful for immediate single-workspace containment and older deployments. Do not infer containment coverage from the fact that a SCIM API call succeeded. Even users added to legacy non-federated workspaces are added to the account, and matching usernames are merged into one identity. Legacy workspace-local groups remain distinct from account groups. (Identity management)
If you cannot complete this action
Without account authority, use workspace-level deactivation where you administer access. Send the verified identity and covered workspaces to a trusted account administrator for the wider block. If state reverts, address provisioning and request a supported ingress denial. Treat these as separate controls, not proof that deactivation succeeded.
Verify and recover
GET the identity and confirm it still exists with active set to false. Recheck after provisioning and review later operation results by event time. If the change fails or reverts, mark the block unresolved. Before recovery, address retained credentials, sessions, provisioning, and persistence. Do not reactivate merely because a replacement secret is ready.
Plan B when you cannot access Entra ID
- Who: A Databricks account administrator. Entra administrator permissions are not required for the Databricks-side controls below.
- Applies to: An Entra identity whose source credentials or sign-in sessions you cannot currently remediate.
- Effect: Blocks or restricts access to Databricks while the Entra response is pending. It does not revoke the Entra credential or protect other applications.
Act now
- Deactivate the identity at Databricks account level. Use a separate, trusted administrator. Do not wait for access to Entra ID before starting this action.
- Prevent provisioning from restoring access. The supported AIM account access denylist is managed in Databricks, without first disabling the source identity in Entra.
- Where available, deny the identity through context-based ingress as a separate request-level control. Verify its supported paths, enforcement, and scope.
- In parallel, stop harmful workloads, address copied downstream credentials, and remove exposed Databricks PATs, OAuth secrets, and federation trusts.
- Send the Entra owner the verified identity, observed activity, local changes, and source-side actions needed. Record the accepting owner and checkpoint. Entra token issuance and other applications remain outside this Databricks-only response.
If you cannot complete this action
If you have only workspace access, follow the workspace-user response path, or workspace service-principal deactivation. Request account-wide coverage separately.
Without the denylist or CBI, use available deactivation and supported workspace IP or existing private-connectivity restrictions. These do not provide equivalent identity blocking. Recheck for reactivation and allowed-network misuse. If no effective boundary can be maintained, mark the affected paths not yet contained and escalate to the incident lead.
Verify and recover
Record which Databricks controls are verified in which workspaces and at account level, including after synchronization. Keep Entra remediation pending until its owner confirms it. No Databricks block revokes an Entra credential. Maintain containment until the recovery checks cover the source identity, retained credentials, and sessions.
Contain a Microsoft Entra user
- Who: A Databricks account administrator for immediate Databricks containment. A Microsoft Entra administrator completes the source-identity response.
- Applies to: Azure Databricks users authenticating through Microsoft Entra ID.
- Effect: Databricks containment blocks access in Databricks. Entra containment addresses new sign-ins and the compromised source identity.
Act now
- Deactivate the user in Databricks.
- Prevent reprovisioning or reactivation using the supported Databricks controls while coordinating the Entra response.
- Have the Entra administrator disable the user, revoke sign-in sessions, and address the compromised password, authentication methods, and unauthorized application consent.
- Review both Azure role assignments and Databricks administrative roles if the user had elevated access, with the administrator for each system.
In parallel, stop harmful workloads and address exposed Databricks credentials and sessions. See Microsoft's access-revocation guidance.
If you cannot complete this action
Use Databricks-side containment while Entra actions are pending. If you only administer a workspace, start with the local user path. Send the verified user, tenant, affected scope, and requested sign-in/session changes to the Entra owner. Do not treat an unaccepted request as completed source remediation.
Verify and recover
Verify the Databricks user remains inactive after synchronization. Obtain the Entra owner's action results and review later activity in both systems. Entra disablement or sign-out alone does not establish that issued tokens or separate Databricks credentials are invalid. Keep the user blocked until recovery addresses those paths.
Contain an Entra service principal
- Who: A Databricks account administrator can start containment. A Microsoft Entra administrator and the Azure resource owner complete the source-side changes.
- Applies to: An Entra-managed service principal used with Azure Databricks.
- Effect: Separates immediate Databricks blocking from source-side credential and sign-in changes in Entra.
Act now
- Deactivate the Databricks service principal during active or uncertain compromise.
- Copy the service principal's Application ID from Databricks and match it to the Entra application (client) ID. Look up both the app registration and the enterprise application. The app registration holds application credentials. The enterprise application represents the service principal in the tenant. Do not substitute a Databricks SCIM ID for the client ID.
- Preserve credential metadata, then remove compromised client secrets, certificates, and federated credentials at the appropriate Entra object. Disable the enterprise application's sign-in. If another organization owns the app registration, coordinate credential changes with that owner.
- Remove inappropriate Azure workspace role assignments and Databricks administrative roles. Address both rather than assuming that removing one removes the other.
- Check its Databricks PATs, OAuth secrets, and federation policies. Keep provisioning from restoring access.
Stop harmful workloads and address copied downstream credentials in parallel. See Azure Databricks service-principal management, Microsoft's application and service-principal model, and disabling enterprise-application sign-in.
If you cannot complete this action
Use Databricks-side containment while the Entra owner acts. Send the verified client ID, tenant, enterprise application, app-registration owner, and affected credentials. A different app owner or unavailable administrator is a named dependency, not a reason to delay the Databricks block. For production, prepare the clean replacement route.
Verify and recover
Confirm the Databricks principal remains inactive and the Entra owner changed the intended application in the intended tenant. Reconcile every credential path with a result. Deleting an Entra secret does not invalidate Databricks-native credentials or prove issued tokens unusable. An Azure managed identity needs its own procedure. Keep pending checks visible at recovery.
Contain an Azure managed identity
- Who: A Databricks account administrator and the owner of the affected Azure resource.
- Applies to: System-assigned or user-assigned Azure managed identities used to access Databricks.
- Effect: Blocks Databricks access while the cloud team addresses the resources and trusts that can obtain tokens for the identity.
Act now
- Deactivate the corresponding Databricks service principal.
- Secure the Azure resource that can request the managed identity's tokens. Review code execution, resource administration, identity assignments, and role assignments with the resource owner.
- Remove access or identity assignments as appropriate for that resource and identity type. Managed identities have no customer-managed client secret to rotate.
- For a user-assigned identity, review all resource attachments and its federated identity credentials. Remove unauthorized trusts and contain other resources or external workloads that can still obtain tokens.
Stop harmful Databricks workloads and address downstream exposure in parallel. See managed-identity security guidance and user-assigned identity federation.
If you cannot complete this action
Keep Databricks-side containment in place and send the resource owner the verified resource, managed identity, tenant, and observed token use. Ask for containment of the resource's token-issuance path. An unavailable owner leaves that path unresolved. Do not assume the AIM denylist supports this identity.
Verify and recover
Verify the Databricks block separately from the resource owner's Azure changes. Token caching can delay permission or assignment changes. Do not infer completion from an assumed lifetime. Before recovery, address every identified token-acquisition path, including other attachments and federated trusts, and restore workloads through reviewed identities and permissions.
Prevent automatic reprovisioning or reactivation
- Who: A Databricks account administrator and the identity-provider team.
- Applies to: Azure identities managed through automatic identity management, or identities whose provisioning can override a manual change.
- Effect: For supported AIM identities, denylisting prevents provisioning or sign-in from restoring access. Durable prevention for other provisioning modes needs its own verified change.
Act now
- For supported identities under Azure automatic identity management, use the account access denylist. An account administrator manages it in Databricks under Security → Identity provider setup → Automatic identity management. You do not need to disable the source identity in Entra first.
- Keep Databricks deactivation in place while this control takes effect. Deleting an identity only in Databricks is not a durable way to prevent an externally managed identity from returning.
- Ask the identity-provider team to align the source identity's status and provisioning configuration with containment. Track this separately if that team is unavailable.
- Check the scope before denying a group because its transitive members are included. The documented propagation time is up to 10 minutes. Keep other containment in place and verify the actual result rather than relying on the timer.
See the Azure account access denylist.
If you cannot complete this action
If the denylist is unavailable or the identity is unsupported, ask the provisioning owner to stop the path that restores access. Meanwhile, retain deactivation, recheck for reactivation, and request a supported identity ingress denial. An ingress rule covers only its supported requests. If neither boundary holds, report access as unresolved and escalate. Stop harmful workloads separately.
Verify and recover
Read back denylist membership and identity state after synchronization. Investigate any reactivation or re-creation. Denylisting does not revoke stored credentials, and managed-identity support must be confirmed. At recovery, coordinate any denylist removal with credential cleanup and the provisioning owner. Do not remove the block just to test whether the identity returns.
Limit access while scope is uncertain
- Who: The incident lead with account, workspace, network, and workload administrators.
- Applies to: An incident where affected identities or authentication paths are not yet known.
- Effect: Reduces reachable access while investigation establishes which boundaries need blocking.
Act now
- Preserve the available identity, credential, and activity inventories. Revoke confirmed exposed PATs, but do not treat the PAT report as an OAuth or session inventory.
- Deactivate identified compromised identities, starting with administrators. Continue resolving unknown identities.
- Restrict ingress to verified trusted sources or supported request types, covering affected workspaces and the separate account policy. Preserve responder access and check legitimate integrations.
- In parallel, stop harmful workloads, remove persistence, and contain downstream exposure. Network restrictions do not establish that running work has stopped.
The companion browser-access and remote-API pattern requires CBI and leaves permitted browser access open. It is not a fallback for unavailable CBI.
If you cannot complete this action
Without CBI, ask workspace/network owners to tighten supported workspace IP access lists or existing private connectivity. Allowed networks can still contain an attacker. With only workspace authority, use the local user path for identified users and hand off missing identities, workspaces, and account controls to named owners. Do not perform an account-wide PAT purge merely because the inventory is incomplete.
Verify and recover
Report verified restrictions and their scope, partial protection, or no verified boundary. List uncovered identities, paths, workspaces, and account controls. Check state and later operations. Unavailable logs remain gaps. Keep restrictions until a scoped recovery decision, rather than treating a quiet interval as proof of containment.
Temporarily restrict PAT use
- Who: A workspace administrator.
- Applies to: A workspace where the affected PAT inventory is uncertain.
- Effect: Temporarily blocks PAT authentication. This is distinct from deleting the tokens.
- Prerequisite: Fine-grained token permissions require Premium or above.
Act now
Use a temporary restriction when the unresolved PAT risk justifies its disruption. Continue to deactivate compromised identities, revoke identified PATs, and stop harmful workloads in parallel.
If the scope is uncertain and the operational impact is acceptable, a workspace administrator can temporarily disable PAT authentication through Workspace Settings → Advanced → Personal Access Tokens. This blocks PAT creation and use throughout that workspace and disrupts PAT-dependent scripts and integrations. It does not disable OAuth or browser sign-in. It also does not delete PATs: unexpired tokens can work again if PAT authentication is re-enabled. Permanently revoke compromised tokens before restoring this setting. (Manage PATs)
For narrower temporary containment, remove a non-admin principal's effective CAN USE token permission, considering grants inherited from groups such as users. Tokens become unusable while the permission is absent and become usable again if it is restored. Workspace administrators retain CAN MANAGE through admins. This is not a reliable way to contain an administrator. If the identity itself is compromised, deactivate it using the identity-containment procedure as well. (PAT permissions)
If you cannot complete this action
If you cannot change the workspace setting or effective permission, send the affected scope to a trusted workspace administrator. Request identity deactivation for known compromised owners. Permission removal is not a reliable administrator block, and PAT restrictions do not address OAuth or browser access.
Verify and recover
Read back the setting or effective permission and review later PAT operation results. Before restoring use, revoke compromised PATs because unexpired tokens can work again when restrictions lift. A short maximum lifetime applies to new PATs, not existing ones. See PAT lifetime controls.
Restrict ingress
- Who: An account administrator, with network and workload owners.
- Applies to: Supported account and workspace ingress paths.
- Effect: Refuses requests that do not meet the policy. It does not delete credentials.
Act now
Use promptly validated trusted rules during active abuse. Do not wait for a helper run or a representative traffic sample. In parallel, deactivate compromised identities, revoke exposed credentials, and stop harmful workloads.
Context-based ingress (CBI) lets an account administrator restrict incoming access using network source, identity, and request type. Use it alongside credential revocation and identity deactivation to reduce access from untrusted networks. Confirm the current tier, region, and supported access paths in the documentation for your cloud. Ingress governs incoming connections, so contain attacker-controlled running workloads and outbound access separately. (Workspace CBI procedure) (CBI overview)
Record the existing configuration and trusted access requirements.
Save the current network-policy assignment and rules, workspace IP access lists, and private-connectivity configuration. Identify trusted administrator access, corporate/VPN egress IPs, service principals, automation, BI tools, and private endpoints. Keep a trusted recovery administrator available. Existing workspace IP access lists and CBI both must allow a request. Introducing CBI does not bypass an existing IP restriction. (Workspace CBI procedure) (CBI overview)
Use the network policy helper to propose candidate rules.
The Databricks Network Policy Helper analyzes observed traffic and produces candidate ingress policies. After obtaining and setting up the tool as its README describes, run from its checkout:
uv sync
uv run dbx-nwp-helper ingress --profile <workspace-profile> --warehouse-http-path <existing-warehouse-http-path> --lookback-days 30
Without --create-policy, this command proposes a policy without creating or changing network policies. The example uses an existing warehouse. If the warehouse flag is omitted, the helper may reuse or create a small serverless warehouse. Analysis needs read access to the system tables and warehouse access. Applying or assigning a policy requires separate account-administrator credentials. (Network Policy Helper README)
Review every proposed source. Observed traffic can include the attacker, and a 30-day sample can omit legitimate infrequent clients. The helper also includes dry-run denial traffic as candidates when available. A denied request is not evidence that its source should be trusted. Confirm candidates against known corporate networks, workload owners, and incident findings. Treat threat-intelligence labels as context, not proof. (Network Policy Helper README)
Prepare a restricted policy without weakening existing controls.
In the account console, open Security → Networking → Policies → Context-based ingress & egress control → Workspace level policies. Create a named policy rather than modifying the shared default. A workspace has one attached network policy, so preserve its reviewed ingress and egress restrictions and enforcement settings when preparing a replacement. Do not replace an enforced containment boundary with nonblocking dry run.
On Ingress, choose Restrict access based on request context and add explicit allows for trusted sources, identities, and required access types. Cover the supported Workspace UI, API, Apps, and Lakebase paths actually in use. For Azure private access, existing databricks_ui_api endpoints remain allowed by default. If access through these Azure private endpoints must be blocked, use the documented Azure workspace Private Link deny source. Verify trusted responder access before enforcement. Registered-endpoint allow rules alone do not establish that block.
Use a dry-run trial only where it does not weaken an existing boundary. Otherwise validate proposed changes against trusted clients and evidence while retaining enforcement. See the workspace CBI procedure and Azure private-access rules.
Attach, observe, and enforce.
Open Workspaces → affected workspace → Network Policy → Update network policy, select the policy, and click Apply policy. Creation, updates, and attachment typically need 10–15 minutes to propagate, with potentially inconsistent enforcement during that window. Dry run logs violations but blocks nothing. Inspect:
SELECT *
FROM system.access.inbound_network
WHERE event_time >= CURRENT_TIMESTAMP() - INTERVAL 2 HOURS
ORDER BY event_time DESC;
The Unity Catalog access system schema must be enabled and accessible, and logs can lag. If using a safe dry-run trial, review DRY_RUN_DENIAL events and fix legitimate access gaps before selecting Enforced for all products. Keep existing enforcement in place when trialing would weaken it. After propagation, verify approved access succeeds and an authorized untrusted-source test is denied. Confirm the intended policy remains attached to each workspace and that reviewed egress restrictions still apply. See the workspace procedure and CBI overview.
Confirm the remaining scope.
Repeat the assignment and verification for every affected workspace. Account-console and account-API ingress uses a separate account-level policy. A workspace policy does not establish account-level containment. Confirm the account-level policy's supported controls before changing that policy. If CBI is unavailable, tighten supported workspace IP access lists or existing private-connectivity controls using verified trusted sources, while continuing credential and identity containment. Preserve recovery access and verify both expected allows and denials. During active compromise, use promptly validated known-good rules rather than waiting for a long traffic sample to become representative.
If you cannot complete this action
Without CBI or account authority, ask workspace/network owners to tighten supported workspace IP or existing private-connectivity restrictions. Send the affected hosts, access paths, known trusted sources, and responder requirements to the account administrator. These are partial alternatives, not equivalent policy coverage. If logs are unavailable, request them from their owner and keep enforcement verification pending.
Verify and recover
Check policy attachment, enforcement mode, and actual request results for every affected workspace and the separate account policy. Inspect system.access.inbound_network for denials, allowing for log delay. Verify responder access still works. Attackers connecting from allowed sources and access through unsupported paths remain separate risks. At recovery, relax only reviewed rules rather than restoring a possibly compromised policy wholesale.
Deny an identified principal at ingress
- Who: An account administrator.
- Applies to: Supported user and service-principal identity rules in a restricted CBI policy.
- Effect: Adds a request-level block while credential and identity containment proceed.
Act now
Deactivate the compromised identity and stop harmful workloads in parallel. Use ingress denial as an additional supported boundary, not as credential revocation.
- Preserve the current policy, allow rules, and assignments. Confirm the intended principal by its identity record.
- In a policy that restricts access based on request context, add a deny rule for the selected identity and the supported access types that need blocking. Check both API and workspace UI access.
- Apply the change to every relevant policy and workspace. Review the separate account-level policy's supported controls instead of assuming a workspace rule covers the account.
If the policy allows all sources, use the shared restricted-policy setup, including explicit allows for legitimate traffic. A deny rule alone is not a safe replacement.
See workspace ingress rules and account ingress rules.
If you cannot complete this action
If identity conditions are unsupported, request deactivation and available source-network restrictions instead. Give the account/network owner the verified principal, policies, affected workspaces, and required responder access. Record unsupported private, runtime, or token-issuance paths explicitly. Do not claim a workspace rule covers an untested account or runtime path.
Verify and recover
Confirm enforcement and actual deny results after propagation, plus continued trusted responder access. A policy-save response is not a denial result. Keep uncovered paths and credential remediation open. Remove the identity rule only through the recovery review, after verifying the remaining boundaries.
Close remaining access paths and recover
Credential or identity containment does not establish that work already submitted has stopped, that persistence is gone, or that copied downstream secrets have been invalidated.
Stop suspicious workloads
- Who: Workspace administrators and workload owners.
- Effect: Stops identified execution and retriggering. Identity blocking alone does not establish that submitted work has stopped.
Act now
Identify suspicious jobs, schedules, active runs, SQL queries, and compute. Preserve evidence, cancel malicious execution, and disable unauthorized triggers. Check external schedulers and execution under other identities. Coordinate disruption without waiting to finish investigation. In parallel, block compromised identities and contain copied downstream credentials.
If you cannot complete this action
Send the workspace, workload/run/query/compute identifiers, observed harm, and requested stop or trigger removal to the workspace or workload owner. Ask the incident lead to coordinate broader disruption if targeted shutdown fails. Keep identity and network blocks in place, but report execution as unresolved until stopping it is verified.
Verify and recover
Confirm the identified work stopped and its triggers cannot restart it. Record completion times separately from credential changes. At recovery, use reviewed code, configuration, clean credentials, and approved triggers. See user deactivation and service-principal deactivation.
Remove persistence
- Who: Account and workspace administrators, with the investigation team.
- Effect: Removes identified ways to regain access or restart harmful activity.
Act now
Block compromised administrators before cleanup they could undo. Preserve and remove unauthorized credentials, trusts, identities, roles, grants, jobs, notebooks, Git credentials, and network-policy changes. Review against a trusted baseline and the incident timeline. See persistence investigation and the investigation toolkit.
If you cannot complete this action
Send the verified object or grant, scope, evidence, and requested change to its administrator or owner. Keep the affected identity blocked. An object you cannot inspect, or an undocumented change you cannot validate, remains pending investigation rather than presumed legitimate. Track the owner and next checkpoint.
Verify and recover
Check that the objects were removed and retrieve effective permissions again, including inherited grants. Check identified recreation paths through administrators, delegation, provisioning, and automation. Record unreviewed scope. Before recovery, obtain owners' review of retained configuration. An unreviewed pre-containment snapshot can restore persistence.
Rotate downstream secrets and contain cloud access
- Who: The security team and each affected cloud or system owner.
- Effect: Addresses access outside Databricks that can survive Databricks credential revocation.
Act now
Inventory potentially read credentials in secret scopes, notebooks, files, tables, and connected systems. Have each issuer rotate or revoke them. Deleting a stored Databricks secret does not invalidate a stolen copy. Stop harmful workloads in parallel and deliver replacement secrets only to clean consumers.
Include cloud credentials obtainable from compute and previously issued data-access links. Check their issuer and storage/cloud logs separately. See stored-secret controls and data preservation.
If you cannot complete this action
Send the issuer/system owner the credential identifier, exposed resource, incident window, and requested revocation without copying secret values. Ask for supported resource or network restrictions while revocation is pending. If no owner accepts the handoff, escalate through the incident lead. Databricks containment does not close this downstream gap.
Verify and recover
Record replacement issuance, old-credential invalidation, and outstanding temporary credentials or links separately. Require issuer evidence or confirmed applicable expiry, not just acknowledgment. At recovery, confirm clean consumers use replacements and the exposure is removed. Retain restrictions for unresolved paths and record their narrower effect.
Verify containment and restore access
- Who: The incident lead, account administrator, identity team, and workload owners.
- Effect: Separates verified containment from permission to restore service or reactivate an identity.
Act now
- Classify each path as invalidated/expired, blocked by a verified continuing control, or open/unverified. Record actions, evidence, UTC times, and covered workspaces.
- Review later authentication, operation, and network results. Distinguish event time from arrival time and allow for log delay. Quiet logs do not prove containment.
- Confirm identities remain blocked after synchronization, harmful work stopped, persistence was removed, and downstream owners completed their actions.
- Prepare clean workload identities, reviewed configuration, minimum required permissions, and protected credential delivery. Service can recover through a clean route while the original identity remains blocked.
- If unauthorized writes or deletion are possible, preserve the affected state before repair. Have data owners identify affected objects and downstream outputs, validate a known-good recovery point, and approve integrity checks before consumers resume.
If you cannot complete this action
Keep the affected blocks in place and assign missing evidence or remediation to named owners with checkpoints. Record which scope is verified and which remains unresolved. If business recovery cannot wait, the incident lead and responsible service owner must explicitly approve its bounded scope and residual risk. Do not label that exception complete containment or use it to silently reactivate a compromised identity.
Verify and recover
Before removing a control, identify what would become usable again. Have the incident lead and owners approve restoration after the credential, session, provisioning, persistence, and downstream dependencies for the access being restored are addressed. Change one boundary at a time, verify legitimate operation, and monitor for recurrence. Reapply containment if misuse returns. Preserve change history, residual risks, monitoring owner, and rollback plan.
Return to the action chooser, investigation workflow, or data-preservation procedure.
Preventative controls
Context-based ingress limits where and how a credential can be used through centrally managed workspace policies and a separate account policy. Supported selectors depend on the cloud, resource, access path, and rule type. API scopes narrow workspace allow rules, not deny rules or account rules. GCP account policies do not support selected-principal targeting. Configure the supported boundary for each affected resource rather than treating workspace and account rules as interchangeable.
For a planned rollout, use dry run where it does not replace an existing enforced boundary, then enforce reviewed rules in stages. During active abuse, retain effective containment while validating changes. Include service principals, partner tools, automation, private endpoints, and recovery access in the review. Confirm current cloud and region support.
Context-based ingress does not address every path. Activity originating from an allowed network, a compromised endpoint, or an already-authorized workload may still pass. Pair it with the controls below.

Layer | Security objective | Databricks controls and practices |
|---|---|---|
Avoid | Remove long-lived credentials where possible | Use SSO, MFA, and OAuth U2M for people. For machines, workload identity federation avoids stored Databricks secrets. Client-secret OAuth M2M issues short-lived access tokens but retains a secret that needs protection and lifecycle management. |
Expire | Shorten the period in which a leaked credential has value | Per-workspace maximum lifetime for new PATs, short defaults, inactivity revocation, and account-wide inventory and revocation through the Token report |
Scope | Limit what a credential can do | OAuth and PAT API scopes, PAT auto-scoping where available, least-privilege service principals, and Unity Catalog managed secrets |
Limit | Restrict where and how the credential can be used | Context-based ingress, front-end private connectivity, and legacy IP access lists during migration |
Detect | Find credential exposure and abnormal use | Your audit-log monitoring, the Workspace Detection App, public credential alerts, behavioral account-takeover detections, and SIEM correlation |
Respond | Invalidate exposure and contain its consequences | Revoke affected credentials, disable or restrict affected principals, rotate downstream secrets, and verify that denial events follow the change |
Monitor posture | Confirm that the other layers remain enabled | Security best practices, the Security Analysis Tool, the Security Reference Architecture, Governance Hub, and periodic token inventory review |