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: 4a0a00473045022039a66df27811acafdb1a51071cc2b1ab5c220a0217dfd4632297df6defc827470221009c152a5a1a18fbfb17c56557caef09b73fd3d9d383fdc7e39e87c1a60f8b4f49:922c64590222798bb761d5b6d8e72950
