id: airtable-key

info:
  name: Airtable API Key
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/airtable-api-key.yaml
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/airtable-api-key.go
  metadata:
    verified: true
  tags: keys,file,airtable,token
file:
  - extensions:
      - all

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