
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
couchtool is a simple backup/restore tool for Apache CouchDB and databases compatible with its API. The on disk format used is one file per document/attachment. This was chosen so that the backups are easily rsnapshot-able, without making a full copy on each snapshot.
npm install -g couchtool
Show database info:
# Print db size and document count
couchtool dump http://localhost:5984/some_db
Create backup:
# Dump all documents in ./some_db/ directory
couchtool dump http://localhost:5984/some_db
Restore from backup:
# Read and soreall documents from ./some_db/ directory
couchtool restore http://localhost:5984/some_db
By default the the docs will be split in 10 directories docs.0/ to docs.9/. If you want to change the number of directories you can use --buckets :
# Split documents in 100 directories
couchtool --buckets 100 restore http://localhost:5984/some_db
You can use the buckets command to find appropriate bucket number for large databases:
# Show number of documents in each bucket
couchtool buckets http://localhost:5984/some_db
Also the documents can be stored gziped on disk with --gzip :
# Gzip documents and attachments on disk
couchtool --gzip restore http://localhost:5984/some_db
https://github.com/zaro/couchtool
FAQs
CouchDB dump/restore
The npm package couchtool receives a total of 2 weekly downloads. As such, couchtool popularity was classified as not popular.
We found that couchtool 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
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.