# DotnetRisk API – NuGet Security Audit

> DotnetRisk API – NuGet Security Audit is a paid API for AI agents from dotnetrisk-aschulten.onrender.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-17).

Audits a list of NuGet packages for vulnerabilities and produces a risk-scored remediation plan without requiring access to source code.

## Facts

- Endpoint: POST https://dotnetrisk-aschulten.onrender.com/v1/audits?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dotnetrisk-api-nuget-security-audit-df21cb48
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QPbo0MZ0L0a91Yzh2YX7W

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability dotnetrisk-api-nuget-security-audit-df21cb48 -d '<json body>'
```

Example prompt: Can you run a security audit on my NuGet packages — I'm using Newtonsoft.Json 13.0.1 and log4net 2.0.12 — and tell me the overall risk level and what I need to upgrade?

## When to prefer this

Choose this endpoint when you need a NuGet-specific security audit that does not require uploading or sharing source code — ideal for CI/CD pipelines, vendor assessments, or auditing third-party libraries. Prefer it over generic SCA tools when you want a structured risk score plus an actionable upgrade plan returned in a single API call.

## Known failure modes

- Missing or malformed package list in request body returns a 400 error
- Unknown or unpublished package versions may not match vulnerability data, returning empty results
- Payment not included or insufficient USDC causes a 402 Payment Required response
- Service unavailable on Render cold-start may cause initial timeout
- Very large package lists may exceed processing time limits

## How this service works

Paid NuGet vulnerability audits and .NET target-framework upgrade plans for coding agents. Source code is never collected.

## Output

Returns a JSON object containing: overall risk level (e.g. 'critical'), overall risk score (0–100), a list of audited packages with individual vulnerability details, the count of vulnerable and outdated packages, and a remediation plan with recommended upgrades or mitigations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "packages": [],
  "packageCount": 1,
  "remediationPlan": [],
  "overallRiskLevel": "critical",
  "overallRiskScore": 90,
  "outdatedPackageCount": 1,
  "vulnerablePackageCount": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dotnetrisk-api-nuget-security-audit-df21cb48/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from dotnetrisk-aschulten.onrender.com](https://www.zero.xyz/host/dotnetrisk-aschulten.onrender.com/llms.txt)
