id: nuget-key

info:
  name: NuGet API Key
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/nuget.yml
    - https://docs.microsoft.com/en-us/nuget/nuget-org/publish-a-package#create-api-keys
  metadata:
    verified: true
  tags: keys,file,nuget,token
file:
  - extensions:
      - all

    extractors:
      - type: regex
        part: body
        regex:
          - "(oy2[a-z0-9]{43})"
# digest: 4a0a00473045022100fba7c66101517281eb4022b24206e8a467c9bef9141faa40d1518db53fc5334402206b038a43e3b09689bb21e6db5429796ef2b671be875301ef23a4e602ad75405b:922c64590222798bb761d5b6d8e72950