id: twitter-client

info:
  name: Twitter Client ID
  author: DhiyaneshDK
  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)\btwitter.?(?:api|app|application|client|consumer|customer)?.?(?:id|identifier|key).{0,2}\s{0,20}.{0,2}\s{0,20}.{0,2}\b([a-z0-9]{18,25})\b
# digest: 4b0a00483046022100c002a4d26fa7da61a7b9cae3432e5187d5ba8c57eb947ecbdd4b1b808af49c5c022100c39024f187eddf6a3b3d9ce96bc4ca8f3be56b3d7c3af4786c7a72fcee068072:922c64590222798bb761d5b6d8e72950