
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.
abstract-log
Advanced tools
An abstract interface to build data processing applications on a log-based architecture.
An abstract interface to build data processing applications on a log-based architecture.
The idea would be to have implementations that would allow reading/writing to files, databases, kafka, redis, etc.
This is basically abstract-blob-store for append-only logs.
To understand all this append only log stuff and why it's useful to build data processing systems, watch this great talk by Martin Kleppman.
Basically Kafka is all good and well, but very heavy until you need that kind of scale. This project enables you to build on this kind of architecture and then scale up to bigger logging back-ends when you need to.
// There's a reference implementation of the memory based log included. Should be its own
// module
const memLog = require('abstract-log/mem-log');
// If this were a database log then you would pass through a connection string
let log = memLog();
// append to the log (currently the offset can be an object, not just an integer)
let offset = await log.append({ msg: 'hello world' });
// read from the log
let data = await log.get(offset);
// stream from the log
let offset = 0; // use 0 as initial offset as this is a memory log
log.createReadStream(offset)
.on('data', console.log);
// stream to a log
const arrayToStream = require('array-to-stream');
arrayToStream([0, 1, 2, 3, 4].map((i) => ({ msg: `hello world ${i}` })))
.pipe(log.createWriteStream());
knex
database library to log to postgres, sqlite, mysql, etcNB: Please feel free to contribute implementations. PRs welcome!
abstract-blob-store
Some logs don't have efficient push mechanisms for changes. So you have to poll for changes. Check out polling-stream which helps you create a perpetual stream of changes.
WIP. Currently - See tests.
FAQs
An abstract interface to build data processing applications on a log-based architecture.
The npm package abstract-log receives a total of 0 weekly downloads. As such, abstract-log popularity was classified as not popular.
We found that abstract-log demonstrated a not healthy version release cadence and project activity because the last version was released 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.
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.