id: airtable-api-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
    max-request: 1
  tags: airtable,exposure,tokens

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

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