
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
logstub is a basic library to stub logging calls when an external logger is expected to be passed to your libraries and applications.
$ npm install logstub
const LogStub = require('logstub');
class YourClass {
constructor(logger) {
// Stub out the logger when none is passed to the class constructor.
this.logger = logger || new LogStub();
}
someMethod() {
try {
this.logger.info('Some Logging Info');
} catch (err) {
this.logger.error(err);
}
}
}
The logging stub will handle method calls for log
, silly
, debug
, info
, verbose
, warn
, error
, critical
, fatal
, trace
, and all
with any number of parameters making it compatible for stubbing general logging from a number of popular logging libraries such as Winston, Log4JS, and Bunyan.
It also supports all standard console
methods.
Copyright (c) 2017-2019 Jay Reardon Copyright (c) 2019-2021 Out of Sync Studios Licensed under the MIT license.
FAQs
A basic libray to stub logging calls when an external logger is expected.
The npm package logstub receives a total of 667 weekly downloads. As such, logstub popularity was classified as not popular.
We found that logstub demonstrated a not healthy version release cadence and project activity because the last version was released 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.