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.
Modern XMPP in the browser, with a JSON API.
Stanza is a library for using modern XMPP in the browser, and it does that by exposing everything as JSON. Unless you insist, you have no need to ever see or touch any XML when using Stanza.
$ npm install stanza
git clone https://github.com/legastero/stanza.io.git
npm install
in the new stanza.io
directory.npm run build
to create dist/stanza.browser.js
.demo.html
in your browser.var client
).var XMPP = require('stanza');
var client = XMPP.createClient({
jid: 'echobot@example.com',
password: 'hunter2',
// If you have a .well-known/host-meta.json file for your
// domain, the connection transport config can be skipped.
transport: 'websocket',
wsURL: 'wss://example.com:5281/xmpp-websocket'
// (or `boshURL` if using 'bosh' as the transport)
});
client.on('session:started', function() {
client.getRoster();
client.sendPresence();
});
client.on('chat', function(msg) {
client.sendMessage({
to: msg.from,
body: 'You sent: ' + msg.body
});
});
client.connect();
MUC Room: discuss@stanzajs.org / Logs
If you like this, follow @lancestout on twitter.
FAQs
Modern XMPP in the browser, with a JSON API
The npm package stanza receives a total of 4,810 weekly downloads. As such, stanza popularity was classified as popular.
We found that stanza 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.
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.