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.
lambda-packer
Advanced tools
This function builds a list of all the dependents of a function using webpack and its node packer and creates a package with only the required files to run in Lambda.
Especially useful when you want to use babel / ES6 features and not have to worry about them running on lambda's ancient node version (v0.10)
// in a gulpfile / task runner / whatever
import lambdaPacker from 'lambda-packer';
function deployToLambda() {
const options {
zip: true, // set to true to pack a zip file for sending to AWS
functionsDir: './src/functions'
};
lambdaPacker(options).then(zipBuffer =>
// send to AWS using `aws-sdk`
// see the AWS docs for details on that
sendToLambda(zipBuffer)
);
}
FAQs
Build and pack a lambda functions written in ES-whatever
We found that lambda-packer 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.