
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.
@imec/digital-twin-kafka-utils
Advanced tools
## Description Styleguide used for the Digital Twin project. It's meant to be available publicly from NPM.
Styleguide used for the Digital Twin project. It's meant to be available publicly from NPM.
You need to make sure to initialize the KafkaConnectionManager instance before using the producer or consumer.
import createKafkaManager from 'digital-twin-kafka-utils'
const kafka = await createKafkaManager({
ip: 'localhost',
port: '9092',
clientId: 'digital-twin',
consumerGroupId: 'my-group'
});
Send a single or multiple messages on a topic. The payload is mapped to the value of the kafka message. It's used as an array so we can send a batch if needed.
await kafka.publish({
topic: 'my-topic',
type: 'Road Closing',
headers: {},
payload: [`{}`],
compression: CompressionTypes.GZIP,
})
/!\ If using eachMessage, the eachBatch won't be called as it's the way kafkaJS has done the implementation.
// By each message
await kafka.subscribe({
topic: 'my-topic',
eachMessage: (messagePayload) => {
console.log("messagePayload", messagePayload);
},
})
// By batch
await kafka.subscribe({
topic: 'my-topic',
eachBatch: (batchPayload) => {
console.log("batchPayload", batchPayload);
},
})
FAQs
[](https://dev.azure.com/apt-x/Digital%20Twin/_build/latest?definitionId=128&branchName=master)
The npm package @imec/digital-twin-kafka-utils receives a total of 1 weekly downloads. As such, @imec/digital-twin-kafka-utils popularity was classified as not popular.
We found that @imec/digital-twin-kafka-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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.