id: linkedin-secret

info:
  name: LinkedIn Secret Key
  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|secret|key).?(?:key|oauth|sec|secret)?.{0,2}\s{0,20}.{0,2}\s{0,20}.{0,2}\b([a-z0-9]{16})\b
# digest: 4a0a0047304502206de33b19daa4fefa5f6d2b0dbf7a3ad0a1ab878045af242553db118c5fcf44560221009dc400d5388f64893748e80c4916a71c7d8c5c83f52a47b55bae24daf98e5373:922c64590222798bb761d5b6d8e72950