
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
micro-app-cloud-backup
Advanced tools
Micro app to do backups for docker images, upload contents of one or more directories and download the contents of one or more directories. It currently supports backups and upload/downloads to your google drive. It uses the google-drive-wrapper project/npm and you must set up google drive credentials as outlined in the readme for that project.
For me the initial use case will be to backup docker images and lxc images which I have running in virtual machines hosted in the cloud.
For docker image backups, a new copy will only be upload if the image has changed or the target folder on google drive does not already include a backup that matches the current version of the image.
For files being uploaded, the contents of the specified directories will be uploaded and once each file is uploaded it will be transferred to the specified "Move To" directory such that the source directory will be empty at the end of the transfer.
For downloaded files, files will only be downloaded from the source google drive folder if a copy does not already exist in the local destination folder.
Docker images and files which are uploaded are both encrypted and compressed as part of the upload. Before using please ensure you have validated that the encryption is suitable for the data you are protecting and that you have verified the implementation.
The GUI for the micro app allows the docker images that will be backed up to be configured. It is possible to exclude images from the available list through a blacklist in the configuration file. For folders that will be uploaded/download these can only be configured in the config file and the GUI provides only a read only view of the configuration. The GUI also has a tab to display the log events.
As backups are important the micro-app also supports sending sms messages (using https://www.twilio.com/) when errors that may affect backup/upload/download progress occur.
You can use the micro-app in the browser or get native look and feel on desktop and mobile devices with the micro-app-cordova-launcher and micro-app-electron-launcher projects.
You will want to setup your docker configuration so that docker commands can be issued by a non-root user as you don't want to run the micro-app as root. Some instructions on how to do that are available here: http://askubuntu.com/questions/477551/how-can-i-use-docker-without-sudo
Here are some sample screenshots:
Most of the configuration is done in the lib/config.json file which supports the following configuration options:
Each of the entries for uploadDirs has the following fields:
Each of the entries for downloadDirs has the following fields:
If required the key/certificate can be created using a command along these lines (if tls is "true"):
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout key.pem -out cert.pem
This is an example of a configuration file with sensitive parts masked out:
{ "serverPort": 9000, "tls": "true", "authenticate": "true", "authInfo": {"username": "xxxxxx", "password": "xxxxxxxxxxx", "realm": "backup"}, "clientSecretDir": "/home/user1/", "clientSecret": "client_secret", "encPassword": "xxxxxxx", "gdriveDockDir": "/backups/machine1", "dockerSchedule": "32 * * * *", "eventLogPrefix": "./", "uploadDirs": [ { "localdir": "/home/user1/upload1", "localdirDone": "/home/user1/uploadDone", "gdriveDir": "/backups/back1", "schedule": "10 * * * *" }, { "localdir": "/home/user1/upload2", "localdirDone": "/home/user1/uploadDone", "gdriveDir": "/backups/back2", "schedule": "15 * * * *" } ], "downloadDirs": [ { "gdriveDir": "/backups/back1", "localdir": "/home/user1/download1", "schedule": "1 * * * *" }], "twilio": { "accountSID": "xxxxxxxxxxxxxxxxxxx", "accountAuthToken": "xxxxxxxxxxxxxxxxxx", "fromNumber": "xxxxxxxxxx", "toNumber": "xxxxxxxxxxx", "sendError": true }, "blacklist": [ "ubuntux:latest" ] }
The easiest way to install is to run:
npm install micro-app-cloud-backup
and then configure the default config.json file in the lib directory as described in the configuration section above.
Simply cd to the directory where the npm was installed and type:
npm start
FAQs
micro app to do backups to cloud storage services
We found that micro-app-cloud-backup 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.