Security and encryption

A service that protects email needs access to email, which makes it a tempting target. So TrustyInbox is designed around one principle: keep as little as possible, split up what we do keep, and encrypt every piece separately. There's no treasure chest to steal.

Our security principles

  • Checked, then forgotten. Email content is only held in memory during a check.
  • A separate vault for every inbox. Each inbox has its own encryption keys.
  • Separate keys for separate jobs. The work queue and the contact memory use different keys derived from different master secrets.
  • Fingerprints, not address books. Contacts are remembered as one-way hashes.
  • Short memory. Caught-email cards expire after 30 days, verdict logs after 7.
  • No passwords. Connection uses Google's and Microsoft's own sign-in, and you can revoke access from their side at any time.

Exactly what we store

DataFormKept for
Email content (body, attachments)Not storedOnly in memory during a check
Email IDs waiting to be checkedProvider's ID onlyUntil checked (seconds, normally)
Caught-email card: sender, subject, reasonsEncrypted with the inbox's mailbox key30 days
Verdict for safe emailsEmail ID, score, signal names; no content7 days
Regular contactsOne-way fingerprints of address and name, with dates and counts, under a separate profile keyWhile the inbox is connected
Domains you correspond withFingerprint plus encrypted domain name (to spot lookalikes)While the inbox is connected
Family members and settingsNames, roles, preferencesWhile the family exists

How per-inbox encryption works

TrustyInbox uses envelope encryption, the same pattern used by major cloud providers:

  1. A data key for each inbox. When an inbox is connected, a random 256-bit key is generated for its mailbox data, and another for its contact profile.
  2. The data key is wrapped. Each data key is encrypted (“wrapped”) using a key derived from a master secret and that inbox's unique identifier. Only the wrapped version is stored next to the data.
  3. Master secrets live elsewhere. A separate key service holds the master secrets and does the wrapping and unwrapping. It has no access to any email data, and the storage units have no access to the master secrets.
  4. Data is sealed with AES-256-GCM. Each record is encrypted with authenticated encryption, and bound to its context, so a record can't be copied from one inbox or email to another without detection.

Breaking into one storage unit gets you one inbox's wrapped keys, which are useless without the key service. Breaking into the key service gets you master secrets, but no data. And the mailbox and profile data are separated again, under different master secrets.

Why contacts are fingerprints

To spot an impostor, TrustyInbox needs to answer: “Has this person heard from this address before?” and “Is this the name of a known contact?”. It doesn't need to know who those contacts are. So addresses and names are stored as keyed one-way hashes (HMAC-SHA-256 with a per-inbox key). Given an incoming email, TrustyInbox can compute the same fingerprint and check for a match, but the list of fingerprints can't be reversed into an address book.

Isolation between inboxes

Each inbox's data lives in its own isolated storage unit on Cloudflare's network, addressed by an unguessable identifier derived from a secret. There's no shared table of everyone's data, and no query that spans all customers.

Access to your mailbox

  • TrustyInbox only reads new emails and moves dangerous ones. It never sends or deletes email.
  • Incoming notifications are authenticated, and TrustyInbox always re-fetches the email from the provider, so a forged notice can't influence a decision.
  • You can revoke access from your Google or Microsoft account at any time. Disconnecting inside TrustyInbox also deletes all stored data for that inbox: see disconnect and delete.

No ads, no data sales

TrustyInbox is paid for by the families who use it. We don't show ads, we don't sell or share data for marketing, and we don't use your family's email to train anything for anyone else. Our privacy notice has the formal version.

Reporting a security issue

If you believe you've found a security vulnerability, please email hello@trustyinbox.com with “Security” in the subject. We'll respond promptly and keep you updated.

Frequently asked questions

Does TrustyInbox store my emails?

No. Each email is fetched, checked in memory and discarded. For emails that were caught, a small encrypted card with the sender, subject and reasons is kept for 30 days so the family can review it.

Can TrustyInbox staff read my email?

TrustyInbox doesn't keep email content, so there is nothing to read. Caught-email cards and contact fingerprints are encrypted with per-inbox keys that are only unwrapped inside the service when needed.

What happens if TrustyInbox is hacked?

The design limits the damage: there is no central store of email, each inbox's data is encrypted with its own key, and the master secrets are held by a separate service. Contact data is stored as one-way fingerprints rather than readable addresses.