
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
CQI stands for Common Queue Interface, inspired by CGI.
CQI is a simple and extensible framework to develop queue worker application. It listens message from a queue, and dispatch the messages to an another process through the standard I/O.
The following code listens SQS queue, and executes application.sh
for each message. application.sh
inputs message body via STDIN, and return the exit code 0 if succeeded.
import { CQI } from '../src/index'
const cqi = CQI.instance
const listener = CQI.factory.listeners.create('sqs', {
region: 'your-region-1', // Your region
queueUrl: 'https://sqs.your-region-1.amazonaws.com/ACCOUNT/QUEUE', // Your queueu URL
})
const dispatcher = CQI.factory.dispatchers.create('exec', {
programFilePath: 'application.sh'
})
cqi.runDefaultContainer(listener, dispatcher)
Listener receive messages from a queue, and passes them to the dispatcher.
array
Listener to dispatch smessages as string array. (for debugging)repl
Listener to dispatch message input from console. (for debugging)sqs
Amazon SQS listener.Dispatcher passes a queue message from listener to the processer, and decide if successfully consumed.
EchoDispatcher
Only echo the message.ExecDispatcher
CGI style. Starting a new process for each message.StdioDispather
Server style. Single process receives messages as lines from STDIN.ExecDispatcher
starts new process for each message, and writes the JSON to STDIN. If the exit status is 0, the message processed successfully.
StdioDispather
starts a new process at first, and write each message as a JSON line to STDIN. The process outputs blank line if successfully consumed. Not blank line assumed an error message.
Container joins listener and dispather. There is only one Container
.
FAQs
Common Queue Interface inspired by CGI.
The npm package cqi-core receives a total of 6 weekly downloads. As such, cqi-core popularity was classified as not popular.
We found that cqi-core 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.