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.
Some added sugar on top of express to give our our some sensible defaults and a little structure.
Some added sugar on top of express to give our app some sensible defaults and a little structure.
npm install elephas --save
var config = {
__dirname: __dirname,
server: {
port: 3000,
cluster: false
},
httpsOnly: false
};
var elephas = require('elephas')(config);
elephas.createServer();
##Options ...
##Hooks
Using the following hooks, you can jump in between each stage of the boot process to run your own code. You MUST execute the done()
callback so that the boot process can continue. All hooks are optional.
elephas.createServer({
beforeRoutes: function(done, app) {
// Do some stuff here
done(); // Let elephas know when you have finished
}
});
####List of hooks (in order of execution)
##Logging A winston logger.
var logger = require('elephas/lib/logger');
logger.info('Info message');
logger.warn('Warning message');
logger.error('Error message');
npm test
FAQs
Some added sugar on top of express to give our our some sensible defaults and a little structure.
The npm package elephas receives a total of 5 weekly downloads. As such, elephas popularity was classified as not popular.
We found that elephas demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
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.