TL;DR: Known-advisory scanning and install-time behavior analysis answer different questions. A proposed npm security tool should explain what it adds to registry configuration, script controls and existing scanners. The narrow experiment is a safely isolated version-to-version behavior comparison for a dependency the customer actually uses.
Keep existing controls in the model
npm audit checks dependency information against known vulnerability data. It should not be dismissed as unable to detect any malicious package, and a clean audit should not be described as proof that arbitrary install scripts are safe.
A dependency's effective access is the access of the environment running it. Secrets, mounted directories, network access and package-manager script settings all affect the blast radius. Testing an untrusted install on a developer laptop with production credentials would undermine the point of the product.
A behavior-diff artifact
A focused design could compare two locked dependency versions inside equivalent disposable environments. Record process execution, accessed paths and attempted network destinations, while keeping real credentials out of the sandbox. Show which observations are new, expected or unresolved.
Legitimate native builds and binary downloads can look noisy. A useful report must explain the package's expected installation work rather than treat every network connection as compromise. A quiet sandbox run is not proof of safety either: behavior may depend on platform, environment or conditions not exercised.
For dependency-confusion checks, inspect the actual scoped and unscoped registry configuration and the resolved lockfile. A name collision alone does not show that the public package takes precedence.
What to test with a development team
Take an authorized sample of dependency updates and compare the artifact with the team's existing review, audit results and script policy. Ask reviewers to distinguish an actionable unexpected behavior change from ordinary build activity. Measure time to a defensible decision and how often the proposed check interrupts legitimate work.
A candidate first offer is a CI review gate with a documented exception workflow. Do not assume that developers will accept a local installation monitor, or that CI adds negligible delay. Test both the security team's requirements and the developer's workflow cost before selecting the business model.
The trust burden follows the tool
An installation monitor can itself become a privileged supply-chain dependency. Limit its permissions and data collection, and make its updates and report provenance reviewable. A behavior feed needs ongoing maintenance; it is not a guarantee that new attacks will appear in the observed sample.
Related: owner-side leaked-key triage and post-advisory response for self-hosted tools.