Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Mesh networking with peer-to-peer messaging for NodeJS. Ataraxia connects different NodeJS instances together and allows messages to be passed between these instances. Some instances may act as routers for other instances to create a mesh network.
npm install ataraxia
Also install one or more transports:
const Network = require('ataraxia');
const TCPTransport = require('ataraxia-tcp');
const net = new Network({ name: 'name-of-your-app-or-network' });
net.addTransport(new TCPTransport());
net.start();
net.on('node:available', node => {
console.log('A new node is available:', node.id);
node.send('hello');
});
net.on('message', msg => {
console.log('A message was received', msg.type, 'with data', msg.payload, 'from', msg.returnPath.id);
});
This example creates a network where instances on the same machine connect to each other locally first and then elects one instance to handle connections to other machines on the same network.
const Network = require('ataraxia');
const LocalTransport = require('ataraxia-local');
const TCPTransport = require('ataraxia-tcp');
const net = new Network({ name: 'name-of-your-app-or-network' });
const local = new LocalTransport();
local.on('leader', () => {
/*
* The leader event is emitted when this instance becomes the leader
* of the machine-local network. This instance will now handle
* connections to other machines in the network.
*/
net.addTransport(new TCPTransport());
});
net.addTransport(local);
net.start();
FAQs
P2P messaging over mesh networks
The npm package ataraxia receives a total of 8 weekly downloads. As such, ataraxia popularity was classified as not popular.
We found that ataraxia 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.