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.
aws4-crypto
Advanced tools
crypto drop in replacement for aws4 module based on sjcl. the goal is to reduce the bundle size of aws4 package while used in browser.
npm install aws4-crypto --save
module.exports = {
...
resolve: {
...
alias: {
...
crypto: 'aws4-crypto',
...
}
...
},
...
}
Due to internal usage of sjcl, in order not to bundle crypto-browserify, add to config:
module.exports = {
...
module: {
noParse: /sjcl-aws/, // it requires crypto so webpack will bundle the browserified version. if the require fails it fallback to the browser api.
...
}
...
}
npm install url-lite --save
npm install null-loader --save-dev
add to webpack config:
module.exports = {
...
resolve: {
...
alias: {
...
url: 'url-lite' // aws4 uses url
...
}
...
},
module: {
...
rules: [
{
test: path.resolve(process.cwd(), 'node_modules/buffer/index.js'), // aws4 uses querystring-browser which requires it but it has no usage
use: [{
loader: 'null-loader'
}]
},
...
]
...
}
...
}
MIT
FAQs
crypto drop in replacement for aws4 module based on sjcl
We found that aws4-crypto 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.