id: twilio-api-key

info:
  name: Twilio API Key
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/twilio.yml
    - https://www.twilio.com/docs/usage/api
  metadata:
    verified: true
    max-request: 1
  tags: twilio,token,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    extractors:
      - type: regex
        part: body
        regex:
          - '(?i)twilio.{0,20}\b(sk[a-f0-9]{32})\b'
# digest: 490a0046304402200470cc87fb00570ba6563c7dea9f527a71cfc05f6134ba352af5b531c6f87f1102204f353e573765ab56037ee3fddf3bd20a69ed8dd52b59b9e83e988f9bc1fff137:922c64590222798bb761d5b6d8e72950