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.
aws-sqs-poll
Advanced tools
Polling messages from AWS SQS
Long polling helps reduce your cost of using Amazon SQS by reducing the number of empty responses (when there are no messages available to return in reply to a ReceiveMessage request sent to an Amazon SQS queue) and eliminating false empty responses (when messages are available in the queue but aren't included in the response):
See here for more information.
$ npm install --save aws-sqs-poll
const awsSqsPoll = require('aws-sqs-poll');
awsSqsPoll('QueueName')
// ["MessageId": "28f61fd2-b9ca-4cb9-879a-71ea8bce4636",
// "ReceiptHandle": "AQEB9mnsxtAZlwnDERxn3yADAP96QRe0KPbqaKXLvvchqmD4jAr",
// "MD5OfBody": "098f6bcd4621d373cade4e832627b4f6",
// "Body": "test"]
awsSqsPoll('QueueName', {AwsAccountId: '123456789012', numberOfMessages: 1, timeout: 20, json: false})
// ["MessageId": "28f61fd2-b9ca-4cb9-879a-71ea8bce4636",
// "ReceiptHandle": "AQEB9mnsxtAZlwnDERxn3yADAP96QRe0KPbqaKXLvvchqmD4jAr",
// "MD5OfBody": "098f6bcd4621d373cade4e832627b4f6",
// "Body": "test"]
Type: string
Type: object
Type: string
AWS account ID of the account that created the queue.
Type: number
Number of messages to be retrieved in 1 polling action. When polling a queue with few messages (< 1000 messages), you will get less messages then the numberOfMessages parameter.
Type: number
Timeout (polling time) to listen to the queue for new messages.
Type: boolean
Flag for converting the data back to JSON format
MIT © Simon Jang
FAQs
Polling messages from AWS SQS
We found that aws-sqs-poll 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
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.