/viperclaw:viper-dependency-sbomfrom viperclaw
Audits software supply chain security including lockfile integrity, dependency confusion risks, and vulnerability scanning using OSV-Scanner and Dependabot patterns.
Ships in viperclaw. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
viper-dependency-sbom)viper_taint_scan, viper_verify_and_reportviperclaw taint . --db .viperclaw/graph.dbflowchart LR
Manifest["pyproject.toml / package.json / Cargo.toml"] --> Lock["Pinned Lockfile + SHA-256 Hashes"] --> Reg["Scoped Registry (.npmrc / --index-url)"] --> Build["Hermetic CI Build (--frozen-lockfile)"]
Supply-chain compromises occur when builds use floating version ranges (^, ~, >=), mix public and private package indexes via pip --extra-index-url (allowing public PyPI/npm packages with higher version numbers to shadow internal package names), or run untrusted postinstall scripts.
Run the following discovery commands across the target repository before manual code review:
# 1. Automated ViperClaw analysis
viperclaw taint . --db .viperclaw/graph.db
# 2. Rapid static pattern discovery (ripgrep)
rg -n "(extra-index-url|@.*:registry|publishConfig|replace\s+.*=>)"
rg -n "(postinstall|preinstall|install)\s*:" package.json
rg -n "(git\+https?://|http://)" pyproject.toml requirements*.txt package.json Cargo.toml
| Control ID | Audit Verification Target | Pass Criteria | Fail / Vulnerability Indicator |
|---|---|---|---|
DEP-01 | Deterministic Lockfile Enforcement | CI/CD and Docker builds enforce npm ci, pnpm install --frozen-lockfile, pip install --require-hashes, or cargo build --locked. | Production builds run pip install -r requirements.txt or npm install with floating versions. |
DEP-02 | Dependency Confusion Prevention (pip / npm) | Never use pip --extra-index-url for private packages without explicit package pinning; bind @scope in .npmrc to private registry. | --extra-index-url used with unclaimed internal package names on public PyPI. |
DEP-03 | Unclaimed @scope & Internal Package Audit | All internal @org/pkg scopes in package.json, sourcemaps, or documentation are registered/owned on public npm/PyPI. | Internal JS bundle leaks @company-internal/auth where @company-internal is unclaimed on npmjs.com. |
DEP-04 | Install-Script Hardening (--ignore-scripts) | Package installations disable arbitrary lifecycle hooks (ignore-scripts=true) or audit every preinstall/postinstall script. | Untrusted transitive dependencies allowed to execute arbitrary shell scripts during npm install. |
DEP-05 | Git Dependency Commit SHA Pinning | Any dependency sourced from Git (git+https://...) is pinned to an immutable 40-char commit SHA, not a mutable branch/tag. | "pkg": "github:owner/repo#main" used in package.json or requirements.txt. |
DEP-06 | Reachable CVE & Abandoned Package Triage | Zero known Critical/High CVEs (OSV / GitHub Advisory) in reachable production dependencies. | Outdated parsers/frameworks (PyYAML < 5.4, lodash < 4.17.21, log4j) in production lockfile. |
DEP-07 | Typosquatting & Hallucinated Package Check | Every newly added package name is verified against official repository URLs and download counts (blocking slopsquatting). | AI-hallucinated or typosquatted package name added to manifest. |
DEP-08 | Runtime vs. Dev Dependency Separation | Test runners, linters, and debug tools are placed in [project.optional-dependencies] / devDependencies and excluded from production images. | Debug/test frameworks installed into the final production container image. |
| Severity Tier | Baseline CVSS v3.1 Vector | Qualifying Security Impact |
|---|---|---|
| CRITICAL (9.8) | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H | Claimable private package name exposed via --extra-index-url or unclaimed @scope (Dependency Confusion RCE). |
| HIGH (8.1) | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N | Reachable High/Critical CVE in a direct or transitive runtime dependency. |
| MEDIUM (5.3) | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N | Unpinned floating dependencies in production build without lockfile integrity hashes. |
# ❌ VULNERABLE: Uses --extra-index-url (Dependency Confusion) without lockfile hashes
RUN pip install --extra-index-url https://pypi.internal.example.com/simple -r requirements.txt
# ✅ HARDENED: Uses single trusted internal mirror (with upstream allowlist) + --require-hashes
RUN pip install --no-deps --require-hashes --index-url https://pypi.internal.example.com/simple -r requirements.lock
viperclaw taint and viperclaw verify to confirm zero remaining unmitigated flows in .viperclaw/graph.db.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub zahidoverflow/viperclaw --plugin viperclaw72 skills in this plugin
/viper-agent-skill-supplychainAI Agent Skill, Plugin & MCP Config Supply-Chain Auditor (modeled on NVIDIA SkillSpector & OWASP Agentic Skills Top 10). Audits SKILL.md bundles and MCP JSON configs./viper-ai-llm-guardrailsAI, LLM & MCP Application Security & Guardrails Auditor (OWASP LLM Top 10). Reviews prompt boundaries, RAG data isolation, tool-call authorization, and output sanitization./viper-api-gateway-apigee-kongAPI Gateway, BFF & Rate-Tier Policy Auditor (Kong, AWS API Gateway, Apigee, Envoy Gateway). Reviews JWT authorizers, backend origin lockdown, and route-level quotas./viper-auth-oauth-jwtAuthentication, OAuth 2.0 / OIDC & JWT Security Auditor. Reviews token verification, algorithm allowlisting, claim validation, and OAuth redirect_uri configurations./viper-aws-iam-cloud-auditAWS IAM, STS, S3, KMS & Lambda Security Auditor (modeled on Prowler, Parliament & CloudSplaining). Reviews iam:PassRole escalation, STS ExternalId, S3 policies, and IMDSv2./viper-bola-idorObject & Function-Level Authorization (BOLA / BFLA) Audit Skill. Reviews resource access controls, tenant scoping, and ownership checks across API endpoints and controllers.Other plugins' skills for the same job