id: linkedin-client

info:
  name: LinkedIn Client ID
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/linkedin.yml
    - https://docs.microsoft.com/en-us/linkedin/shared/api-guide/best-practices/secure-applications
  metadata:
    verified: true
  tags: linkedin,keys,file

file:
  - extensions:
      - all

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)linkedin.?(?:api|app|application|client|consumer|customer)?.?(?:id|identifier|key).{0,2}\s{0,20}.{0,2}\s{0,20}.{0,2}\b([a-z0-9]{12,14})\b
# digest: 4a0a00473045022100f54c22de0e944d32efd818a87b822b61cf6c2f04ab34e97b09201755cda6305e0220335cd7b3ab800176bba471108774871b3472b0c563ed432059a7b9d958618283:922c64590222798bb761d5b6d8e72950