
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
lambda-example
Advanced tools
This is an example for AWS Lambda Development showcasing how to use:
A list of all the example handlers with description can be found here. Each handler has tests files associated.
Note: Independent of the Lambda trigger type.
This is an example for AWS Lambda Development showcasing how to use:
A list of all the example handlers with description can be found here. Each handler has tests files associated.
Note: Lambda functions defined this way are expected to be used with API Gateway.
Install serverless with
$ npm install -g serverless
Then verify tests with
$ npm test
To deploy run
$ sls deploy
Test a geoip function
$ sls invoke -f geoip
Test div function
$ sls invoke -f div -d '{ "a": 32, "b": 5 }'
Mode detail on the invoke option can be found here.
You can also log into AWS and trigger the function with an event that you manually create.
The deploy message will give you a public url to use of the form https://##########.execute-api.us-east-1.amazonaws.com/example/sum. Experiment with different input, e.g.
$ URL
$ URL?input=[1,4,2,45,6]
$ URL?input=[1,4,2,45,]
Swagger documentation is automatically synchronized using the API definition, but also manually enriched. For an example on how this is accomplished see test_https.js. The generated swagger file can be found here.
The file also contains a test example that ensures that the swagger documentation is synchronized with the serverless.yml file.
If you hit the endpoint many times quickly you will trigger the rate limit.
Set up your rollbar account and fill the details into the example.yml. Then deploy again and check that information is logged to rollbar as you hit warning / error conditions!
Run
$ sls remove
Consider using lambda-monitor for monitoring your lambda function.
FAQs
Example project for lambda-tdd.
The npm package lambda-example receives a total of 40 weekly downloads. As such, lambda-example popularity was classified as not popular.
We found that lambda-example demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.