Ombracrux is under active R&D. Security fixes are applied to the main branch and shipped in the latest tagged release.
- Supported Wire Format: Current multi-cipher authenticated wire format (shared across Desktop GUI and
ombracrux-cli). - Unsupported Wire Formats: Older legacy headers are explicitly rejected with an unsupported version error. No silent downgrade path exists.
Please do not report security vulnerabilities through public GitHub issues or discussions. Public disclosure before a fix is available puts users at risk.
Report vulnerabilities, memory-handling flaws, filesystem bypasses, or cryptographic defects privately:
- Email: ombraveil.choice471@passinbox.com
- LinkedIn: Direct message the Ombraveil LinkedIn Page
- A concise description of the vulnerability, affected component (
ombracrux-core,apps/cli, orsrc-tauri), and potential impact. - The exact Ombracrux version or commit hash and host OS.
- Step-by-step reproduction instructions or a minimal proof-of-concept fixture.
- Acknowledgment: Receipt will be confirmed privately as soon as possible.
- Triage & Patching: If validated, a fix and regression test will be engineered and released promptly.
- Attribution: With your explicit consent, you will be credited in the release notes for responsible disclosure.
Every .ombracrx share file consists of a fixed-structure Share Header followed immediately by a sequence of Length-Prefixed AEAD Payload Frames, ending with a mandatory Authenticated Final Closure Record. All multi-byte integers are big-endian.
- 256-bit suites (
XChaCha20-Poly1305,AES-256-GCM-SIV):113 bytestotal (33-byteShamir share fragment). - 512-bit Cascaded suite:
145 bytestotal (65-byteShamir share fragment).
| Byte Offset | Size (Bytes) | Field | Description |
|---|---|---|---|
0..8 |
8 | magic |
ASCII magic bytes identifying an Ombracrux share |
8..10 |
2 | version |
Wire format revision (u16 BE = 5) |
10 |
1 | cipher_suite |
Cipher suite ID (u8) |
11..27 |
16 | bundle_id |
Random CSPRNG (OsRng) identifier shared by all shares in the vault |
27 |
1 | total_shares |
Total shares generated (2..=255) |
28 |
1 | threshold |
Minimum shares required to recover (1..=N) |
29 |
1 | share_index |
1-based unique index for this share (1..=N) |
30..46 |
16 | base_nonce_prefix |
Random CSPRNG (OsRng) nonce prefix shared by the bundle |
46..48 |
2 | ssss_len |
Byte length of ssss_share_data (u16 BE: 33 or 65) |
48..(48+ssss_len) |
33 or 65 | ssss_share_data |
Raw Shamir fragment over blahaj) |
| Last 32 bytes | 32 | header_auth |
HMAC-SHA256 authentication tag over all preceding header fields |
- The master key (32 bytes for 256-bit suites; 64 bytes for 512-bit Cascaded) is generated via
OsRngand split into$N$ shares with threshold$T$ over$GF(2^8)$ usingblahaj(with itszeroizefeature enabled). - A dedicated 32-byte header authentication subkey is derived from the master key via
HKDF-SHA256(scoped tobundle_idand domain-separated info context). -
header_authis computed asHMAC-SHA256over all serialized header fields preceding the tag. - During
verifyandrestore, Ombracrux reconstructs the candidate master key from the supplied Shamir fragments and verifiesheader_authin constant time on every supplied share header before decrypting any payload bytes. -
ShareHeaderimplements a customDebugformatter that replacesssss_share_datawith<REDACTED ...>so Shamir key fragments cannot leak into debug logs or error traces.
Plaintext TAR output is split into ordered chunks of at most CHUNK_SIZE = 1,048,576 bytes (1 MiB). Each encrypted frame is written as:
[ frame_len: u32 (Big-Endian) ] [ ciphertext || auth_tag(s) ]
- XChaCha20-Poly1305 (24-byte nonce):
base_nonce_prefix[0..16] || chunk_index.to_be_bytes()(8bytes). - AES-256-GCM-SIV (12-byte nonce):
base_nonce_prefix[0..4] || chunk_index.to_be_bytes()(8bytes).
Every AEAD operation binds the exact chunk position, vault identity, cipher suite, cascade layer, and final-record state into a 41-byte AAD:
| Byte Offset | Size (Bytes) | Field | Value |
|---|---|---|---|
0..2 |
2 | version |
Current format revision (5u16 BE) |
2 |
1 | cipher_suite |
Cipher suite ID (u8) |
3 |
1 | layer_id |
0x00 single-layer, 0x01 cascade inner AES, 0x02 cascade outer XChaCha20 |
4..20 |
16 | bundle_id |
16-byte bundle identifier from header |
20..28 |
8 | chunk_index |
0-based sequential chunk index (u64 BE); equals total_chunks on EOF record |
28..32 |
4 | plaintext_len |
Chunk plaintext length (u32 BE); 0 on EOF record |
32..40 |
8 | total_plaintext_len |
0 on data chunks; exact cumulative plaintext bytes (u64 BE) on EOF record |
40 |
1 | is_final |
0 on data chunks; 1 on EOF closure record |
- Master key bytes
0..32key the innerAES-256-GCM-SIVcipher (layer_id = 0x01). - Master key bytes
32..64key the outerXChaCha20-Poly1305cipher (layer_id = 0x02). - On encryption, plaintext is sealed with the inner cipher (producing
plaintext_len + 16bytes), and that inner ciphertext is sealed with the outer cipher (producingplaintext_len + 32bytes). - On decryption and verification, the outer
XChaCha20-Poly1305tag is verified before the innerAES-256-GCM-SIVlayer is opened.
- After the final data chunk, Ombracrux emits an empty-plaintext (
0-byte) AEAD record withis_final = 1,chunk_index = total_chunks, andtotal_plaintext_lenset to the exact uncompressed TAR byte count. - Its
frame_lenequalstag_overhead(16bytes for single-layer suites;32bytes for Cascaded). - Both
verifyandrestorefail if the final closure record is missing, fails authentication, or is followed by even a single trailing byte.
- Immutable canonical binary fixtures for all three cipher suites live under
crates/ombracrux-core/tests/fixtures/and are verified on every CI run across Linux, Windows, and macOS.
Ombracrux strives for complete transparency about what has and has not been independently audited:
| Component / Crate | Role in Ombracrux | Audit Status & Notes |
|---|---|---|
Ombracrux (ombracrux-core, apps/cli, src-tauri) |
Threshold orchestration, wire framing, fs_guard, tar_policy, hygiene, staging, GUI/CLI |
Not independently audited. Covered by automated unit, golden-fixture, streaming, and interop tests plus 3 seeded libFuzzer parser harnesses with dictionaries. |
chacha20poly1305 (RustCrypto) |
Default 256-bit AEAD and outer Cascaded layer | Third-party security audit completed (NCC Group, 2020). Recommended default cipher. |
aes (RustCrypto) |
Underlying AES block primitive | Third-party security audit completed (NCC Group, 2020). |
aes-gcm-siv (RustCrypto) |
Optional RFC 8452 AEAD and inner Cascaded layer |
Not independently audited as a standalone crate by a third party. Users preferring an audited cipher implementation should use the default XChaCha20-Poly1305 suite. |
blahaj (features = ["zeroize"]) |
Shamir's Secret Sharing over |
Community crate; not independently audited. Replaced sharks to address random polynomial coefficient bias (RUSTSEC) and add zeroized share handling. |
hkdf, hmac, sha2, zeroize (RustCrypto) |
Header subkey derivation, header MAC, manifest checksums, best-effort zeroization | Widely deployed RustCrypto crates; zeroization remains subject to compiler and OS limits. |
- Dependency Auditing: Every push and pull request runs
npm audit --audit-level=moderateandcargo audit --deny unsoundagainst the RustSec advisory database (with documented, unfixable transitive Tauri advisories tracked explicitly in.cargo/audit.toml). - Continuous Seeded Parser Fuzzing: Three standalone
libFuzzertargets (fuzz_share_header,fuzz_payload_stream, andfuzz_tar_policy) live underfuzz/alongside target-specific dictionaries (fuzz/dictionaries/*.dict). Before running on a weekly schedule or manual dispatch via.github/workflows/fuzz.yml, all three targets are seeded bygenerate_fuzz_seed_corporawith frozen share headers, decryptable single-chunk and multi-chunk encrypted streams across all three cipher suites, and valid plus adversarial TAR archives (including nested directories, GNU LongLink paths, and PAX headers). - Release Provenance: Desktop (
release.yml) and CLI (release-cli.yml) release workflows pin third-party GitHub Actions to full commit SHAs, isolate build and publish permissions, classify-beta/-rctags as GitHub pre-releases, generate.sha256checksums, and emit SLSA build provenance attestations verifiable viagh attestation verify.
1. Symlink, Reparse-Point, Mutation & TAR Policy Protections (fs_guard.rs, archive.rs, preflight.rs, tar_policy.rs)
- Source directories, output directories, manifest directories, and Hygiene target directories reject symbolic links and NTFS reparse points/junctions via
symlink_metadata. - Splitting rejects output paths equal to or nested inside the canonicalized source directory tree.
- Both
archive.rsandpreflight.rsexclude only a root-level regular file named.ombracrux-hygiene.lockso re-archiving a directory that previously hosted Ombracrux outputs does not capture internal coordination state. Symlinks with that name are still rejected, and nested user files with the same name inside subdirectories are preserved. - Regular files and directories inside a source tree are opened without following links (
O_NOFOLLOWon Linux/macOS;FILE_FLAG_OPEN_REPARSE_POINTandFILE_FLAG_BACKUP_SEMANTICSon Windows) and checked against pre-open metadata to detect concurrent swaps. - During archiving (
archive.rs), Ombracrux verifies exact byte count read, EOF growth probing, and pre/post-read file identity:(dev, ino)plusctimeon Unix, and handle-backed volume serial + 64-bit file index viasame-file(GetFileInformationByHandle) alongside creation time, last-write time, and file size on Windows. On Windows virtual or network filesystems that do not expose handle-based file identity, replacement detection degrades gracefully to best-effort metadata comparison (creation_time,last_write_time, andfile_size). (This is best-effort detection and is not a filesystem snapshot.) - Both
verifyandrestoreenforce the exact sameTarPolicyValidator(tar_policy.rs), inspecting every TAR entry to reject empty paths, parent-directory traversal (..), root/prefix paths, duplicate normalized paths, and non-regular/non-directory entry types (such as injected symlinks, hard links, FIFOs, or device nodes).
- Split (
ShareOutputTransaction): Writes encrypted output to hidden.ombracrux-*.partialfiles in the destination folder, flushes andsync_all()s every file handle, and publishes each share atomically without overwriting existing outputs viapersist_noclobber. If a handled commit failure occurs, previously published shares are rolled back where possible. Multi-share publication is not a single atomic filesystem transaction: a sudden power loss mid-commit can leave some completed shares published alongside remaining.partialfiles (which Hygiene can safely remove after reboot). Once published, Ombracrux marks the transaction committed and syncs parent directory metadata (sync_directory). - Restore (
restore.rs&fs_guard.rs): Unpacks into a unique hidden.ombracrx-restore-<32-hex>.tmpstaging directory inside the chosen destination (0700permissions on Unix; inherited destination ACLs on Windows). After the entire TAR stream and final closure record authenticate cleanly, Ombracrux flushes restored regular files in bounded parallel batches (256 files per batch) and syncs staged directories bottom-up (sync_tree_no_symlinks), publishes the staging directory toOmbracrux-Restored-<32-hex>viapublish_noclobber, and syncs parent directory metadata (sync_directory). - Atomic No-Clobber Publication (
publish_noclobber): Bothrestore.rsand the non-hardlink fallback inmanifest.rsusepublish_noclobber, which invokes kernel-atomic no-replace primitives where supported—renameat2(RENAME_NOREPLACE)on Linux andrenameatx_np(RENAME_EXCL)on macOS viarustix, andMoveFileExW(..., 0)(omittingMOVEFILE_REPLACE_EXISTING) on Windows—and falls back to a rechecked rename only when the underlying filesystem reports the atomic flag is unsupported (such as FAT32, exFAT, or FUSE mounts). - Recovery Manifests (
manifest.rs): Stages<VaultName>.manifest.jsonand<VaultName>.recovery-card.htmlinto hidden.ombracrux-meta-*.partialfiles, callssync_all(), publishes via no-clobberhard_link(falling back topublish_noclobberon filesystems without hard-link support), and records parent directory durability. - Explicit Durability Reporting (
SyncStatus&DurabilityReport): File and directory flush helpers return an explicitSyncStatus(Synced,Unsupported, orSkipped) aggregated into aDurabilityReportrather than silently collapsing skipped or unsupported operations into success:- Full sync confirmed: No warning or note is emitted.
- Platform/filesystem limitation (
UnsupportedorSkipped): For example, directoryfsyncon Windows (Unsupported), Unix filesystems returningInvalidInput/Unsupported, or Windows read-only extracted files that cannot be reopened forFlushFileBufferswithout modifying ACLs (Skipped). Publication succeeds and surfaces an informational durabilityNote:detailing the limitation. - Actual post-publish I/O sync failure: Across
split,restore, andmanifest, if parent-directorysync_directory()encounters an I/O error after outputs have already been published, Ombracrux returns the published paths alongside a durabilityWarning:rather than falsely reporting failed publication or deleting published outputs.
- Classified Failover:
RestoreErrordistinguishes payload/archive corruption (PayloadOrArchive) from destination filesystem failures (Destination, such as read-only permissions or full disk) and user cancellation (Cancelled). Failover retries the next share only on payload/archive errors; destination errors and cancellations abort immediately and remove the staging directory.
- GUI: An RAII
OperationControl/OperationLeaselock prevents concurrent jobs and eliminates cancel-vs-start races when the user clicks Cancel. - CLI: A
Ctrl+C(SIGINT) handler sets the sharedAtomicBoolcancel token, halts archiving/AEAD/verification/restoration loops cleanly, removes temporary.partialor.tmpartifacts, and exits with code130. - Cross-Process Directory Coordination Lock: Active
split,restore, andmanifestoperations acquire a shared lock on a persistent.ombracrux-hygiene.lockfile in the target directory (opened withO_NOFOLLOW/FILE_FLAG_OPEN_REPARSE_POINT,0o600on Unix, never unlinked while locked). Standalonemanifestruns acquire this shared lock automatically, whilesplitshares its active lock with manifest export viawrite_recovery_files_locked. - Safe Hygiene Cleanup:
clean_hygiene_diracquires a non-blocking exclusive lock on.ombracrux-hygiene.lock(creating no lockfile in already clean directories). If any GUI or CLI process holds a shared operation lock on that directory, Hygiene reports an active operation and skips cleanup. Otherwise, it removes only direct-child files matching.ombracrux-*.partialand direct-child directories matching.ombracrx-restore-*.tmp, skipping symlinks and never modifying completed.ombracrxshares, recovery manifests, or user files.
- Generated and reconstructed master keys,
blahajShamir fragments,ShareHeaderfragments, derivedHKDF-SHA256header subkeys, and streaming plaintext buffers inarchive.rs,crypto.rs,restore.rs, andverify.rsare wrapped inzeroize::Zeroizingto clear heap buffers on drop. - While payload buffers and durability file-sync batches are strictly memory-bounded,
TarPolicyValidatorpath bookkeeping and directory-sync tracking grow linearly with the number of archived filesystem entries. - User-space zeroization is a best-effort defense and cannot guarantee erasure of copies residing in CPU registers/caches, compiler temporaries, OS kernel buffers, or unencrypted swap space.
- Compromised Host OS: Ombracrux assumes a trusted local machine during execution. It cannot protect plaintext or keys against kernel rootkits, privileged malware, keyloggers, or live memory scraping.
-
Physical Flash / SSD Erasure: Staging cleanup and Workspace Hygiene use standard OS unlinking (
remove_file/ symlink-safe recursiveremove_dir). They do not guarantee physical block erasure on wear-leveled SSDs, NVMe drives, or USB flash media. -
Filesystem Snapshots & Untrusted Concurrent Writers: While
archive.rsandfs_guard.rsperform no-follow opens, handle-backed identity checks (with metadata fallback on Windows virtual/network filesystems), and pre/post-read file mutation checks, Ombracrux is not a copy-on-write snapshot engine and assumes the source directory is frozen during an active split. - Atomic Multi-File Transactions Across Power Failure: Individual shares are published atomically without clobbering existing outputs, and handled commit failures roll back previously published shares where possible, but standard filesystems do not provide an all-or-nothing multi-file commit across a hard power cut.
-
Recovery Below Threshold or Total Payload Loss: There is no escrow key or bypass. If fewer than
$T$ shares survive, or if every surviving share's encrypted payload is damaged, recovery is impossible. -
Manifest-Only Authenticity:
.manifest.jsonand.recovery-card.htmlprovide unkeyedSHA-256checksums for convenience against accidental bit-rot; they are not cryptographic signatures. Always rely onverifyorrestorefor authoritative authentication.