
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
#Kine
Kine makes reading from an aws kinesis stream easy.
Features:
init
and processRecords
callbacksvar Kine = require('kine');
var kcl = Kine({
region: 'us-east-1',
streamName: 'teststream',
shardIteratorType: 'TRIM_HORIZON',
table: 'teststream-kine',
init: function(done) {
// do initial setup, context `this` will also be available in processRecords
console.log(this.id) // `this.id` is the shardId
done();
},
processRecords: function(records, done) {
// records is an array of records from kinesis.
console.log(records.length);
console.log(this.id); // `this.id` is the shardId.
// done(err) will throw. Restart with a process manager like upstart
// done(null, false) with fetch more of the Kinesis stream and not checkpoint
// done(null, true) will checkpoint, then fetch more off the Kinesis stream.
done(null, true);
}
});
A kine instance can be halted using stop
. This will cause any future events to bail out and
remove internal timers
var Kine = require('kine');
var kcl = Kine(/* config */);
kcl.stop();
An instance can be queried by record Partition Key. This allows applications to locate which shard and instance are responsible for particular records in the stream.
var Kine = require('kine');
var kcl = Kine(/* config */);
kcl.instanceInfo('0230102', function (err, info) {
// info contains shardId, instance, hashKeyStart and hashKeyEnd
// for the shard that contains records with partition key '0230102'
});
FAQs
Simple client for kinesis
The npm package kine receives a total of 7 weekly downloads. As such, kine popularity was classified as not popular.
We found that kine demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 64 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.