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.
npm module to automate publishing of npm modules Useful when you want to publish every time you bump the version in your module as part of your continuos integration setup.
When running publish in your module:
npm install publish
The most common way of using publish is to have it as a posttest script in your package.json:
"scripts": {
"test": "tap test/*.js", // tap as an example
"posttest": "publish"
}
which means that on successful test run, publish will try to 'npm publish' your module.
Notice that your CI machine needs to be configured with an npm user (http://npmjs.org/doc/adduser.html) that is authorized to publish the package.
The options that you can use with publish are:
publish --on-major --on-minor
will only publish when the local major or minor versions are higher than the remote ones
publish --on-build
will only publish when the local build version is higher than the remote one
publish
will only publish when the local version is higher than the remote one
FAQs
npm auto publishing of your modules
The npm package publish receives a total of 77,882 weekly downloads. As such, publish popularity was classified as popular.
We found that publish 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.