Security and encryption
Encryption at rest
- Every message has its own random data key. Its subject, body, attachment names and contents, replies, request instructions and submissions are encrypted with AES-256-GCM under that key, each bound to the message and field it belongs to.
- The data key is stored wrapped by the master key (
secrets/emberseal_enc_key), which never sits in the database. - Destroying a message deletes its data key along with the ciphertext and files (crypto-shredding), so nothing readable is left on the live system. Backups taken earlier keep an encrypted copy until they age out.
- Settings secrets (SMTP password, API keys, S/MIME keys) are encrypted with the master key too.
FIPS 140-3
Emberseal is built with Go's FIPS 140-3 validated cryptographic module and runs it in FIPS mode. It uses only FIPS-approved algorithms: AES-256-GCM, SHA-2, HMAC, HKDF and PBKDF2. When it terminates TLS itself, it only negotiates TLS 1.2 or 1.3 with AES-GCM cipher suites. SHA-1 is used only to identify files in the audit log, never for signatures.
Links, codes and tokens
- Recipient link tokens and API/MCP tokens are stored only as SHA-256 hashes.
- Verification codes are HMAC-SHA-256 under a derived key, single use, and expire after the configured lifetime.
- Repeated wrong codes lock a link. Recipient pages are rate limited per IP address and use a separate, path-scoped session.
- A link that no longer works says only that it's unavailable, never why.
Who can read what
- Only the sender can read a message's content, replies and submissions.
- Admins see metadata and the access trail, and can revoke anything, but can't read content.
- Notifications contain who sent something, an optional note and the link: never the content or files.
- MCP tokens can't read messages, credentials, submissions or audit logs.
- DLP approvers see what was flagged and the sender's reason, never the content.
Files
Every upload is virus-scanned by ClamAV before it's stored, and hashed with SHA-1 and SHA-256. Files are served as downloads only, never rendered in the browser.
Audit
Security events are written to an append-only audit log that can be shipped to your SIEM over syslog TLS or a webhook.

