blackhole-sec
A small offline toolkit I actually use: check sketchy links, keep passwords
and files in an encrypted vault, strip photo metadata before posting, and
pack directories into encrypted .bhb files instead of zip.
No accounts. No network calls. Nothing leaves your machine.
Full write-ups for each tool live here: https://satin-networks.github.io/blackhole-sec/
pip install blackhole-sec
blackhole check "http://secure-paypal-login.tk/free-nitro"
blackhole vault init
blackhole shred analyze photo.jpg
blackhole bundle create ./mydir ./backup.bhb
The four tools
1. check - is this link a trap?
Paste a Discord / email lure and get a straight answer. Everything runs locally, the URL is never fetched.
blackhole check "http://secure.paypal.com.evil.tk/login?redirect=http://evil.com"
# MALICIOUS 68/100 (HIGH) hxxp[:]//secure[.]paypal[.]com[.]evil[.]tk/login...
# +18 brand_impersonation: brand=paypal host=secure.paypal.com.evil.tk
# +10 suspicious_tld: .tk
# ...
blackhole check -f urls.txt --json > report.json
echo "http://paypal-secure.tk/login" | blackhole check --file -
Scoring is plain and explainable: each signal adds points, 0-20 is BENIGN,
21-49 SUSPICIOUS, 50+ MALICIOUS. Output is defanged (hxxp[://]) so you
can't click it by accident. Batch mode and --threshold fit nicely in scripts.
2. vault - passwords and files on your own disk
One encrypted file, one master password. Argon2id turns your master into a key, AES-256-GCM does the rest. I never store the master anywhere.
blackhole vault init --vault ~/.blackhole/vault.db
blackhole vault set github --username alice --generate 24
blackhole vault get github --show
blackhole vault list
blackhole vault audit
blackhole vault gen --length 24
blackhole vault add-file ~/tax-2025.pdf # keep a file in the vault
blackhole vault export tax-2025.pdf # write it back out
blackhole vault rm old-forum --yes
blackhole vault passwd
The file is chmod 0600. Every command locks when it finishes. audit
calls out reused, short, and stale passwords with a 0-100 score. Stored
files keep their own encryption keys in a .files directory next to the
vault; back up both.
Lose the master and the vault is gone - there is no reset, by design.
3. shred - clean it before you post it
Photos carry GPS, camera model, and timestamps. analyze shows what's in
there, clean writes a *.cleaned copy with it stripped (your original
stays untouched), verify passes or fails for scripts, and shred
overwrites and deletes for real.
blackhole shred analyze photo.jpg
blackhole shred clean photo.jpg
blackhole shred verify photo.cleaned.jpg; echo $?
blackhole shred shred secret.txt --passes 7 --yes
4. bundle - encrypted archives that aren't zip
With a password, .bhb packs a directory to tar.gz and encrypts the
whole blob. Filenames, sizes, everything is hidden. Only blackhole
opens it. With --no-password it packs plain: no encryption, opens
with nothing extra, same deal as a zip with no password.
Password mode is heavy on purpose: Argon2id at 1 GiB and 8 passes by
default (~42x the work of the old default), --kdf paranoid for
~128x. Weak passwords are refused at creation; --generate makes a
strong one and prints it once. Add --keyfile for a second factor:
the bundle then needs the password and the file both, and a stolen
copy cannot be tested offline without it.
blackhole bundle create ./photos ./photos.bhb
blackhole bundle create ./photos ./photos.bhb --generate # strong password, printed once
blackhole bundle create ./photos ./photos.bhb --keyfile ~/bh-photos.key # two factors
blackhole bundle create ./photos ./photos.bhb --kdf paranoid
blackhole bundle create ./photos ./photos.bhb --no-password # plain: anyone can open it
blackhole bundle extract ./photos.bhb ./restored # prompts on its own
blackhole bundle list ./photos.bhb
blackhole bundle verify ./photos.bhb; echo $?
Wrong password or a tampered file just refuses to open; a wrong entry
re-prompts up to three times, then gives up. Extraction rejects
absolute paths, .., and symlinks. There is a
head-to-head with age and 7-Zip
if you are picking a tool.
Triage: a link and a file at once
When a DM has both, intake scores the link and checks the file's
metadata in one pass:
blackhole intake "http://evil.tk/login" ./photo.jpg # link + file in one go
blackhole intake "http://evil.tk/login" ./photo.jpg --json
Colors are on when your terminal supports them and off when piped.
Force it either way with --no-color or the NO_COLOR env var.
Install
Python 3.11 or newer. Pick one:
# with pip
pip install blackhole-sec
# without touching pip yourself (venv + links handled for you)
curl -fsSL https://raw.githubusercontent.com/Satin-networks/blackhole-sec/main/scripts/install.sh | bash
# system-wide, so `sudo blackhole ...` works too
curl -fsSL https://raw.githubusercontent.com/Satin-networks/blackhole-sec/main/scripts/install.sh | sudo bash
From source:
pip install -e ".[dev]"
Depends on click, rich, cryptography, argon2-cffi and Pillow. That's it.
Upgrade later with blackhole upgrade (or the scripts/update.sh
one-liner). Remove with the scripts/uninstall.sh one-liner; your vault
file is left alone.
Layout
src/blackhole_sec/
check/ link scoring, no network
vault/ encrypted store + generator
shred/ metadata + secure delete
bundle/ .bhb create / extract
cli.py everything wired together
tests/ offline fixtures, no network
docs/ longer write-ups for each tool
Security notes
Short version is in SECURITY.md. The honest version:
- Standard primitives only (Argon2id, AES-GCM,
secrets). Nothing home-rolled. checknever touches the network. Input capped at 2048 chars.- Secrets live in 0600 files. Keys are wiped best-effort after use.
- Not audited. Don't bet your life on any single tool, including this one.
Found something? Open a private advisory with version, OS, and steps. Please don't post vault files or bundles anywhere public.
License
MIT - see LICENSE. Built by Satin Networks alongside wisp, our local WireGuard manager.
Metadata
Release files for blackhole-sec 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| blackhole_sec-0.4.0.tar.gz | 73.0 kB | Without provenance | Details for blackhole_sec-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| blackhole_sec-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for blackhole_sec-0.4.0-py3-none-any.whl |
Total release size: 138.6 kB
Release files / blackhole_sec-0.4.0.tar.gz
| Download URL | blackhole_sec-0.4.0.tar.gz |
|---|---|
| Size | 73.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1bfbde72442354487d988058850a6b422c08929816515cb020cfbf037f09fb4
|
|
BLAKE2b-256 checksum How to use checksums |
786b8ec765633bfaf041f5f5fdf48c0b91a64af466375aaf19fd1143e5b2946c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / blackhole_sec-0.4.0-py3-none-any.whl
| Download URL | blackhole_sec-0.4.0-py3-none-any.whl |
|---|---|
| Size | 65.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
19804b8d184b26cec97843802981b73f1460765f2de157d28236a26f34c3aa60
|
|
BLAKE2b-256 checksum How to use checksums |
5cb11f9cd5c8b5214da2f7dad7499ac9a440feb0cd65116af9ccd5b6659d6e68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for blackhole-sec 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.