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.
canvas-aws-prebuilt
Advanced tools
##Adapted version of node-canvas to use with AWS and Serverless.
npm install --save canvas-aws-prebuilt
This is a drop-in replacement of node-canvas package.
const canvas = require('canvas-aws-prebuilt');
import canvas from 'canvas-aws-prebuilt';
See node-canvas API.
I spent some time (a week, actually) trying to deploy a Serverless application with node-canvas (and succeeded), so I decided to make life easier for those who try to do the same. The main problem I came across is that the project used serverless-webpack with externals enabled, which prevented me from simply copying the pre-built module into node_modules.
Yes. You'll probably need a loader for canvas.node
.
For those who is deploying the app via CI (like I did), you'll need to use native-ext-loader instead of node-loader. It have to be configured like this:
module: {
rules: [
test: /\.node$/,
loader: 'native-ext-loader',
options: {
name: '[name].[ext]', // <-- not necessary, just to make the file names readable
rewritePath: '/var/task' // <-- is necessary to run on AWS Lambda
}
]
}
Coming soon.
MIT
FAQs
Adapted version of node-canvas to use with AWS and Serverless
The npm package canvas-aws-prebuilt receives a total of 3 weekly downloads. As such, canvas-aws-prebuilt popularity was classified as not popular.
We found that canvas-aws-prebuilt 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.