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.
Javascript library to communicate with Centrifugo HTTP API.
$ npm i cent.js
First see available API methods in documentation.
This library contains CentClient
class to send messages to Centrifugo from your node-powered backend:
const {CentClient} = require('cent.js');
// Initialize client instance.
const client = new CentClient({
url: 'http://localhost:8000/api',
apiKey: 'XXX'
});
// Publish data into channel
const publishRes = await client.publish({
channel: 'public:chat',
data: {input: "test"}
}).catch(err => handleError()); // We throw error in case of unsuccessful
// response from Centrifugo or some other
// internal errors.
// Other available methods
await client.unsubscribe({user: 'user_id', channel: 'channel'});
await client.disconnect({user: 'user_id'})
await client.getHistory({channel: 'channel'})
await client.getPresence({channel: 'channel'})
await client.getChannels()
await client.getInfo()
await client.removeHistory({channel: 'channel'})
FAQs
Javascript library to communicate with Centrifugo HTTP API
The npm package cent.js receives a total of 519 weekly downloads. As such, cent.js popularity was classified as not popular.
We found that cent.js demonstrated a healthy version release cadence and project activity because the last version was released less than 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.