Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Tool to show toasts
Have in mind that you have to build your library before publishing.
The files under the lib
folder are the ones that should be distributed.
webpack.config.js
file and change the value of libraryName
variable.package.json
file and change the value of main
property so it matches the name of your library.yarn install
(recommended) or npm install
to get the project's dependenciesyarn build
or npm run build
to produce minified version of your library.yarn dev
or npm run dev
. This command will generate an non-minified version of your library and will run a watcher so you get the compilation on file change.yarn test
or npm run test
yarn build
or npm run build
- produces production version of your library under the lib
folderyarn dev
or npm run dev
- produces development version of your library and runs a watcheryarn test
or npm run test
- well ... it runs the tests :)yarn test:watch
or npm run test:watch
- same as above but in a watch modeIn the following example we are excluding React and Lodash:
{
devtool: 'source-map',
output: {
path: '...',
libraryTarget: 'umd',
library: '...'
},
entry: '...',
...
externals: {
react: 'react'
// Use more complicated mapping for lodash.
// We need to access it differently depending
// on the environment.
lodash: {
commonjs: 'lodash',
commonjs2: 'lodash',
amd: '_',
root: '_'
}
}
}
FAQs
Creates toast messages
The npm package toast-me receives a total of 305 weekly downloads. As such, toast-me popularity was classified as not popular.
We found that toast-me 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.