id: nuget-api-key

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

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

    extractors:
      - type: regex
        part: body
        regex:
          - "(oy2[a-z0-9]{43})"

# digest: 4a0a00473045022049f6e40fc35681e9de445234f12236d9308f57f89bb6663bb486e4a9a6b09c81022100b86d930b6d08c74c10fffed161b8e1be7790e210e331659b7c4301f20a89c900:922c64590222798bb761d5b6d8e72950
