
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.
hapi-good-logstash-tcp
Advanced tools
A good reporter to communicate directly with a logstash instance using the lumberjack-protocol client
npm install --save hapi-good-logstash
Example for sending all ops events to logstash
connection.register({
register: require('good'),
options: {
opsInterval: 15000,
reporters: [{
reporter: require("hapi-good-logstash"),
args: [{
ops: '*'
}, {
tlsOptions: {
host: "localhost",
port: 8001,
ca: [fs.readFileSync('path to .crt')],
key: [fs.readFileSync('path to .key')],
cert: [fs.readFileSync('path to .crt')]
},
clientOptions: {
maxQueueSize: 500
}
}]
}]
}
}, function (err) {
if (err) {
console.log('Failed loading good plugin', err);
}
});
The clientoptions are passed to the lumberjack-protocol module and the tlsOptions are passed to the node.js tls socket connection directly.
We use a patched version of logstash and the lumberjack input, which only accepts ssl certificates configured in the logstash config, so the socket connection will be reset, if you provide a wrong certificate. This is unfortunately not the default behavior of the official Logstash release. The official logstash package accepts inputs even if provided a completley different certificate.
We published a blog post with a guide how to use our patched setup on our homepages tech section.
FAQs
A good reporter to talk to a logstash server via tcp
We found that hapi-good-logstash-tcp 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.