Remediation
From Azure Portalโ
Disable personal access tokens:
If your workspace does not require PATs, you can disable them entirely to prevent their use.
- Navigate to the Azure Databricks workspace.
- Click the
Settingsicon and selectAdmin Console. - Go to the
Advancedtab. - Under
Personal Access Tokens, set the toggle toDisabled.
Databricks CLI:
databricks workspace-conf set-status --json '{"enableTokens": "false"}'
Control who can create and use personal access tokens:
Define which users or groups are authorized to create and use PATs.
- Navigate to the Azure Databricks workspace.
- Click the
Settingsicon and selectAdmin Console. - Go to the
Advancedtab. - Click
Personal Access Tokens, thenPermissions. - Assign the appropriate permissions (e.g., No Permissions, Can Use, Can Manage) to users or groups.
Set maximum lifetime for new personal access tokens:
Limit the validity period of new tokens to reduce potential misuse.
Databricks CLI:
databricks workspace-conf set-status --json '{"maxTokenLifetimeDays": "90"}'
Monitor and revoke personal access tokens:
Periodically review active tokens and revoke any that are unnecessary or potentially compromised.
Databricks CLI:
databricks token list
databricks token delete --token-id {{token-id}}
Transition to OAuth for enhanced security:
Use OAuth tokens for authentication to improve security over PATs.