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-s3-connector
Advanced tools
Tired of all the hassles downloading, removing from and uploading to Amazon S3? The solution is here!
npm install --save aws-s3-connector
S3Connector = require 'aws-s3-connector'
Storage = new S3Connector
credentials: './credentials/aws.json'
Bucket: 'BUCKET_NAME'
var S3Connector = require('aws-s3-connector');
var Storage = new S3Connector({
credentials: './credentials/aws.json',
Bucket: 'BUCKET_NAME'
});
The Bucket is already defined in the Storage! You only need to pass the folder and filename inside S3 as remoteFile.
download 'remoteFile', 'localFile', callback
# or
download 'remoteFile', Buffer, callback
Storage.download 'from-nosql/test.json', './downloads/test.json', (err) ->
return console.error err if err
console.log 'file downloaded'
Storage.download('from-nosql/test.json', './downloads/test.json', function(err) {
if (err) {
return console.error(err);
}
console.log('file downloaded');
});
remove 'remoteFile', callback
# or, to remove multiple files at once
remove ['remoteFile1', 'remoteFile2'], callback
Storage.remove 'from-nosql/test.json', (err) ->
return console.error err if err
console.log 'file removed'
Storage.remove('from-nosql/test.json', function(err) {
if (err) {
return console.error(err);
}
console.log('file removed');
});
upload 'localFile', 'remoteFile', callback
# or
upload Buffer, 'remoteFile', callback
Storage.upload './uploads/answer.json', 'from-kernel/answer.json', (err) ->
return console.error err if err
console.log 'file uploaded'
Storage.upload('./uploads/answer.json', 'from-kernel/answer.json', function(err) {
if (err) {
return console.error(err);
}
console.log('file uploaded');
});
{
"accessKeyId": "YOUR_ACCESS_KEY_ID",
"secretAccessKey": "YOUR_SECRET_ACCESS_KEY",
"region": "YOUR_REGION"
}
FAQs
Amazon WebService S3 Connector
The npm package aws-s3-connector receives a total of 1 weekly downloads. As such, aws-s3-connector popularity was classified as not popular.
We found that aws-s3-connector 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.