Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
lambduh-execute
Advanced tools
Execute any shell string via node.exec
Two sample use-cases shown here:
var Q = require('q');
var execute = require('lambduh-execute');
//your lambda function
exports.handler = function(event, context) {
var promises = [];
promises.push(execute({
shell: "echo `ls /tmp/`",
showOutput: true
}) // logs output of /tmp/ dir on your lambda machine
promises.push(execute({
shell: "cp /var/task/ffmpeg /tmp/.; chmod 755 /tmp/ffmpeg",
showOutput: true
}) // copies an ffmpeg binary to /tmp/ and chmods permissions to run it
promises.push(function(options) {
context.done()
})
promises.reduce(Q.when, Q())
.fail(function(err) {
console.log("derp");
console.log(err);
context.done(null, err);
});
}
This module takes a script
object that can have two fields: a shell
field for writing a string of unix commands to be executed, and a showOutput
boolean for showing the stdout and stderr logs.
showOutput
defaults to false.
The tests in this repo could use enforcement around showOutput
- I'm onto bigger fish for now, will hopefully get back to it.
FAQs
Execute any shell string or bash script from AWS Lambda
The npm package lambduh-execute receives a total of 5 weekly downloads. As such, lambduh-execute popularity was classified as not popular.
We found that lambduh-execute 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
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.