supply-chain-security
Cryptographic lockfiles, exact dependency pinning, automated vulnerability scanning, package provenance, and typosquatting defense
- License 许可
- MIT
- 所属仓库
- poppyTM/oride
- 最近更新
- 2026-09-30
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- supply-chain-security
- description
- Cryptographic lockfiles, exact dependency pinning, automated vulnerability scanning, package provenance, and typosquatting defense
02 资源文件 7
- 参考文档checks/supply-chain-security-checklist.md568 B
- 参考文档examples/sbom_generation.md1.4 KB
- 参考文档manifest.json1.7 KB
- 参考文档references/dependency-management.md2.0 KB
- 脚本scripts/check_dependencies.sh330 B
- 脚本scripts/verify.sh4.0 KB
- 参考文档templates/supply-chain-security-report.md1.0 KB
03 SKILL.md 正文
Supply Chain & Dependency Security
1. Cryptographic Lockfile Verification
Commit lockfiles (go.sum, package-lock.json, Cargo.lock, prumo.lock) to version control. Validate cryptographic package hashes during CI builds to guarantee build reproducibility and tamper detection.
2. Exact Version Pinning
Pin exact dependency versions in production manifests. Prohibit dynamic version wildcards (*, ^, ~, latest) in deployable services to prevent unexpected upstream breaking changes or malicious minor updates.
3. Automated Vulnerability Scanning
Integrate automated CVE scanners (govulncheck, npm audit, cargo audit, pip-audit) as blocking pre-merge checks in CI pipelines. Fail builds immediately upon detection of High or Critical vulnerabilities.
4. Package Provenance & SLSA Verification
Verify cryptographic signatures and SLSA build provenance for external packages, libraries, and container base images using Sigstore and Cosign before deployment.
5. Typosquatting & Namespace Defense
Enforce strict registry configurations using scoped private namespaces (@company/package). Inspect new dependencies for suspiciously recent publication dates or typo-similarity to popular packages.
6. Dependency Minimization & Tree Pruning
Routinely audit the dependency graph for transitive bloat. Prefer well-tested standard library capabilities over importing single-function third-party micro-packages.
7. Safe Installation Flags
Run package managers with script-execution disabled during build (npm ci --ignore-scripts) to prevent malicious install hooks from executing arbitrary shell commands during dependency fetching.
8. Vendoring for Critical Systems
For security-critical or mission-critical projects, vendor third-party source dependencies into the repository, ensuring complete autonomy from external registry downtime or upstream repository deletion.
9. License Compliance Governance
Scan dependency licenses automatically using tools like go-licenses or FOSSA. Reject packages with incompatible or viral licenses (e.g. GPL in proprietary closed-source distributions).
10. Upstream Compromise Incident Response
Maintain an emergency playbook for upstream dependency compromise: steps for immediately freezing lockfiles, revoking affected tokens, and publishing patched releases.
04 同仓库更多 Skills
zoom-reflow
暂无简介
wireframe-styleguide
暂无简介
visual-regression
Pixel-by-pixel snapshot testing, Playwright integration, dynamic content masking, deterministic font rendering, and cross-browser CI gates
ui-implementation
Component-driven UI implementation, multi-state matrix (default, hover, focus-visible, active, disabled, loading, empty, error), DTCG design tokens, responsive layout contracts, and accessibility tree mapping.
tui-editor-engine
Text buffer and editing semantics for a terminal code editor — index conversion, transaction-first editing, multi-cursor invariants, undo grouping, and large-file behaviour.
tree-sitter-context-indexing
暂无简介