# DeFi Shield Package Risk Assessment

> DeFi Shield Package Risk Assessment is a paid API for AI agents from defi-shield-hazel.vercel.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-13).

Assesses the security and reliability risk of software packages via CVE lookup, maintainer analysis, and download trend evaluation

## Facts

- Endpoint: POST https://defi-shield-hazel.vercel.app/api/dev/package-risk
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-shield-hazel-vercel-app-1f238cf0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eHzi0NfAxJYOxDa6lvl7W

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 defi-shield-hazel-vercel-app-1f238cf0 -d '<json body>'
```

Example prompt: Can you run a full risk assessment on the npm package 'lodash' version 4.17.21 — I need to know about any CVEs, whether the maintainers look trustworthy, and if the download trends suggest it's being abandoned?

## When to prefer this

Use this endpoint when you need a comprehensive, multi-dimensional risk assessment of a software package combining vulnerability (CVE), maintainer trust, and usage trend signals in a single call — especially useful before adding a new dependency to a production project or auditing an existing one. Prefer this over generic CVE databases when you also care about supply chain signals like maintainer activity and download health.

## Known failure modes

- Package not found in registry — returns 404 or error payload
- Unknown or unsupported registry — endpoint may not support non-npm registries
- Rate limiting or payment failure — x402 payment not processed correctly
- Incomplete CVE data if vulnerability database is temporarily unavailable
- Stale data if cache is not refreshed for a recently patched package

## Output

Returns a structured risk assessment including CVE findings, maintainer credibility analysis, download trend data, and an overall risk score or flags for the queried package

## Example request

```json
{
 "input": {
  "body": {
   "ecosystem": "npm",
   "package_name": "lodash"
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body",
    "method"
   ],
   "properties": {
    "body": {
     "properties": {
      "ecosystem": {
       "type": "string",
       "description": "Package ecosystem (default: npm)"
      },
      "package_name": {
       "type": "string",
       "description": "Package name to assess"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-shield-hazel-vercel-app-1f238cf0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi-shield-hazel.vercel.app](https://www.zero.xyz/host/defi-shield-hazel.vercel.app/llms.txt)
