Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
If you need a system easy to use that provides you a periodic (or at specific time) backup. This is your package.
Right now this package is tested only on Ubuntu 20.04 LTS and you need to have the following packages in order to work:
sudo apt install zip
100.5.2
Just npm i -g ec-backup
or use it with npx ec-backup
ec-backup
will read its instructions (see section below for this).ec-backup validate -f <yourconfigfilepath>
If you want to backup only one time (or to verify that your process works well) just: ec-backup backup -f <yourconfigfilepath>
Also, you can use --dry
to do not notify and upload your backup zip, but you can check that backup file is created where you specify in the config:
To create the process you must specify an ID, some examples:
ec-backup cron --id example-id -f <yourconfigfilepath>
: create a cron processec-backup cron --stop --id example-id
: try to stop a cron process with id example-idec-backup cron --list
: list all current cron precessesConfiguration file is split in 3 main parts:
mongo
: backup your database from MongoDBfile
: choose files from your system to backuptelegram
: uses a channel and a bot to notify all your backupsconsole
: just print to consolegcp
: Google Cloud Storagenone
: drop it where you specified in outputDir fieldUse following examples (backup engines, notificator, uploader) to make your own config file, here is the skeleton:
{
"cron": "* * * * * *", // Cron schedule expression (https://crontab.guru)
"outputDir": "/tmp", // Temporary folder to store your backup until upload
"engine": { ... } // Backup engine config,
"notificator": { ... } // Notificator config,
"uploader": { ... } // Uploader config
}
{
"type": "mongo",
"databaseHost": "", // Host name of your MongoDB
"databasePort": 27017, // [Optional] Database port. Defaults to 27017
"databaseName": "",
"username": "" // [Optional] In case that your DDBB needs auth
"password": "" // [Optional]
}
{
"type": "file",
"path": "" // Path to drop out the zipped backup
}
{
"type": "telegram",
"chatId": "", // ID of the chat where you want to be notified
"botToken": "" // Token ID (without "bot" prefix in case that have) (https://core.telegram.org/bots)
}
Note: You can obtain the chatId from this URL: https://api.telegram.org/bot/getUpdates. Substitute <putYourToken>
with your bot token
{
"type": "console"
}
{
"type": "gcp",
"storageKeyPath": "", // JSON Key file that authenticate your program on GCP
"backupsFolderPath": "", // [Optional] Name of the folder inside the bucket to put the backup. Defaults to "backups"
"bucketName": "",
"projectId": ""
}
FAQs
Backup tool to make it easy
The npm package ec-backup receives a total of 4 weekly downloads. As such, ec-backup popularity was classified as not popular.
We found that ec-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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.