id: alibaba-secretkey-id

info:
  name: Alibaba Secret Key ID
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/alibaba-secret-key.go
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/alibaba-secret-key.yaml
  metadata:
    verified: true
    max-request: 1
  tags: alibaba,exposure,tokens

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

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)(?:alibaba)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|\"|\s|=|\x60){0,5}([a-z0-9]{30})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 4b0a00483046022100a036dcf541078e23f1a8e9400c36fa1321f149946102f56807652aa13cc43bc1022100b9b621ee595561700b2fa4f17ca78f41565cba8d3090165b423bdd634c1a6274:922c64590222798bb761d5b6d8e72950