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