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.
View, Filter, and Analyze the logs in real time
Errsole is an open-source logger with built-in dashboard. It goes beyond traditional logging by capturing log messages and storing them in a specified database. What sets Errsole apart is its interactive web dashboard, which allows users to effortlessly view, filter, and analyze their logs in real time.
Installation: Begin by installing Errsole and its MongoDB adapter through npm:
npm install errsole errsole-mongodb
Configuration: Initialize Errsole in your application with MongoDB as the storage option:
const errsole = require('errsole');
const ErrsoleMongoDB = require('errsole-mongodb');
// or using ESM
// import errsole from 'errsole';
// import ErrsoleMongoDB from 'errsole-mongodb';
errsole.initialize({
storage: new ErrsoleMongoDB('your-mongodb-url', 'your-database-name'),
port: 8001, // Optional: Specify the dashboard port (default is 8001)
path: '/' // Optional: Specify the dashboard base path (default is '/')
});
'your-mongodb-url'
with your actual MongoDB connection URL.'your-database-name'
with the name of the database where logs should be stored.Integrate Errsole into a simple Express app to see it in action:
const errsole = require('errsole');
const ErrsoleMongoDB = require('errsole-mongodb');
errsole.initialize({
storage: new ErrsoleMongoDB('your-mongodb-url', 'your-database-name'),
port: 8001, // Optional: Specify the dashboard port (default is 8001)
path: '/' // Optional: Specify the dashboard base path (default is '/')
});
// Errsole setup (as shown above)
const express = require('express');
const app = express();
app.get('/', (req, res) => {
res.send('Hello World');
});
app.listen(3000, () => console.log('Server running on http://localhost:3000'));
Once Errsole is integrated and your application is running, access the Errsole dashboard through your web browser:
http://localhost:8001/
If you specified a custom port or path during initialization, adjust the URL accordingly.
Contributing: Contributions are highly encouraged! If you have suggestions for improvements, feel free to fork the repository, make your changes, and submit a pull request.
Support: For support, questions, or feature requests, please open an issue on the GitHub repository. We're here to help make Errsole even better!
FAQs
Collect, Store, and Visualize Logs with a Single Module
The npm package errsole receives a total of 339 weekly downloads. As such, errsole popularity was classified as not popular.
We found that errsole demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.