
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
npm-viewscripts
Advanced tools
This project is a Node.js CLI tool to identify which of a project's existing dependencies are utilising npm lifecycle scripts, which could be malicious.
The currently configured npm scripts the tool will identify are:
preinstall
, postintall
, preuninstall
, postuninstall
Note: This project is to educate, so should not be used as a complete npm security solution.
# install globally, using npm
$ npm install npm-viewscripts -g
# Run the cli on a project
$ cd my-node-project
$ npm install
$ npm-viewscripts
$ npm-viewscripts
Usage
$ npm-viewscripts [path]
Options
path Modules folder [Default: node_modules]
Positive report example:
Potentially unsafe scripts found. These should be reviewed for safety
Module name: monorepo-symlink-test Type: postinstall
The above output informs us that the monorepo-symlink-test
is running a postinstall
script, so we should review that, and ensure that it is safe.
Negative report example:
No potentially unsafe scripts found.
No modules in the project are currently using scripts which could be used maliciously.
FAQs
View which npm dependencies in a project are using npm scripts
The npm package npm-viewscripts receives a total of 1 weekly downloads. As such, npm-viewscripts popularity was classified as not popular.
We found that npm-viewscripts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.