Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
amqp-producer
Advanced tools
Package is able to connect to AMQP server and send messages to queue. Messages will be send as encoded JSON. The main approach is to send encoded JSON as message to queue in which it should be decoded and send an email based on given JSON
const {MailerProducerService} = require('amqp-producer');
// Create mailerProducer instance
const mailerProducerConfig = [
'amqp',
'localhost',
5672,
'guest',
'guest',
'/',
'email_queue'
];
const mailerProducer = new MailerProducerService(...mailerProducerConfig);
const start = async () => {
// Start mailProducer
await mailerProducer.start();
// Send message to queue
const emailConfig = [
'user@example.com',
['admin1@example.com', 'admin2@example.com'],
'My Subject',
'My Text'
];
mailerProducer.sendEmailMsg(...emailConfig);
// Stop mailProducer
mailerProducer.stop();
};
start();
An implementation of AMQP Producer
Kind: global class
Param | Type |
---|---|
protocol | string |
hostname | string |
port | number |
username | string |
password | string |
vhost | string |
queue | string |
Promise.<void>
Setup connection, channel and queue
Kind: instance method of MailerProducerService
Close connection
Kind: instance method of MailerProducerService
Send email msg to queue
Kind: instance method of MailerProducerService
Param | Type |
---|---|
to | string |
cc | Array.<string> |
subject | string |
text | string |
FAQs
AMQP Producer wrapper for emails
The npm package amqp-producer receives a total of 1 weekly downloads. As such, amqp-producer popularity was classified as not popular.
We found that amqp-producer 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.