id: fastly-token info: name: Fastly API Token author: DhiyaneshDK severity: info reference: - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/fastly-api-token.yaml - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/fastly-api-token.go metadata: verified: true max-request: 1 tags: fastly,exposure,tokens http: - method: GET path: - "{{BaseURL}}" extractors: - type: regex part: body regex: - (?i)(?:fastly)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|\"|\s|=|\x60){0,5}([a-z0-9=_\-]{32})(?:['|\"|\n|\r|\s|\x60|;]|$) # digest: 4b0a00483046022100a41af516de248249adaeae244665fa3d19204f33bb3a0c1176707710ae3b2c3b022100a0ca8dd86c18e5530504a7b73779a3e3bde40554f11faca2c47376ee6cfdc010:922c64590222798bb761d5b6d8e72950