
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.
eiows is a replacement module for ws which allows, but doesn't guarantee, significant performance and memory-usage improvements. This module is specifically only compatible with Node.js. This package is mainly meant for projects which depend on the performance of the “original uws package”. This package requires engine.io(3.4.2 or higher) and it should work on Node 8, 10, 12, 13(v13.14.0 or higher), 14(v14.4.0 or higher), 15 and 16.
Installation:
npm install eiows
or
yarn add eiows
Examples:
If you use engine.io version 5.0.0 or higher:
var fs = require('fs');
var https = require('https');
var ssl_options = {
key: fs.readFileSync('server.key'),
cert: fs.readFileSync('server.crt'),
};
var server = https.createServer(ssl_options);
server.listen(1443);
var io = require("socket.io")(server, {
wsEngine: require("eiows").Server,
perMessageDeflate: {
threshold: 32768
}
});
io.on("connection", function(socket) {
console.log('Yes, you did it!');
});
If you use engine.io version 3.4.2 till version 5.0.0:
var fs = require('fs');
var https = require('https');
var ssl_options = {
key: fs.readFileSync('server.key'),
cert: fs.readFileSync('server.crt'),
};
var server = https.createServer(ssl_options);
server.listen(1443);
var io = require("socket.io")(server, {
wsEngine: 'eiows',
perMessageDeflate: {
threshold: 32768
}
});
io.on("connection", function(socket) {
console.log('Yes, you did it!');
});
Have fun!
FAQs
custom fork of uWebSockets 0.14
The npm package eiows receives a total of 1,165 weekly downloads. As such, eiows popularity was classified as popular.
We found that eiows demonstrated a healthy version release cadence and project activity because the last version was released less than 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
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.