
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.
http-performance
Advanced tools
I use httpstat to test my rest api's performance and then I want to write a module to get the performance of http.
The moudle can get the request and response of http, including dns, method, url and so on.
// please require the module first
const httpPerf = require('http-performance');
const http = require('http');
httpPerf.on('stats', (stats) => {
/* { type: 'request',
dns: { ip: '14.215.177.38', addressType: 4 },
requesting: 0,
method: 'GET',
host: 'www.baidu.com',
url: '/',
status: 200,
bytes: 15358,
timing: { socket: 9, dns: 2, tcp: 6, processing: 13, transfer: 5, all: 35 } }
*/
console.info(stats);
});
http.get('http://www.baidu.com/');
// please require the module first
const httpPerf = require('http-performance');
const http = require('http');
const express = require('express');
httpPerf.on('stats', (stats) => {
if (stats.type !== 'response') {
return;
}
/* { type: 'response',
method: 'GET',
timing: { all: 1013, socket: 0 },
status: 200,
url: '/',
bytes: 60,
responsing: 0 }
*/
console.info(stats);
});
const app = express();
app.use((req, res, next) => setTimeout(next, 1000));
app.use((req, res) => {
res.json({
message: 'hello world',
});
});
const server = app.listen();
const url = `http://127.0.0.1:${server.address().port}`;
http.get(url);
Diable or enable the http stats type, default is enabled.
const httpPerf = require('http-performance');
httpPerf.disable('request');
httpPerf.enable('request');
MIT
FAQs
Get the http perfomance
We found that http-performance 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
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.