id: duffel-token

info:
  name: Duffel API Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/duffel-api-token.yaml
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/duffel-api-token.go
  metadata:
    verified: true
    max-request: 1
  tags: duffel,exposure,tokens

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

    extractors:
      - type: regex
        part: body
        regex:
          - duffel_(test|live)_(?i)[a-z0-9_\-=]{43}
# digest: 490a0046304402205cdd49f31ee0dc9fd669d2559bf0040c7f96df5f357c365493944aac4275298a02206b7f412c5b194c2f5237b4977fba887cace5de93ceaf81e4ddb4c2c134a6d016:922c64590222798bb761d5b6d8e72950