
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
@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
The npm package @cloudcmd/fileop receives a total of 919 weekly downloads. As such, @cloudcmd/fileop popularity was classified as not popular.
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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.