Skip to content

npm-install-audit 1.8.0: .envrc and non-registry overrides

Latest

Choose a tag to compare

@cryptostrapon cryptostrapon released this 02 Dec 13:44
· 4 commits to main since this release
89eab85
npm-install-audit 1.8.0: looks clean, runs first. .envrc and a git URL in overrides, both flagged

Two new checks in 1.8.0, both contributed from outside the project.

New checks

  • .envrc files. direnv runs .envrc as a shell script when you enter the folder after direnv allow, so a repo can ship code that runs on cd. Reported as a finding (also common in legitimate projects). #39, #41
  • Non-registry specs in npm overrides, Yarn resolutions and pnpm.overrides, including nested entries. A git URL, tarball or file: path there replaces a package from outside the npm registry without appearing in dependencies. #42, #45

Thank you

The README now has a Contributors section with everyone who added a check.

Upgrade

npx npm-install-audit@1.8.0 /absolute/path/to/repo
- uses: cryptostrapon/npm-install-audit@v1.8.0

No dependencies, no network, read only. A clean scan is not proof of safety.

Note: 1.6.0 was never published to npm; its workspace .npmrc check shipped in 1.7.0.

Real cases behind these checks (fake take-home tests and job offers): cryptostrapon.com/stories/malicious-test-project