
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
dynamodb-touch
Advanced tools
[](https://travis-ci.org/mapbox/dynamodb-touch)
Simulated DynamoDB Stream events based on the contents of a DynamoDB table.
Performs either a GetItem, Query, or Scan operation on a DynamoDB table, then
passes each resulting record into a Kinesis stream in a wrapper identical to
what would be provided by a DynamoDB stream INSERT
event.
You must provide your own configured Dyno and Kinesis clients. The Kinesis client must be pre-configured to provide the stream name with each request.
var touch = require('dynamodb-touch');
var AWS = require('aws-sdk');
var Dyno = require('dyno');
var clients = {
dyno: Dyno({
table: 'my-dynamodb-table',
region: 'us-east-1'
}),
kinesis: new AWS.Kinesis({
region: 'us-east-1',
params: { StreamName: 'my-kinesis-stream' }
})
};
// send one event for a dynamodb record with the provided key
touch.one({ id: 'some-record' }, clients, function(err) {
if (err) throw err;
});
// query dynmodb, sending events for each result
touch.some({
KeyConditions: {
id: {
ComparisonOperator: 'EQ',
AttributeValueList: ['some-record']
}
}
}, clients, function(err) {
if (err) throw err;
});
// scan every record in dynamodb, sending events for each result
touch.every(clients, function(err) {
if (err) throw err;
});
// send one event for a feature that has already been fetched
var item = { id: 'record-id', data: 'record-data' };
touch.thisOne(item, clients, function(err) {
if (err) throw err;
});
A Kinesis event will contain a Data
property. For dynamodb-touch events, this
will be a base64-encoded JSON string which mimics a DynamoDB Stream event.
kinesis.getRecords({ ShardIterator: 'xyz' }, function(err, data) {
var record = data.Records[0];
var dynamodbEvent = JSON.parse((new Buffer(record.Data, 'base64')).toString());
console.log(JSON.stringify(dynamodbEvent, null, 2));
});
... will console.log:
{
"eventId": "0",
"eventVersion": "1.0",
"awsRegion": "us-east-1",
"eventSourceARN": "arn:aws:dynamodb:us-east-1:000000000000:table/my-dynamodb-table/dynamodb-touch",
"eventSource": "dynamodb-touch",
"eventName": "INSERT",
"dynamodb": {
"Keys": {
"id": { "S": "my-record" }
},
"NewImage": {
"id": { "S": "my-record" },
"data": { "B": "aGVsbG8geW91" }
},
"StreamViewType": "NEW_IMAGE",
"SequenceNumber": "0",
"SizeBytes": 52
}
}
FAQs
[](https://travis-ci.org/mapbox/dynamodb-touch)
The npm package dynamodb-touch receives a total of 0 weekly downloads. As such, dynamodb-touch popularity was classified as not popular.
We found that dynamodb-touch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 43 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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.