dependency-vulnerability-scanning

Scan dependency lockfiles for CVEs, licenses, and supply-chain risks.

4|Updated May 16, 2026
One-click install
npx skills add https://github.com/machenjie/rd-skills --skill dependency-vulnerability-scanning
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dependency-vulnerability-scanning
Source: https://github.com/machenjie/rd-skills/tree/main/src/foundation/capabilities/dependency-vulnerability-scanning
Command: npx skills add https://github.com/machenjie/rd-skills --skill dependency-vulnerability-scanning

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It prevents unreviewed dependency and supply-chain changes from entering your build or runtime by enforcing a structured risk review across necessity, vulnerabilities, licenses, transitive impact, lockfile integrity, SBOM traceability, and maintainer health.

Core Features & Use Cases

  • Necessity justification for every dependency change: requires written rationale for why the dependency is needed, what functionality it provides, and which code paths will actually use it.
  • Full transitive vulnerability scanning: scans the entire lockfile tree (direct and transitive) and escalates CRITICAL/HIGH runtime CVEs unless reachability is documented.
  • License compatibility verification: checks SPDX identifiers and compatibility with distribution obligations, including legal review triggers for GPL/AGPL-family licenses.
  • Supply-chain health and install-script scrutiny: evaluates maintainer activity, security posture, install/postinstall hooks, and supply-chain integrity signals.
  • Lockfile and SBOM correctness enforcement: ensures deterministic installs via frozen/fixed lockfiles and requires SBOM regeneration to maintain traceability.

Quick Start

Use this capability to review any dependency addition, upgrade, downgrade, removal, vendoring, lockfile change, or dependency-update PR by producing a documented risk report that covers vulnerabilities, licenses, transitive impact, lockfile integrity, and SBOM updates.

Frequently Asked Questions about dependency-vulnerability-scanning

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan lockfile dependencies for CVE vulnerabilities before shipping?

To scan dependencies for CVE vulnerabilities, you must perform full transitive lockfile scanning to identify direct and indirect runtime risks, escalating any CRITICAL or HIGH CVEs unless runtime reachability is explicitly documented and justified.

What is dependency supply-chain risk review and when do I need it?

Dependency supply-chain risk review is a structured evaluation of necessity, vulnerabilities, licenses, maintainer health, and lockfile integrity for package changes. You need it whenever adding, upgrading, downgrading, or vendoring dependencies across ecosystems like Node, Python, Java, and Go.

Does dependency vulnerability scanning check SPDX license compatibility for distribution?

Yes, dependency vulnerability scanning includes SPDX license compatibility checks to verify alignment with your distribution obligations, specifically triggering legal reviews when GPL or AGPL-family licenses are detected in the proposed dependency tree.

How do I review install scripts and maintainer health for risky npm or Python packages?

To review install scripts and maintainer health, evaluate the package's security posture, maintainer activity levels, and scrutinize install or postinstall hooks for malicious behavior, ensuring unsafe supply-chain artifacts are blocked before entering your build.

What is the best way to enforce SBOM traceability during dependency upgrades?

The best way to enforce SBOM traceability during dependency upgrades is to require deterministic installs via frozen lockfiles and mandate SBOM regeneration, ensuring every transitive dependency change is tracked and documented before approval.

Why do I need to justify necessity for every dependency addition in my CI pipeline?

You need to justify necessity for every dependency addition to prevent unreviewed supply-chain changes from entering your runtime, requiring a written rationale detailing why the package is needed and which code paths will actually use it.