Skip to content

Security Model

oMrCat edited this page Nov 4, 2026 · 2 revisions

Security Model

Two locking modes

ACL lock

  • Before locking, checks WRITE_DAC and refuses with an explicit message if it is missing, so a one-way lock cannot be created.
  • Backs up the folder's access-section security descriptor (SDDL), then replaces the DACL with a deny-everyone rule, blocks inheritance and sets Hidden + System attributes.
  • Unlock re-applies the saved DACL and restores the original Hidden / System attributes; it is not a byte-for-byte rollback. If another account has taken ownership, automatic unlock fails and you must recover manually with takeown + icacls.
  • Protects against: other standard users on the same PC and casual access.
  • Does not protect against: administrators (who can take ownership), SYSTEM, Safe Mode, or another OS.

AES-256-GCM vault (optional)

  • Encrypts the whole folder into a single .flvault file, then securely deletes the source.
  • Envelope scheme: a random data-encryption key (DEK) is wrapped twice — by the password and by the recovery code — so either can unlock.
  • Each 64 KiB chunk is separately AES-256-GCM authenticated; chunks are bound to their order via AAD.
  • New containers use format v2, with an authenticated header (HMAC-SHA256 keyed by the DEK) and an authenticated end block, so metadata tampering and truncation are detected. Legacy v1 containers are readable but read-only and are not migrated automatically.
  • Protects against: offline access, copying the disk, and administrators.
  • Does not protect against: malware running as you while the folder is unlocked, or a cold-boot/evil-maid attacker.

Password handling

  • PBKDF2-HMAC-SHA256, 210,000 iterations, 16-byte random salt, 32-byte output.
  • Constant-time comparison. Passwords are never stored in plaintext.
  • In memory, secrets live in a zeroing Secret buffer; the clipboard is cleared after copying a recovery code.

Recovery code

  • Crockford Base32, 160-bit. Wrapped locally with Windows DPAPI.
  • Lets you unlock an encrypted vault if the password is forgotten. Keep it somewhere safe and offline.

Failed-attempt throttling

The number of consecutive wrong passwords is tracked per folder and persisted:

Attempts Lockout
5 30 seconds
7 5 minutes
10 30 minutes

A successful unlock resets the counter.

Audit log

Every add / lock / unlock / change-password / remove / failed attempt / auto-relock is recorded with a timestamp and success flag. Export to CSV from the log window.

Encrypted database

The SQLite store uses SQLCipher with a random 32-byte key protected by DPAPI (db.key). Existing plaintext databases are migrated automatically on first run. Connection pooling is disabled so a keyed connection is never reused across keys.

Trace cleaning (after AES lock)

  • Source files are overwritten with random data, truncated, renamed, and deleted.
  • Explorer Recent shortcuts and jump lists, and common MRU registry keys (RecentDocs, TypedPaths, RunMRU, ComDlg32, …) are cleaned for the folder. Shared thumbnail/icon caches are cleaned only when CleanExplorerCaches is enabled (off by default).

Honest limitations: on SSDs, TRIM / wear-levelling, the page file, and the Windows Search index may retain copies. Secure deletion is best-effort; use full-disk encryption for stronger guarantees.

Windows Hello (full build)

Optional. When enabled, a correct password is followed by a Windows Hello verification (UserConsentVerifier) before the folder unlocks. It is an extra gate, not a replacement for the password, and is bound to this device/account.

Clone this wiki locally