Detection rules › Panther

Databricks MFA Key Change

Status
Experimental
Severity
informational
Group by
actionName, userIdentity.email
Log types
Databricks.Audit
Tags
Databricks, Credential Access
Reference
https://github.com/databricks-solutions/cybersec-workspace-detection-app/tree/main/base/detections/behavioral
Source
github.com/panther-labs/panther-analysis

Detects addition or deletion of MFA keys on Databricks accounts. MFA key deletion may indicate an attacker weakening account security, while unexpected additions may indicate enrollment of attacker-controlled authenticators.

MITRE ATT&CK coverage

TacticTechniques
Credential AccessT1556 Modify Authentication Process

Rule body yaml

AnalysisType: rule
Filename: databricks_mfa_key_change.py
RuleID: "Databricks.Audit.MFAKeyChange"
DisplayName: "Databricks MFA Key Change"
Enabled: true
Status: Experimental
LogTypes:
  - Databricks.Audit
Tags:
  - Databricks
  - Credential Access
Reports:
  MITRE ATT&CK:
    - TA0006:T1556 # Modify Authentication Process
Severity: Info
Description: >
  Detects addition or deletion of MFA keys on Databricks accounts. MFA key deletion
  may indicate an attacker weakening account security, while unexpected additions may
  indicate enrollment of attacker-controlled authenticators.
Runbook: |
  1. Verify the actor intended to modify their MFA settings
  2. For deletions, check if a replacement key was added
  3. For additions, verify the new key was enrolled by the legitimate user
Reference: https://github.com/databricks-solutions/cybersec-workspace-detection-app/tree/main/base/detections/behavioral
Tests:
  - Name: MFA Key Added
    ExpectedResult: true
    Log:
      serviceName: "accounts"
      actionName: "mfaAddKey"
      userIdentity:
        email: "user@example.com"
      response:
        statusCode: 200

  - Name: MFA Key Deleted
    ExpectedResult: true
    Log:
      serviceName: "accounts"
      actionName: "mfaDeleteKey"
      userIdentity:
        email: "user@example.com"
      response:
        statusCode: 200

  - Name: Different Service - Should Not Alert
    ExpectedResult: false
    Log:
      serviceName: "workspace"
      actionName: "mfaAddKey"
      userIdentity:
        email: "user@example.com"
      response:
        statusCode: 200

  - Name: Different Action - Should Not Alert
    ExpectedResult: false
    Log:
      serviceName: "accounts"
      actionName: "login"
      userIdentity:
        email: "user@example.com"
      response:
        statusCode: 200

Detection logic

Condition

serviceName eq "accounts"

This rule also runs imperative logic the parser cannot express as a filter; the conditions above are the structured part it could extract.

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
serviceNameeq
  • accounts

Output fields

Fields the rule emits when it matches. Chronicle authors list these in the outcome block; they appear on the detection and $risk_score drives alerting. Sentinel / Defender XDR rules build them up through project / summarize / extend stages. Sentinel maps these into alert fields via entityMappings and customDetails; Defender XDR custom detections surface them as alert fields directly.

FieldSource
emailuserIdentity.email