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.
This is an implementation of the Google Wave Gadget API using Node.js, WebSockets, and a key/value store.
It uses diff-match-patch to synchronize states across multiple instances: clients send patches to the server, which then propagates the patches to other clients which apply the patches to their local state model. So no matter how big the state model becomes, each update event is quite small.
You need to install Node.js with SocketIO and Keys:
$ npm install socket.io
$ npm install keys
$ npm install redis
To run the examples, you need to start your Redis server, and start Wave-Node using:
$ node server.js
You can then run the examples by opening examples/index.htm in a browser and following the instructions on the page.
Each page or widget wanting to use the service needs to import the following JavaScript files:
diff_match_patch.js
json2.js
socket.io.js
wave.js
These can all be found in the "client" folder
In addition you need to call the following methods in your own scripts after importing the wave.js library:
wave.setSharedDataKey(key) : this is the "context identifier" for the pages/widgets that will share state.
wave.setViewer(id, name, icon src) : this is the current user's information
For example:
wave.setSharedDataKey("SPACE1");
wave.setViewer("mindyourownbusiness","alice","smileys/rabbit.png");
When both have been set, your page/widget will handshake with the server.
You can then use the Wave Gadget API as described at: http://code.google.com/apis/wave/extensions/gadgets/guide.html
Note that private states are not supported yet, nor are getHost() or state.clear().
FAQs
Wave Gadget API implementation
The npm package wave receives a total of 25 weekly downloads. As such, wave popularity was classified as not popular.
We found that wave 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.