feat: implement multi-layered supply chain attack defense
Implement comprehensive protection against npm supply chain attacks (such as Shai-Hulud 2.0) using a three-layer defense strategy.
Layer 1: New Package Release Delay
- Add minimumReleaseAge (48 hours) to pnpm-workspace.yaml
- Blocks installation of recently published packages
- Provides time buffer for community to detect malicious updates
Layer 2: Install Script Prevention
- Configure ignore-scripts=true in .npmrc
- Prevents execution of preinstall/postinstall scripts
- Includes whitelist support via onlyBuiltDependencies (currently unused)
Layer 3: Continuous Vulnerability Scanning
- Add OSV-Scanner workflow for dependency scanning
- Integrate security scan into CI/CD pipeline
- Fail builds on detected vulnerabilities
Documentation:
- Add comprehensive supply chain protection section to SECURITY.md
- Document configuration, trade-offs, and compromise detection
- Include references to defense resources
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
8e55ed4
10 days ago
by kamiazya
-33.58%
fix: correct pnpm whitelist configuration key
Change onlyBuiltDependencies to only-built-dependencies (kebab-case) to match pnpm's actual configuration format.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
447e629
10 days ago
by kamiazya
+88.27%
fix: correct typo in malicious repo search example
Change "Sha1-Hulud" to "Shai-Hulud" to match the actual attack name.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
9602a14
10 days ago
by kamiazya
-88.58%
chore: add changeset for supply chain defense
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>