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,vuln

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