id: bitbucket-client-id

info:
  name: BitBucket Client ID
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/bitbucket-client-id.yaml
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/bitbucket-client-id.go
  metadata:
    verified: true
  tags: file,keys,bitbucket,token

file:
  - extensions:
      - all

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)(?:bitbucket)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|\"|\s|=|\x60){0,5}([a-z0-9]{32})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 4b0a004830460221008c78b7abd2368c2e1865788bee10a8acf55d466508c087980c47ecc5e2a912c7022100f416f984fde26f69b88688dce0c3fe45201c9860f50938d5e3327fb14e9bb2a4:922c64590222798bb761d5b6d8e72950