About This Project
chain-audit is a zero-dependency heuristic scanner CLI designed to detect supply chain attacks in node_modules. The tool performs comprehensive security analysis by scanning for malicious install scripts, network access in scripts, env exfiltration attempts, executable files, native binaries, corrupted package.json files, and metadata anomalies.
The scanner provides multi-layered detection capabilities and works completely offline, making it ideal for secure environments. It's designed to run before install scripts execute, enabling proactive security scanning. The tool is published on npm and serves as an essential security tool for Node.js projects, complementing traditional vulnerability scanners like npm audit with heuristic-based attack detection.