
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.
@cloudcmd/fileop
Advanced tools
File operations emitter middleware.
npm i @cloudcmd/fileop
Could be loaded from url /fileop/fileop.js.
Initialize operator.
options:
prefix - prefix of fileop (/fileop by default)socketPrefix - prefix of socket.io (`/fileop' by default)Returns operator in callback.
It is EventEmitter from the inide produce next types of events:
errorprogressfileendSupports next types of operations:
operator.copy(from, to, names)operator.move(from, to, names)operator.remove(from, names)operator.extract(from, to)operator.zip(from, to)operator.tar(from, to)const prefix = '/fileop';
const operator = await fileop({
prefix,
});
const from = '/';
const to = '/tmp';
const names = ['bin'];
const progress = (value) => {
console.log('progress:', value);
};
const end = (op) => () => {
console.log('end');
op.removelistener('progress', progress);
op.removelistener('end', end);
};
const error = (op) => (data) => {
const msg = `${data}\n continue?`;
const is = confirm(msg);
if (is)
return op.continue();
op.abort();
};
const op = await operator.copy(from, to, names);
op.on('progress', progress);
op.on('end', end(op));
op.on('error', error(op));
import http from 'node:http';
import {fileop} from 'fileop';
import express from 'express';
import {Server} from 'socket.io';
const app = express();
const port = 1337;
const server = http.createServer(app);
const socket = new Server(server);
server.listen(port);
app.use(fileop({
prefix: '/fileop', /* default */
}));
fileop.listen(socket, {
// default
prefix: '/fileop', // string or a function
root: '/',
auth: (accept, reject) => (username, password) => {
if (username === 'root' && password === 'toor')
accept();
reject();
},
});
socket.io and copymitterMIT
FAQs
file operations emitter middleware
We found that @cloudcmd/fileop 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
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.