
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
@pubkeeper/browser-client
Advanced tools
@pubkeeper/browser-client enables web browsers to join, consume, and produce content on a Pubkeeper network. This package is an aggregate package that combines sane defaults for using Pubkeeper in a browser.
Using npm:
$ npm install --save @pubkeeper/browser-client
Then, load using ES5 require() syntax…
var PubkeeperClient = require('@pubkeeper/browser-client').PubkeeperClient;
…or with ES2015+ import syntax:
import { PubkeeperClient, WebSocketBrew } from '@pubkeeper/browser-client';
<script src='https://unpkg.com/@pubkeeper/browser-client/dist/pubkeeper-browser-client.min.js'></script>
import { PubkeeperClient, WebSocketBrew } from '@pubkeeper/browser-client';
const client = new PubkeeperClient({
server: '[ws/wss]://[your-pk-server]:[your-pk-port]/',
jwt: 'your-pk-token',
brews: [
new WebSocketBrew({
brewerConfig: {
hostname: 'your-websocket-host',
port: 'your-websocket-port',
secure: true,
},
}),
],
});
client.connect().then(() => {
console.log('ready!');
});
client.addBrewer('topic.text', (brewer) => {
const id = setInterval(() => { brewer.brewText('Hello World!'); });
return () => { clearInterval(id); };
});
client.addPatron('topic.text', (patron) => {
// is activated
const handler = (uint8, meta) => {
console.log('sender:', meta.from);
console.log('topic:', meta.topic);
console.log('raw data:', uint8);
console.log('text data:', new TextDecoder().decode(uint8));
console.log('JSON data:', JSON.parse(new TextDecoder().decode(uint8)));
}
// The message event is always invoked with a Uint8Array as data, no matter which brew*() method was called on the brewing side.
// Pending a future version, you will need to handle parsing/casting those bytes.
patron.on('message', handler);
return () => {
// deactivation/tear-down
patron.off('message', handler);
};
});
FAQs
Pubkeeper Client packaged for the browser
The npm package @pubkeeper/browser-client receives a total of 48 weekly downloads. As such, @pubkeeper/browser-client popularity was classified as not popular.
We found that @pubkeeper/browser-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.