Store sensitive files in the cloud, or on shared media without trusting the host. LUKSbox is a Rust-based encrypted-container tool with passphrase, FIDO2 (YubiK
Store sensitive files in the cloud, or on shared media without trusting the host. LUKSbox is a Rust-based encrypted-container tool with passphrase, FIDO2 (YubiK
LUKSbox
Encrypted vaults that survive the next decade.
Open-source, FIDO2 + TPM 2.0 native, post-quantum-ready.
Store sensitive files in the cloud or on shared media without trusting the host.
Built byWebsite | Docs | Security | Fuzzing | Compare
You probably already store sensitive files where you don't fully control the storage: cloud sync (iCloud, Drive, Dropbox, OneDrive, S3, Backblaze), NAS units, USB sticks that travel, backup tapes that end up at a recycler. The provider promises encryption-at-rest "with their keys." LUKSbox encrypts the file before it ever leaves your machine, under your keys, in a single container that is opaque to the provider and tamper-evident on the way back.
A LUKSbox vault is one file (.lbx), optionally with a separate
header (.hdr) and post-quantum sidecar (.kyber) that you keep on
different storage. Drop it on any cloud or shared medium. The
provider sees one indistinguishable-from-random blob and cannot
decrypt it even under legal compulsion. Mount it locally as a real
drive when you need to use it.
| Concern | Plain cloud upload | Cloud + provider encryption | LUKSbox vault on cloud |
|---|---|---|---|
| Provider can read your files | Yes | Yes (they hold the key) | No |
| Government request to provider exposes data | Yes | Yes | No |
| Silent file tamper detected | No | Sometimes (TLS in transit only) | Yes (per-chunk AEAD) |
| Whole-vault rollback detected | No | No | Yes (anchor sidecar) |
| "Harvest now, decrypt later" (post-quantum) | Vulnerable | Vulnerable | ML-KEM-768/1024 hybrid slot |
| Hardware-key requirement to open | N/A | Provider-specific | FIDO2 / TPM / Windows Hello |
| Vault file looks like random data | No | No | Yes (with detached header) |
| Source you can audit | No | No | Yes (Apache-2.0) |
The full per-tool comparison (vs LUKS2 / VeraCrypt / age / gocryptfs / Cryptomator / BitLocker / FileVault) lives at .
A LUKSbox vault is a travelling copy, not a master copy. Use it for the cloud, a USB stick, a vault you share with a colleague or client, anywhere you would not put plaintext. Like every encrypted container it is a single point of failure: if the
.lbxfile is corrupted or every keyslot becomes inaccessible, the data is gone. The forensic toolkit (header-backup,check,extract --tolerate-errors) helps in many damage scenarios but cannot recover bytes that are no longer on disk or no longer AEAD-tagged. Always keep an unencrypted copy somewhere you trust for any file you cannot afford to lose.
This is a pre-1.0 release. The on-disk format is locked, the cryptographic primitives are NIST/RFC standards built on RustCrypto, and 14 internal audit rounds have shipped. External paid audit and broader real-world deployment are the next milestones. The cloud-storage threat model, provider can't read your data even under subpoena, is what LUKSbox is built for and what it does today.
| Surface | State |
|---|---|
cargo test --workspace |
600+ passing, 0 failing (a few platform-gated tests skip off-platform) |
cargo audit |
0 vulnerabilities, 0 unsound; 2 allow-listed unmaintained advisories (paste, a compile-time-only proc-macro from the TPM stack, and registry, Windows/WinFsp-only), both documented in audit.toml + SECURITY.md |
| Internal audit rounds | 14 documented at (per-round details kept internal) |
| Third-party audit | not yet performed; engagement scope package available on request to [email protected] |
| Fuzz iterations across 10 libFuzzer harnesses | 30M+ |
…The Master Volume Key (MVK) is the root secret. Keyslots do not
encrypt files directly; they wrap the MVK. Once a valid keyslot
unwraps the MVK, every other key in the vault is derived from it via
HKDF-SHA256 with a per-purpose info string. Lose the keyslot
material, lose the MVK; revoke a slot and that material is
permanently unable to recover the MVK from this vault.
For the full architecture map (on-disk graph, unlock sequence, concurrency / crash-safety pipeline, on-disk footprint), see .
| Mechanism | What it does | Where it lives |
|---|---|---|
| AES-256-GCM-SIV (default) / AES-256-GCM / ChaCha20-Poly1305 | AEAD on every file chunk and on the metadata blob | crates/luksbox-core/src/aead.rs |
| HMAC-SHA256 over the entire 8 KiB header | Detects header tampering once a keyslot unwraps the MVK | crates/luksbox-core/src/header.rs |
HKDF-SHA256 with per-purpose info strings |
Derives every subkey from the MVK; uniqueness verified by regression test | crates/luksbox-core/src/key.rs |
| Argon2id (default 256 MiB / 3 / 4) | Stretches passphrases; cost params bounded by parser to reject DoS attempts | crates/luksbox-core/src/kdf.rs |
| FIDO2 hmac-secret (CTAP2 sec.6.5) | Hardware-backed unlock, wrap mode or direct mode | crates/luksbox-fido2/ |
| TPM 2.0 sealed KEK (Linux + Windows) | Bind a vault to the local chip; optional PIN; fused TPM+FIDO2 mode | crates/luksbox-tpm/ |
| ML-KEM-768 / ML-KEM-1024 (FIPS 203) | Post-quantum half of every hybrid keyslot; classical+PQ mixed via HKDF | crates/luksbox-pq/ |
| Per-chunk AAD (`file_id | chunk_index | |
Detached header sidecar (.hdr) |
Vault file alone is opaque random, no magic, no version, no keyslots | crates/luksbox-format/src/container.rs |
Anchor sidecar (.anchor) |
External rollback detection via MVK-keyed HMAC over a generation counter | crates/luksbox-format/src/anchor.rs |
| Lock-before-read open | Concurrent enrolls / revokes can't race on the keyslot table | crates/luksbox-format/src/container.rs::open |
| Post-lock path-inode re-stat | Catches narrow open-then-rename TOCTOU swaps with Error::PathSubstituted |
crates/luksbox-format/src/container.rs::verify_path_inode |
| Atomic temp + rename + parent-dir fsync | All sidecar writes survive power loss; works on POSIX (fsync on dir handle) and Windows (FILE_FLAG_BACKUP_SEMANTICS + FlushFileBuffers) |
crates/luksbox-core/src/file_util.rs |
O_NOFOLLOW on plaintext extraction |
luksbox get refuses pre-existing symlink destinations to defeat attacker-staged symlink-target overwrites |
crates/luksbox-core/src/file_util.rs::secure_create_or_truncate |
memfd_secret(2) for the unlocked MVK on Linux 5.14+ |
Excludes the MVK from coredumps and hibernate images; mlock + Zeroize fallback elsewhere |
crates/luksbox-core/src/secret_box.rs |
Workspace-wide Zeroizing audit on every secret-bearing intermediate |
AEAD plaintext, HKDF I/O, ML-KEM shared, CLI/GUI PIN copies all scrub on drop | covered across luksbox-core, luksbox-pq, luksbox-tpm, luksbox-cli |
The full attack matrix (defended vs not defended) is at .
…Three interfaces, one on-disk format: the luksbox CLI for scripts,
the luksbox wizard interactive TUI, and the luksbox-gui desktop
application. See for per-flow
walkthroughs.
| Platform | Method |
|---|---|
| Debian / Ubuntu / Mint | .deb from Releases, sudo apt install ./luksbox_*_amd64.deb |
| Fedora / RHEL / Rocky | .rpm from Releases, sudo dnf install ./luksbox-*.x86_64.rpm |
| macOS | .dmg from Releases, drag to /Applications; on first run the app installs the kext-free FUSE-T backend (brew install --cask fuse-t), with macFUSE kept as a legacy fallback |
| Windows | LUKSboxSetup.exe from Releases (bundles WinFsp); IT admins can use the bare .msi and install WinFsp separately |
| From source | cargo build --release -p luksbox-cli -p luksbox-gui after the deps in BUILDING.md |
The .deb and .rpm packages now Recommend tpm-udev + tpm2-tools
(Debian / Ubuntu) and tpm2-tss + tpm2-tools (Fedora / RHEL /
openSUSE), so installing them via apt / dnf brings the
/dev/tpm* udev rules and the tss system group along for the ride.
After install you still need to add yourself to the group once and
log back in, that is the Debian / Fedora convention for any package
that grants new device access:
sudo usermod -aG tss "$USER"
# log out + log back in, then verify:
id | tr , '\n' | grep tssThe Linux release tarball's dist/install.sh --tpm-setup does the
same thing for users who installed via tarball instead of apt /
dnf and don't have tpm-udev / tpm2-tss already.
LUKSbox is a young codebase. The cryptography rests on standardised primitives and well-audited Rust libraries (RustCrypto, libfido2, tss-esapi), but the integration layer and the on-disk format are ours. We want external eyes on this.
Every parser that touches attacker-controlled bytes has a libFuzzer
harness in fuzz/ and an AFL++ harness in
fuzz-afl/. PR CI runs each libFuzzer target for 5
minutes on the persistent corpus; a dedicated server runs the AFL++
campaigns for hours per release.
cargo install cargo-fuzz
cd fuzz
cargo +nightly fuzz run header_parse -- -max_total_time=300The current target list (header_parse, keyslot_parse,
metadata_parse, hybrid_sidecar_parse, seed_file_parse,
auth_then_process, header_roundtrip, winfsp_path_parse,
webauthn_device_path, vfs_ops) plus per-target invariants is in
FUZZING.md.
The fastest way to push fuzzing further is dropping a real-world input
file into fuzz/corpus// and opening a
PR. Examples that would help today:
header_parsekeyslot_parsewinfsp_path_parse.hybrid sidecars for hybrid_sidecar_parseIf a parser doesn't have a harness yet and you can imagine an attacker
shaping its input, please add one. See the harness template in
FUZZING.md.
If you spot a code path where invariants aren't tested but feel like
they should be, file a regular GitHub issue (label
security-regression) with the invariant in plain English. We write
the test and credit the suggestion in the changelog.
scripts/fuzz_server.sh runs an AFL++
campaign indefinitely against any target. If you have spare cycles
and want to find something the libFuzzer 5-minute PR run misses, this
is the lever.
| Category | Channel | Priority |
|---|---|---|
| Suspected vulnerability (key recovery, plaintext disclosure, authentication bypass, FUSE/WinFsp escape, integer / memory unsafety reachable via a crafted vault file) | Email [email protected] (PGP key in SECURITY.md). 72-hour acknowledgement SLA. Do not open a public issue. |
P0, fix + advisory + coordinated disclosure |
| Crash on a malformed input that you can reproduce | GitHub issue with the input file attached and the crashing target name. Use the fuzz-crash label. |
P1, reproducer + regression test in next release |
| Functional bug (CLI/GUI/wizard misbehaviour, mount problem, recovery-flow gap, on-disk format edge case) | GitHub issue with reproduction steps. Use the bug label. |
P2, triaged within a week |
| Documentation issue (wrong claim, missing instruction, broken link, unclear wording) | GitHub issue or PR. Use the docs label. |
P3, fixed in the next docs pass |
| Feature request | GitHub issue. Use the feature label. State your t |
No open issues yet, or sync has not completed.