id: databricks-api-token

info:
  name: Databricks API Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/databricks-api-token.yaml
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/databricks-api-token.go
  metadata:
    verified: true
  tags: file,keys,databricks,token
file:
  - extensions:
      - all

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)\b(dapi[a-h0-9]{32})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 490a0046304402205ef3a0a15f7aa01b2b0452450d0e0c8f364ef88ab1ebf073394b64654fd20b8702206f22b329fa7974123c65e63c51a45fe098d770a8d4d861f923e4668a9edac778:922c64590222798bb761d5b6d8e72950