
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
connect.io
Advanced tools
Real-time bidirectional event-based communication in Chrome extensions or Apps inspired by Socket.IO.
npm i -S connect.io
Client(content-scripts.html):
<script src="node_modules/connect.io/dist/connect.js"></script>
<script>
const client = new ChromeConnect.Client('optional extensions or apps id or tabId, default value is chrome.runtime.id');
client.on('welcome',(msg) => {
console.log(msg); // 'hello world'
});
// get message acknowledgements
client.send('report clients number', (number, error) => {
// When connection has been disconnected until get response, then error will be a string.
// It's often happened when you connect to a tab from extension but you don't have permission. (etc chrome:// 、chrome-extension://)
if( error ) {
throw new Error(error);
}
console.log(number); // 100
});
</script>
background.html:
<script src="node_modules/connect.io/dist/connect.js"></script>
<script>
const server = new ChromeConnect.Server();
server.on('connect',(client)=> {
if (client.exteranl && client.port.sender.url === blackList) {
client.disconnect();
return;
}
// Only send message to this connection client.
client.send('welcome','hello world');
// Sending a message to everyone else except for the connection that starts it.
client.broadcast('join','new client joined.');
// Sending acknowledgements
client.on('report clients number', (data, sendResponse) => {
console.log(data); // when no data send to server, the data argument will be undefined
sendResponse(100);
});
client.on('disconect', () => {
// Sending messge to every connection.
server.send('Someone out');
});
});
</script>
FAQs
Real-time bidirectional event-based and Promise friendly communication in Chrome extensions or Apps inspired by Socket.IO.
The npm package connect.io receives a total of 5 weekly downloads. As such, connect.io popularity was classified as not popular.
We found that connect.io 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 researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.