id: twitter-secret

info:
  name: Twitter Secret Key
  author: DhiyaneshDK,gaurang,daffainfo
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/twitter.yml
    - https://developer.twitter.com/en/docs/authentication/overview
  metadata:
    verified: true
  tags: twitter,keys,file

file:
  - extensions:
      - all

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)twitter.?(?:api|app|application|client|consumer|customer|secret|key).?(?:key|oauth|sec|secret)?.{0,2}\s{0,20}.{0,2}\s{0,20}.{0,2}\b([a-z0-9]{35,44})\b
# digest: 4b0a00483046022100d6f0301703f1325012e1636aa142a7e177c2e0fb785f3c609232e0c6157ac621022100e8b4e2f60264a05ad8f4a6684471c9e1dc840aa91921da2e436c1c969937470d:922c64590222798bb761d5b6d8e72950