id: segment-public-api

info:
  name: Segment Public API Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/data/default/rules/segment.yml
    - https://segment.com/docs/api/public-api/
    - https://segment.com/blog/how-segment-proactively-protects-customer-api-tokens/
  metadata:
    verified: true
  tags: keys,file,segment,token
file:
  - extensions:
      - all

    extractors:
      - type: regex
        part: body
        regex:
          - '(sgp_[a-zA-Z0-9]{64})'
# digest: 4a0a00473045022100ab57955a106b12f713b687aa2b435a0398f6418927017cd91d97cdcb96c84e7d02203714c859c2c5449bef6b69b65afd9382e37a560e1b7bbddd93806ea107d60d88:922c64590222798bb761d5b6d8e72950