
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
bragg-cloudwatch-log
Advanced tools
bragg Bragg middleware to process CloudWatch Logs events
$ npm install bragg-cloudwatch-log
All the events will be routed to post
cloudwatch:log
. You can use that route to handle the CloudWatch log events.
const app = require('bragg')();
const router = require('bragg-router')();
const cloudWatchLog = require('bragg-cloudwatch-log');
// Listen for CloudWatch Log events
router.post('cloudwatch:log', ctx => {
/**
* {
* "messageType": "DATA_MESSAGE",
* "owner": "123456789012",
* "logGroup": "/aws/lambda/echo-nodejs",
* "logStream": "2019/03/13/[$LATEST]94fa867e5374431291a7fc14e2f56ae7",
* "subscriptionFilters": [
* "LambdaStream_cloudwatchlogs-node"
* ],
* "logEvents": [
* {
* "id": "34622316099697884706540976068822859012661220141643892546",
* "timestamp": 1552518348220,
* "message": "REPORT RequestId: 6234bffe-149a-b642-81ff-2e8e376d8aff\tDuration: 46.84 ms\tBilled Duration: 100 ms \tMemory Size: 192 MB\tMax Memory Used: 72 MB\t\n"
* }
* ]
* }
*/
console.log(ctx.request.body)
});
app.use(cloudWatchLog());
app.use(router.routes());
exports.handler = app.listen();
Add the bragg CloudWatch Log middleware to the middleware pipeline.
MIT © Simon
FAQs
Bragg middleware to handle CloudWatch Logs events
We found that bragg-cloudwatch-log 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.