
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.
block-messenger
Advanced tools
Simplifies message exchange between pipeline blocks.
Factory Pattern simplifies replacement of Client.
MQTT Client is Implemented based on NPM mqtt package
To Create a MQTT Client using the BlockMessenger Factory
type = 'mqtt'
To receive messages, listen to event 'message' (topic, message) To publish a message, messenger.publish(some_data, callback);
const BlockMessenger = require('block-messenger').BlockMessenger;
const MQTT = require('block-messenger').MQTT;
const bm = new BlockMessenger();
const options = {
host: '127.0.0.1',
port: 1883,
username: 'username,
password: 'password,
subscribe_topics: ['some/topic'],
publish_topics: ['some/topic'],
use_shared_topics: true,
group_name: 'group'
};
const mqtt = bm.createMessenger(MQTT, options);
mqtt.on('subscribed', (granted) => {
console.log(granted);
});
mqtt.on('message', (topic, message) => {
console.log(`new message in topic ${topic}:`, message.toString());
});
setInterval(() => {
mqtt.publish('test data', (err) => {
if (err) {
console.error(err);
}
else {
console.log('message sent');
}
});
}, 1000);
connect
reconnect
close
offline
error
end
packetsend
packetreceive
message
subscribed
npm test npm run-script test-cov
FAQs
Message exchange between pipeline blocks
The npm package block-messenger receives a total of 0 weekly downloads. As such, block-messenger popularity was classified as not popular.
We found that block-messenger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.