Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
blue-rpc-protocol
Advanced tools
BlueRPC is a fast RPC protocol that uses WebSockets and MessagePack. It solves real-world problems and is very easy to use.
In BlueRPC, streams are first-class data types. You can send streams just like any other value, and BlueRPC automatically handles things like cancellation and backpressure.
Since streams are just regular values, you can easily mix them with structured data, unlike HTTP (where you'd need to use headers or "multipart/form-data" for structured data) or gRPC (where there's no way to directly represent a byte stream) or JSON-RPC (which doesn't support streaming).
Here are its features:
BlueRPC can be implemented in any general-purpose programming language. This repository contains a specification and a reference implementation for JavaScript (compatible with Node.js and browsers).
npm install blue-rpc-protocol
Requires Node.js v16.x.x or later, or any modern browser.
const http = require('http');
const BlueRPC = require('blue-rpc-protocol');
const methods = {
echo: (param) => {
return param;
}
};
await BlueRPC.listen({
methods,
server: http.createServer(),
logger: console.log
});
const BlueRPC = require('blue-rpc-protocol');
const client = BlueRPC.createClient('ws://localhost');
const result = await client.invoke('echo', 'foo');
console.log('result:', result); // => "result: foo"
FAQs
A fast RPC protocol that uses WebSockets and MessagePack
The npm package blue-rpc-protocol receives a total of 1 weekly downloads. As such, blue-rpc-protocol popularity was classified as not popular.
We found that blue-rpc-protocol 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.