id: droneci-accesstoken

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

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

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