Security

“Trust us” is not an answer.

Klorn reads other people's email so you don't have to. That sentence is the threat model: the primary input is text written by strangers, some of whom are adversarial. Here is what the architecture actually guarantees, with the file that implements each one.

Google verification and independent assessment

Google completed its OAuth verification review for Klorn on 2026-10-03. Before that, Klorn was independently assessed against CASA Tier 2 by TAC Security; result: In Compliance. The Letter of Validation from that assessment was then submitted to Google.

Assessment
CASA Tier 2, dynamic application security testing (DAST), by TAC Security
Result
In Compliance
Dates
Evaluated 2026-08-12 · report issued 2026-08-30 · Google review completed 2026-10-03
Reassessment
Annual

The five Google scopes, and why each one

These five are the Google scopes approved in that review, and the only mail and calendar scopes Klorn requests. It does not ask for Gmail's full-access scope, and on Calendar it asks only for calendar.events and calendar.readonly — never the full Calendar scope.

gmail.readonly
Read your messages so Klorn can sort them, show the reason for each decision, and summarize a thread when you ask.
gmail.modify
Change a message's state when you act in Klorn: archive or unarchive, move to Trash or back, star, mark read or unread, and save a reply draft into Gmail.
gmail.send
Send mail only when you approve it — a reply you confirm, a mailto unsubscribe you ask for — or an auto-reply under rules you set yourself.
calendar.readonly
Read free/busy across all your calendars, so meeting emails are checked against your real schedule and conflicts are caught.
calendar.events
Create, change or remove an event on your primary calendar when you ask Klorn to — not calendar settings or sharing.

Signing in with Google asks only for your name and email. The mail and calendar scopes come later, in a second consent screen, when you connect an inbox — and a calendar-only link asks for calendar.readonly with no mail scope at all. (openid and userinfo.email/userinfo.profile also appear in that file — they identify which account signed in, are not sensitive, and are not part of what Google reviewed.)

Where the data goes

OAuth tokens are encrypted with AES-256-GCM before they are stored, every hosted surface is TLS-only, and analytics never include message content — see the table below for the file behind each. Logs expire on the fixed schedule under How long anything is kept. If you would rather your mail not pass through our servers at all, self-host the same code with your own model key or a local model. The privacy policy is at /privacy.

What this does and doesn't mean. The review and the assessment check how Klorn handles the Google data it asks for. They are not an endorsement of Klorn by Google, and they do not cover anything beyond those scopes. Today you can connect Gmail, Google Calendar, Naver Mail (beta) and iCloud Mail (beta); other providers are not yet available.

What the architecture guarantees

PropertyWhat is actually trueWhere to check
Email is hostile inputEvery email body, subject and third-party string is wrapped in <untrusted_content> markers before reaching a model, and pre-existing wrapper tags are stripped first so a crafted message cannot close the wrapper. Prompt injection is in scope, not an accepted limitationSECURITY.md
Token encryption at restAES-256-GCM before the token touches the database, with keyring rotation (v1/v2 envelopes) so a suspected leak is rotated without a flag day. A missing key outside dev/test aborts boot rather than falling backcrypto-tokens.ts
Outbound actionsSend, permanent delete and forward-external cannot ride on classifier confidence. Each requires a receipt minted at approval time pinning a sha256 of the canonical payload, re-verified at execution. If anything drifted in between, the action is refusedattention-floor.ts
Dev conveniencesDev JWT secret, dev encryption key, localhost CORS and the demo user sit behind a dev/test allowlist that fails closed for any other NODE_ENVenv.ts
AnalyticsFirst-party only. A short allowlist of coarse event names in Klorn's own Postgres. No external tracker, and never message contentanalytics.ts
Encryption in transitTLS-only on every hosted surface — API, web, Google APIs, model providersself-hosting.md

How long anything is kept

Log retention is enforced by a scheduled sweep rather than a promise: agent actions, email processing, push delivery and webhook ledgers are deleted after 90 days, rate-limit rows after 30, and token accounting after 180 for cost-drift analysis. The windows are a table in the source, not a setting we can quietly widen without it showing in a diff.

Reporting a vulnerability

Email k0820086@gmail.com with a description and reproduction steps. Please do not open a public issue for an exploitable finding. You'll get an acknowledgment within a few days; fixes to the approval floor and the token-encryption paths take priority over everything else. Machine-readable contact details are at /.well-known/security.txt.

What we are not claiming. Apart from the CASA Tier 2 assessment above, Klorn has not had a third-party penetration test or a SOC 2 audit, and this page does not imply one. It is a solo-maintained product in beta. The compensating control is that the code is AGPL-3.0 and the security-⁠relevant paths are named above by file — you can read them instead of taking our word for it.

SECURITY.md carries the longer version, including the known gaps we chose to state rather than omit.