Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
install-changed
Advanced tools
This package is a quick and easy way of figuring out whether or not package.json
has been modified. It executes npm install
if the file has been modified, otherwise it does nothing.
You can find this package on npm
and can install it with npm install install-changed
You can use it as follows. In your package.json
, add a new script to run:
"scripts": {
"pre-run": "install-changed",
"other-scripts: "whatever.js"
},
Then when you run npm run pre-run
it will automatically figure out what needs to happen.
You can also do this programatically:
let installChanged = require('install-changed')
let isModified = installChanged.watchPackage()
The function above does exactly the same thing, additonally it also returns a boolean value which you might find useful.
FAQs
Only npm installs if package.json has been modified
We found that install-changed 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.