
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.
mwp-logger-plugin
Advanced tools
We use Bunyan for server-side logging in the platform, which provides JSON-encoded logs for production and a pretty- printing CLI for dev.
In general, server code should prefer to access the logger through the Hapi
server instance at server.app.logger
.
// Direct `server` access
function myModule(server) {
server.app.logger.info('Hello module');
}
// Access through `request.server`
function requestHandler(request) {
request.server.app.logger.info('Hello request handler');
}
// Access through `response.request.server`
function responseHandler(response) {
response.request.server.app.logger.info('Hello response handler');
}
If a module does not have access to the server
instance, the logging
instance can also be imported directly at the cost of function purity and
slightly more complex unit testing configuration to mock the logger module.
import { logger } from 'mwp-logger-plugin';
function doStuff() {
logger.info('Hello stuff');
}
FAQs
Hapi logging plugin for MWP apps
The npm package mwp-logger-plugin receives a total of 3 weekly downloads. As such, mwp-logger-plugin popularity was classified as not popular.
We found that mwp-logger-plugin 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
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.