
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@crowdin/logs-formatter
Advanced tools
This module is designed to modify the standard console methods, ensure that the messages are properly formatted for integration with the ELK, and provide middleware for Express to work seamlessly with these methods on the frontend:
const logsFormatter = require('@crowdin/logs-formatter');
logsFormatter.setup();
const app = express();
app.use(express.json({ limit: '50mb' }));
app.use(logsFormatter.expressMiddleware());
app.use(logsFormatter.contextResolverMiddleware());
console.log();
console.debug();
console.info();
console.warn();
console.trace();
console.error();
console.fatal();
setContext({ project: { id: 1, identifier: 'newproject', organization_id: 200000001, user_id: 12 } })
While ELK supports a variety of attributes, note that not all of them are included in the current version of this formatter. Some examples of these attributes are:
"user.id", "user.login", "project.id", "project.identifier", "organization.id", "organization.domain", "client.ip"
"user_agent.original", "http.request.referrer", "url.original", "extra.attributes", "extra.backtrace"
FAQs
Used in Crowdin Apps to output console logs in JSON format
We found that @crowdin/logs-formatter demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.