# Strale Package Security Audit

> Strale Package Security Audit is a paid API for AI agents from api.strale.io, paid per call via x402, $0.054/call, status unknown (last checked 2026-09-14).

Audits an npm or PyPI package for security vulnerabilities, returning findings with a cryptographic audit record.

## Facts

- Endpoint: GET https://api.strale.io/x402/v2/package-security-audit
- Price: $0.054/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/strale-package-security-audit-4f33c987
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_M9kt93WWBWgJ1kyuuD8X0

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 strale-package-security-audit-4f33c987
```

Example prompt: Can you run a security audit on the npm package 'lodash' version 4.17.20 and tell me if there are any known vulnerabilities?

## When to prefer this

Choose this endpoint when you need an audited, cryptographically traceable security assessment of a specific npm or PyPI package, especially in compliance-sensitive environments where an immutable audit trail is required. Prefer it over generic vulnerability databases when you need both the security data and a verifiable record of when and how the check was performed.

## Known failure modes

- Package not found in the specified ecosystem — returns an error if the name is misspelled or ecosystem is wrong
- Version not found — if the specified version does not exist in the registry
- Missing required 'name' query parameter — returns validation error
- Invalid ecosystem value — only 'npm' or 'pypi' are accepted
- Network or upstream registry unavailability — may return a service error

## How this service works

The trust layer for AI agents — 250+ independently tested data capabilities across 27 countries. Execute capabilities via REST, MCP, A2A, or x402 micropayments. Every call returns an audit record with cryptographic chain hashing.

## Output

Returns a security audit report for the specified package including vulnerability findings, severity assessments, and a cryptographically chained audit record that can be used for compliance and traceability purposes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "name"
     ],
     "properties": {
      "name": {
       "type": "string",
       "description": "Package name"
      },
      "version": {
       "type": "string",
       "description": "Version to audit"
      },
      "ecosystem": {
       "type": "string",
       "description": "npm or pypi"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/strale-package-security-audit-4f33c987/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
