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.
hany-consul-backup-restore
Advanced tools
consul-backup-restore is a way of easily restoring and backing up key value pairs from consul. It works with Amazon's S3 service or by default locally.
npm install consul-backup-restore
var ConsulBackupRestore = require('consul-backup-restore');
var cbr = new ConsulBackupRestore({host: 'localhost', port:8500});
cbr.backup(
{prefix: 'serviceName', filePath:'path/to/myFile'},
function(err, result) {
if (err) throw err;
console.log(result)
}
)
Callbacks has an error argument and a result argument. The result argument will either be the name of the file, or the s3 data dump.
Options
cbr.restore(
{prefix: 'serviceName', override: true, filePath:'path/to/myFile'},
function(err, result) {
if (err) throw err;
console.log(result)
}
)
Callbacks has an error argument and a result argument. The result will return an array of keys that were backed up. For example a key that already exists in consul will only be returned if the override is set to true.
Options
To run the tests locally you must have a consul instance running. We do this through docker.
docker run -d -p 8500:8500 -p 8600:53 -p 8400:8400 consul agent -dev -client 0.0.0.0 -advertise 127.0.0.1
From then you can run your tests using mocha
FAQs
Library to backup and restore consul key values
The npm package hany-consul-backup-restore receives a total of 0 weekly downloads. As such, hany-consul-backup-restore popularity was classified as not popular.
We found that hany-consul-backup-restore 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.