Databricks Mount Point Creation
Description
Detects creation of legacy mount points in Databricks. Mount points are deprecated in favor of Unity Catalog external locations and can pose security risks by bypassing access controls. This anti-pattern should be avoided in modern Databricks deployments.
Query · python
from panther_databricks_helpers import databricks_alert_context
def rule(event):
return event.get("actionName") == "mount"
def title(event):
actor = event.deep_get("userIdentity", "email", default="Unknown Actor")
mount_point = event.deep_get("requestParams", "mountPoint", default="Unknown Mount")
workspace = event.get("workspaceId", "Unknown Workspace")
return f"Mount point created: {mount_point} in workspace {workspace} by {actor}"
def dedup(event):
mount_point = event.deep_get("requestParams", "mountPoint", default="unknown")
workspace = event.get("workspaceId", "unknown")
return f"mount_point_{workspace}_{mount_point}"
def alert_context(event):
return databricks_alert_context(
event,
additional_fields={
"mount_point": event.deep_get("requestParams", "mountPoint"),
"mount_config": event.get("requestParams"),
},
)
Analyst notes
- Query audit logs for all mount operations by this user in the past 30 days to identify patterns
- Check if data was accessed through this mount point in the 24 hours after creation
- Find all mount point creations across workspaces in the past 90 days to establish baseline