Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
http-test-servers
Advanced tools
Speeds up some http servers on localhost to facilitate acceptance tests of applications that require api interactions
Speeds up some http servers for testing pourposes.
npm http-test-servers
// Routes first. They can be a simple string (will be a get route), or objects as follows
var routes = {
route1: '/getData',
route2: {
route: '/postData2',
method: 'post',
statusCode: 302,
response: { 'hello': 'world' }
}
};
// Next the servers. The optional delay is to simulate a delay on the response. For each one the same routes will be created
var servers = {
server1: {
port: 3006
},
server2: {
port: 3007,
delay: 2000
}
};
// Optional: the options.
var options = { logger: true };
// init
var testServers = new TestServers(routes, servers, options);
// start them
testServers.start(function(testServers){
// if you want, take a look at this
console.log(testServers)
// don't forget to kill them
testServers.kill(function(){
console.log('killed everything');
});
});
(Boolean): Displays some info on the console every time a request is made
npm test
MIT
FAQs
Speeds up some http servers on localhost to facilitate acceptance tests of applications that require api interactions
The npm package http-test-servers receives a total of 1,435 weekly downloads. As such, http-test-servers popularity was classified as popular.
We found that http-test-servers 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.