Security
What Mosec does, in specific terms, and where it stops. If a claim here is wrong, that is a bug in this page, so please tell us.
On your PC
- The vault file is encrypted with AES-256-GCM. The key is derived from your master password with scrypt (N = 2^18).
- Pass and Notes share one master password. A password change updates all Mosec apps on the PC together, or none of them.
- Each Windows account has its own vault in its own user folder.
- The app window is excluded from screenshots and screen recordings.
- Optional: unlock with Windows Hello, and a second factor (TOTP) on top of the master password. Wrong codes pause the unlock for a growing time, and the pause survives a restart of the app.
Sync
- Each item is encrypted on your device with a random 256-bit key and AES-256-GCM before it is sent. The key never leaves your devices unencrypted.
- To sign in on a new device, your account number and master password go through PBKDF2-SHA256 with 600,000 rounds. The result is split in two: a login token, of which the server stores only the SHA-256, and a key that unlocks your key set. The master password itself is never sent.
- After 10 wrong sign-ins an account is locked for 15 minutes, and every further lock lasts twice as long, up to 16 hours. Tries sent at the same time count one by one. With two-factor on, sign-in also needs the current code.
- The server runs on Cloudflare Workers with a D1 database and stores scrambled records, the account number and the SHA-256 of two tokens. It sees which records change and when, and the IP address of each request.
Browser extension
- It signs in with your account number and master password and decrypts in the browser. The key and the decrypted items stay in the memory of the browser session and are not written to disk.
- A page only ever gets the login you chose for it, and only for its own site.
What Mosec cannot protect you from
- A lost master password. Nobody can reset it, including us, because we never have it. Without it the data is gone. Write down your backup codes and keep them safe.
- Malware on your PC. A program that logs your keys or reads the screen of an unlocked app sees what you see. Keep Windows and your browser up to date.
- A weak master password. Slow key derivation helps, but a short or common password can still be guessed if someone gets a copy of the vault file.
- No independent audit yet. Mosec has not been audited by an outside party, and its source code is not public. Treat it accordingly.
Reporting a problem
If you found a security problem, write to gian.moser@pm.me. Please give us time to fix it before you publish it.