# BRAINIAC Lockfile Security Audit API

> BRAINIAC Lockfile Security Audit API is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.1/call, status unknown (last checked 2026-11-17).

Audits a package lockfile for known vulnerabilities across major ecosystems (NPM, PyPI, Maven, RubyGems, Cargo, NuGet, Go) using deps.dev and OSV data sources.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/cybersecurity-intelligence/lockfile/audit?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-lockfile-security-audit-api-5bb54999
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SIWDTbA5kSdTHq168UFS1

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 brainiac-lockfile-security-audit-api-5bb54999 -d '<json body>'
```

Example prompt: Can you audit my NPM lockfile for known security vulnerabilities? Here's the content of my package-lock.json: [paste lockfile content here].

## When to prefer this

Use this endpoint when an AI agent needs a quick, accountless, pay-per-call vulnerability scan of a package lockfile without setting up a dedicated SCA (software composition analysis) tool or account. Ideal for CI pipelines, one-off audits, or agent-driven security checks across NPM, PyPI, Maven, RubyGems, Cargo, NuGet, or Go ecosystems. Prefer over manual NVD/OSV queries when you want a single call that resolves the full dependency tree and surfaces vulnerabilities in one shot.

## Known failure modes

- Unsupported lockfile format returns parsing error or empty dependencies list
- Ecosystem enum value not matching one of the 7 supported values causes validation failure
- Malformed or truncated lockfile content may yield incomplete dependency resolution
- Network or upstream deps.dev/OSV service unavailability may return empty results or timeout
- Very large lockfiles may hit payload size limits

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

Returns a JSON object containing: the input echo (ecosystem and lockfile), a list of resolved dependencies found in the lockfile, a list of vulnerabilities discovered (with CVE/OSV identifiers), data sources consulted, the timestamp of retrieval, and a list of known limitations (e.g. partial ecosystem support, recommendation to combine with NVD/EPSS data).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "ecosystem": {
   "enum": [
    "NPM",
    "PYPI",
    "MAVEN",
    "RUBYGEMS",
    "CARGO",
    "NUGET",
    "GO"
   ],
   "type": "string"
  },
  "lockfileContent": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "input": {
   "ecosystem": "NPM",
   "lockfileContent": "package-lock.json content"
  },
  "sources": [],
  "limitations": [
   "Lockfile parsing is limited to common formats.",
   "Only deps.dev-supported ecosystems can be audited.",
   "Combine with existing OSV/CISA/EPSS/NVD findings for complete vulnerability data."
  ],
  "retrievedAt": "2026-10-29T12:00:00.000Z",
  "dependencies": [],
  "vulnerabilities": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-lockfile-security-audit-api-5bb54999/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
