id: facebook-api-token

info:
  name: Facebook API Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/facebook.yaml
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/facebook.go
  metadata:
    verified: true
  tags: keys,file,facebook,token

file:
  - extensions:
      - all

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