supply-chain-security

Validate dependency resolution, integrity, and source authenticity during dependency graph changes.

3.5k|319|Updated Sep 18, 2025
One-click install
npx skills add https://github.com/microsoft/apm --skill supply-chain-security-microsoft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: supply-chain-security
Source: https://github.com/microsoft/apm/tree/main/.apm/skills/supply-chain-security
Command: npx skills add https://github.com/microsoft/apm --skill supply-chain-security-microsoft

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps prevent supply-chain risk by enforcing rigorous checks on dependency resolution, lockfile integrity, and source authenticity, reducing exposure to typosquatting, malicious packages, or leaked tokens.

Core Features & Use Cases

  • Ensure integrity and authenticity of dependencies across registries and sources.
  • Enforce policy-driven checks on lockfiles, downloaders, and credentials handling.
  • Detect and prevent dependency confusion by validating sources during installs.

Quick Start

Review dependency changes and verify integrity across all involved sources.

Frequently Asked Questions about supply-chain-security

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

FAQPage Schema
How do I prevent dependency confusion during package installs?

Preventing dependency confusion requires validating source authenticity during installs by enforcing centralized path checks and fail-closed verification across all registries. This stops malicious packages from overriding internal dependencies.

What is lockfile integrity checking and when do I need it?

Lockfile integrity checking validates that resolved dependency hashes match expected values to prevent tampering. You need it when modifying dependency graphs or lockfiles to ensure packages have not been altered in transit or compromised.

How do I safely handle credentials in package resolvers?

Safely handle credentials in package resolvers by routing tokens and signatures exclusively through the resolver layer rather than exposing them in workflows. This enforces fail-closed verification to block unauthenticated downloads automatically.

Does this approach stop typosquatting and malicious packages?

Yes, this approach stops typosquatting and malicious packages by validating dependency resolution, lockfile integrity, and source authenticity. It enforces policy-driven checks on downloaders to reduce exposure to untrusted package names.

What's the best way to enforce safe deletion controls for dependencies?

The best way to enforce safe deletion controls for dependencies is to apply policy-driven guardrail requirements during changes to the dependency graph. This ensures centralized path checks and fail-closed verification block unsafe removals.

When should I verify source authenticity in my supply chain?

You should verify source authenticity in your supply chain whenever workflows involve signatures, tokens, or credential handling. It is specifically required during changes to dependency graphs, lockfiles, or package downloaders to prevent leaked tokens.