agentsclimarketplace

Cve audit

Skill Evan-Daruwalla/claude-skill-suite/cve-audit

Claude Code skills for running models cost-effectively: security gates (secret scanner, commit-gate), model-quality tooling (eval harness, token-squeeze, compact-io, opus-workers), review/advisory (trusted-advisor, audit, skill-vet, research-brief), and a read-only reorg-proposal advisor.

Install
npx -y skills add Evan-Daruwalla/claude-skill-suite --skill cve-audit

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 27 days oldThe repository was created 27 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Dependency-vulnerability audit with a deterministic parse/report core. Runs `npm audit --json` (npm projects) and `pip-audit --format json` (Python) and turns the raw report into a severity table (critical/high/moderate/low) with package names and counts, failing the build at/above a configurable fail-level (default high). Also parses a SAVED npm-audit JSON offline (`--fixture`) for CI logs and reproducible checks. If pip-audit is not installed it says so with the install hint — it never fakes Python results. Use when the user says "audit dependencies", "cve audit", "check for vulnerable packages", "npm audit", "pip-audit", "are my deps vulnerable", "scan dependencies for CVEs", or gates a release on dependency vulnerabilities. Zero dependencies, no model calls.

SKILL.md

4.7 KB, as published. Nobody here has run it

cve-audit — dependency-vulnerability audit

The engine is cve-audit.js (portable Node, zero deps). The advisory data is live — npm audit reaches the npm registry and pip-audit its own database, and what they return moves as advisories publish. The deterministic, canary-pinned part is the PARSE + REPORT layer: the severity bucketing, the counts, and the fail-level→exit-code logic. That is what makes this usable as a release gate and what the canary proves.

Typical target: a Next.js/TypeScript frontend (npm) paired with a FastAPI/Python backend (pip). Both ecosystems, one auditor. When the backend holds sensitive user data, a high/critical advisory in a request-handling dependency is a launch blocker, not a nag.

Commands

node cve-audit.js [--dir <path>] [--fail-level critical|high|moderate|low]
node cve-audit.js --fixture <npm-audit.json> [--fail-level <lvl>]
node cve-audit.js --canary
  • default (auto-detect): audits --dir (default cwd). Runs npm audit --json when package.json + a lockfile are present, and pip-audit --format json when requirements.txt / pyproject.toml / poetry.lock is present. If both exist, both run. Prints a severity table; exits 1 when any finding is at/above the fail-level.
  • --fixture parses a SAVED npm audit --json file offline — no network. Use it on a CI-captured audit log, or to reproduce a result deterministically. This is the mode the canary exercises.
  • --fail-level sets the gate (default high): high fails on any high or critical; critical fails only on critical; low fails on anything.

Examples

  • Gate a Next.js frontend (npm): node cve-audit.js --dir /path/to/frontend --fail-level high — a high/critical advisory exits 1 and blocks the release.
  • Audit a FastAPI backend (Python): same command in the backend dir runs pip-audit. If pip-audit isn't installed the run reports MISSING: pip-audit is not on PATH with pipx install pip-audit and exits 2 — it never pretends the backend is clean.
  • Re-check a CI audit log offline: node cve-audit.js --fixture ci/npm-audit.json --fail-level critical — parses the captured JSON with no registry call, applies the same gate logic.

What each ecosystem reports

  • npm (audit v2 schema): a table of critical / high / moderate / low with the vulnerable package names and per-severity counts, plus a total. Fail-level logic runs on those counts.
  • pip-audit: its default JSON carries no CVSS severity, so cve-audit reports vulnerable-package and total-advisory counts; ANY finding fails the run (fail-level does not sub-divide it).

Windows notes

  • npm audit shells out to npm (npm.cmd on Windows) — it must be on PATH.
  • pip-audit is checked with where pip-audit (which pip-audit on POSIX); if it is not installed, the Python path correctly reports MISSING rather than a false all-clear.
  • The --fixture mode is pure file parsing — no shell, safe everywhere.

Storage / output

No files are written. Output is the severity table + verdict on stdout; errors and the MISSING notice go to stderr. The bundled fixture.json (an npm-audit v2 sample: 1 high, 1 moderate, 1 low) is shipped only as an offline --fixture example.

Exit codes

0 clean or all findings below fail-level · 1 a finding at/above the fail-level (or canary failure) · 2 usage error / audit tool missing / unparseable input.

Verification (the done-check)

node cve-audit.js --canary

Drives the parse/report core off a temp npm-audit fixture in BOTH directions — a fail-level high run with a high finding exits 1 (catches), a fail-level critical run with no critical exits 0 (stays quiet) — plus exact severity counts, clean-input pass, malformed-input exit 2, and pip-audit parsing. No network, no npm, no pip. MUST print CANARY PASS 16/16 before you trust a result.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.