
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
(pronounced "ss-three-mer")
Automatically upload files to S3 as they're created
s3reamer watches a provided directory and starts uploading newly created files as soon as they're created. It uses rb-inotify
for filesystem event notifications. As such, it only works on Linux systems.
When it detects a new file, it immediately begins uploading it to S3 using the multipart upload API. It buffers each part (default and minimum 5MB) in memory.
s3reamer is available on Rubygems. You can install it with:
$ gem install s3reamer
You can also add it to your Gemfile:
gem 's3reamer'
In order to access the executables, you might have to do something like:
rbenv rehash
depending on how your Ruby environment is configured.
It's probably easiest to use the bundled ruby script:
$ s3reamer
Usage: s3reamer DIRECTORY BUCKET_NAME [options]
-r, --region [AWS_REGION]
--file-read-timeout [SECONDS]
Number of seconds to wait for a file to grow before timing out (defaults to 10)
--reader-sleep-interval [SECONDS]
Number of seconds to sleep after an attempted read (defaults to 1)
-n, --parallelism [N] Maximum number of concurrent files being processed (defaults to 4)
-v, --verbose
-c, --aws-credientials [PATH] Path to AWS credentials file. Defaults to ~/.aws/credentials
-p [PROFILE], AWS credentials profile. Defaults to "default".
--aws-credentials-profile
--s3-prefix [PREFIX] Prefix to append to all uploaded files. Defaults to empty string.
It expects credentials to be in the standard AWS credentials conf format, and reads from ~/.aws/credentials
by default:
$ cat ~/.aws/credentials
[default]
aws_access_key_id = <access_key_id>
aws_secret_access_key = <secret_access_key>
region = us-east-1
It's important to note that s3reamer will NOT attempt to upload files that already exist (and don't change) when it's started.
FAQs
Unknown package
We found that s3reamer 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
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.