Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
ibmmq-facade
Advanced tools
A high abstraction facade to the ibmmq library.
npm install --save ibmmq-facade
const {queueManagerConnector, queueConnector, Queue} = require('ibmmq-facade');
const config = {
host: 'localhost',
port: 1750,
user: 'user',
password: 'password',
queueManagerName: 'qMgr',
channelName: 'chName'
};
(async function() {
try {
// returns the queue manager handle object which must be passed in when connecting a queue
const qmHandle = await queueManagerConnector.connect(config);
const queueName = 'MY_QUEUE';
// returns a queue handle which must be passed to your queue data structure
// when retrieving or sending messages
const queueHandle = await queueConnector.connect(qmHandle, queueName);
} catch (error) {
return false;
} finally {
queueConnector.clean();
queueManagerConnector.clean();
}
})
// this buffer can be any integer lower than the queue managers max message length (in bytes)
// if you know the size of data on a queue, it is best to set this manually
// if you are unsure, then set it to queue managers the max message length
const buffer = queueManagerConnector.getConnectionOptions().ClientConn.MaxMsgLength;
const queue = new Queue(queueHandle, buffer);
while (queue.isMessages()) {
const message = queue.dequeue();
// do something with the message contents?
console.log(message);
}
const queueHandle = queueConnector.connect(queueManagerConnector.getHandle(), 'QUEUE_NAME');
const queue = new Queue(queueHandle);
const message = "Hello World";
queue.enqueue(message);
const queueHandle = queueConnector.connect(queueManagerConnector.getHandle(), 'QUEUE_NAME', true); // true to allow posting to remote queue
const queue = new Queue(queueHandle);
const message = "Hello World";
queue.enqueue(message);
FAQs
A high level interface to the ibmmq library
We found that ibmmq-facade 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.