id: thingsboard-access

info:
  name: ThingsBoard Access Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/thingsboard.yml
    - https://thingsboard.io/docs/paas/reference/http-api/
    - https://thingsboard.io/docs/paas/reference/coap-api/
  metadata:
    verified: true
  tags: thingsboard,keys,file

file:
  - extensions:
      - all

    extractors:
      - type: regex
        part: body
        regex:
          - thingsboard\.cloud/api/v1/([a-z0-9]{20})
# digest: 4a0a00473045022100c6f302b59b901ba37f594c8351b788ceaadab352716d4ea53ca70557a7208d43022020f33fbc3fe1137daad257248a32f84475ab646f2254801436c45aa068a86dd3:922c64590222798bb761d5b6d8e72950