Plaintext working copy and export backup were creatable world-readable under a 0700 temp dir. Write via os.open(mode=0600), fsync, unlink on failure; pin temp dir 0700; remove export after flush. Document SQLCipher as deferred — seal-on is not an encrypted DB while the process is open.