Maple can leak on you so easily. Just vibe code your own with TEE and call it a day.
π This profile hasn't been claimed yet. If this is your Nostr profile, you can claim it.
Edit
Maple can leak on you so easily. Just vibe code your own with TEE and call it a day.
From a 2014 federal court order: βGoogle shall: (1) provide a single password reset for the mobile device; (2) provide the new password to the law enforcement officer executing the search warrantβ (source: https://www.aclu.org/sites/default/files/field_document/mass_1-14-mj-07081.pdf#page=11) If federated authentication alone unlocks your encrypted chat history, your identity provider is part of your cryptographic trust model. I know NVK's investors and besties pumped this thing hard but I am pretty sure that Maple's founders will not go to jail for you when the government subpoenas them. Even if they did, the federated identities from Google/Apple/GH/etc are all security holes. Act accordingly.
Right idea. Wrong tool. Maple chats can leak to malicious third parties and there is legal precedence for this. Just use a TEE provider and vibe code/encrypt your own. It's easy.
Full Report from Fable CONFIRMS Maple can leak your encrypted backups to OAuth providers. Those Third Parties can be compelled to pull your encrypted chats. All it takes is a couple prompts. No wonder these guys lie to your face and don't respect you. Most of you trusted and never verified. Effectively the same as Cold Card but for AI. Fable Report: Maple AI β Identity-Provider Impersonation Audit Dec 4, 2026 Can Google (or any federated IdP), acting adversarially or under compulsion, impersonate a user and gain access to their historical encrypted conversations without compromising the TEE or obtaining encryption keys? Verdict YES. A malicious or compelled OAuth identity provider (Google, GitHub, or Apple) can cause Maple's enclave to decrypt a user's existing conversations, without compromising the TEE and without obtaining any key held outside the enclave. Confidence: high for OAuth-only accounts (verified by source trace and a working end-to-end exploit against the real server router at an isolated local deployment). The decryption key for historical chats is derived entirely from the enclave's own key plus facts the provider asserts (the account's provider + provider_user_id); no independent user-held secret is consumed on the OAuth login path. Maple's historical-conversation confidentiality is therefore not cryptographically independent of its federated identity providers. It is cryptographically independent of the operator's database (ciphertext at rest is useless alone) and reduces to the trust placed in (a) the enclave and its AWS KMS key policy, and (b) each enabled identity provider. For a federated account, the IdP is part of the trusted computing base for confidentiality, not merely for availability. The only accounts that hold an independent secret are email+password accounts that have separately enrolled a recovery code β and even those remain decryptable by the server under the password credential whenever the user logs in normally. The recovery code narrows, but does not remove, server-side decryptability. It does not apply to OAuth accounts at all. This is a design property of OpenSecret's server-held-seed model, not an implementation bug. Maple's own public materials describe the private key as "automatically managed" and "managed by our secure servers," which is consistent with this finding. The gap between that and a naive reading of "end-to-end encryption β¦ even from us" is the substance of this report. Scope, threat model, and method Question. Can a federated IdP, acting adversarially or under legal compulsion, impersonate a user and obtain their historical encrypted conversations β without breaking the TEE and without stealing encryption keys from the user? Adversary. The identity provider itself. It can mint a valid OAuth assertion for any subject it controls (including a victim's existing subject id), compelled or not. It does not have the enclave key, does not have a database dump, and is not phishing the user. This is strictly stronger than the usual "attacker steals a login" model: the IdP is authoritative over the very fact Maple's enclave uses to bind accounts. Sources reviewed (pinned). Source Pin / note MaplePrivacyLabs/Maple (monorepo; backend at services/ope/) commit 2be0c80d78e2072c47ded673a6789745e9b5bd4d OpenSecretCloud/ope retired to a signed-PCR mirror at fa992d213621d09535cc8de06bf11af7f9fb2d0b; backend source now lives in the Maple monorepo OpenSecret-SDK retired repo (904fcc79β¦), points to Maple dgobaud gist "Maple AI audit" (2026-11-27) independent third-party audit; cross-checked below blog.ope.cloud Maple post vendor marketing; cross-checked below Method. 1. Traced the full loginβdecryption path in the backend Rust source at the pinned commit (citations in the next sections). 2. Built the backend with the stable toolchain and stood up an isolated local deployment: a private PostgreSQL instance, the real production router (application_routes), a fixed fake enclave key, and a mock OAuth provider on loopback. No real Maple accounts, no real Google, no network to production. 3. Wrote one synthetic victim account and one synthetic conversation, then ran the exploit from a fresh client session that held none of the victim's secrets. Included a control (provider asserts a different subject) to prove it is the asserted subject β not the email, not a harness artifact β that grants access. Findings are labelled verified (traced in source and/or reproduced) or inferred/assumption (depends on production config I cannot see from the repo). Architecture: where the keys actually live Every user's data is encrypted under a per-user BIP-39 seed (12 words / 16 bytes of entropy), generated inside the enclave at account creation (private_key.rs:22 generate_twelve_word_seed). Conversation titles and message bodies are sealed with AES-256-GCM under a key derived from that seed (encrypt.rs encrypt_aead_v1 / AES-256-GCM; message content at web/responses/handlers.rs:6194 encrypt_with_key(&user_key, β¦)). The seed is never stored in plaintext and never leaves the enclave in normal operation. It is stored wrapped, in the user_seed_wrappings table (migration 2026-06-05-000000_aead_seed_wrappings). The old users.seed_enc column was dropped (2026-06-25-033953_drop_users_seed_enc). At rest the database holds only seed_enc ciphertext plus a credential_lookup_hash. The wrapping key is not user-derived. It is derived from a single enclave-wide root key β self.enclave_key β which is a 32-byte AES key generated by and sealed to AWS KMS (main.rs:3029 get_or_create_enclave_key; the ciphertext is stored in enclave_secrets and unwrapped via decrypt_with_kms). The enclave key is the same for every user; per-user separation comes only from the HKDF info/salt values, all of which are server- or provider-known. Consequence, stated precisely: β’ Against the database operator alone: confidentiality holds. A DB dump is ciphertext; the wrapping key lives in KMS, not the DB. (The gist's "key escrow" caveat is that a DB snapshot plus the KMS key would decrypt offline β true, and it depends on the mutable KMS key policy, which is an operational control.) β’ Against the enclave (or anyone who can make the enclave act): the enclave can always re-derive any user's wrapping key and seed from the enclave key + the user's record. Nothing the user holds is required. This is the hinge the IdP attack turns on. Verified in source and migrations. The single-root-key design is explicit: derive_key(root_key, β¦) and derive_key_with_salt(β¦) are thin HKDF-SHA256 wrappers (encrypt.rs:89β109), and every per-user key flows from enclave_key. Authentication-to-decryption execution path All file references are services/ope/src/β¦ in Maple commit 2be0c80. 1. Provider callback. web/oauth_routes.rs:589 oauth_callback validates the PKCE/state binding, exchanges the code, then fetches the provider profile: Google at fetch_google_user (:1142), GitHub at fetch_github_user (:1042), Apple at fetch_apple_user (:1180). Google is accepted iff email_verified is true (:1172); the subject used downstream is google_user.sub (:940). The provider is the sole authority for sub and the verified-email flag. 2. Account resolution. find_or_create_user_from_oauth (:1278) looks the account up by provider subject: get_project_user_oauth_connection_by_provider_subject(provider.id, provider_user_id, project_id) (:1301). A match returns the existing user (:1314). No password, device, or user secret is consulted. 3. Auth context. authenticated_oauth_user (:1218) calls oauth_auth_context_for_user (main.rs:1620), which builds an AuthContext from an auth binding computed by compute_oauth_auth_binding (seed_wrapping.rs:124). Its inputs: enclave_key, project_id, user_uuid, provider, provider_user_id (main.rs:1610β1616). Every input is server-stored or provider-asserted. 4. Seed unwrap = authorization. Still in authenticated_oauth_user, verify_seed_wrap_for_auth_context (main.rs:1674) calls decrypt_seed_for_auth_context (main.rs:1635). That function recomputes the wrapping key from enclave_key + the auth binding and AEAD-opens the stored seed_enc (main.rs:1658 decrypt_seed_v1). If it opens, login succeeds and tokens are minted (oauth_callback_response, :1241). The AEAD tag is the whole check β there is no separate password or possession proof. 5. Session tokens carry the binding. The JWT embeds the auth_binding (jwt.rs AuthContext::apply_to_claims, :205). On every later request validate_jwt (web/protected_routes.rs) re-runs verify_seed_wrap_for_auth_context, so the token is only usable while that binding still unwraps the seed. 6. Historical decryption. Reading old data calls get_user_key (main.rs:2073) β decrypt_seed_for_auth_context β plaintext_user_seed_to_key (private_key.rs:53), yielding the user key. Conversation metadata and message bodies are then AES-opened: ConversationContext::load + decrypt_metadata (web/responses/conversations.rs:78,97), message bodies via decrypt_string(&user_key, msg.content_enc) (web/responses/handlers.rs:9395). The raw seed can also be exported wholesale at GET /protected/private_key (web/protected_routes.rs:826). Net: a provider-asserted sub for an existing account walks straight through steps 2β6. Nothing between the assertion and plaintext requires a secret the user holds. The cryptographic crux The whole question reduces to one derivation chain. For an OAuth account, the key that unwraps the seed is: K_{wrap} = \mathrm{HKDF}\bigl(\,\mathrm{HKDF}(k_{enclave},\ \texttt{"seed-wrap-root.v1"}),\ \ \mathrm{salt}=b,\ \ \texttt{"seed-wrap-aead-key.v1"}\bigr) where the auth binding b is: b = \mathrm{HMAC}\bigl(\mathrm{HKDF}(k_{enclave},\ \texttt{"auth-binding-mac.v1"}),\ \ \texttt{project\_id} \,\|\, \texttt{user\_uuid} \,\|\, \texttt{provider} \,\|\, \texttt{provider\_user\_id}\bigr) This is derive_seed_wrap_aead_key (seed_wrapping.rs:338) over compute_oauth_auth_binding (seed_wrapping.rs:124). Enumerate the inputs: Input Who controls it Secret to the user? k_enclave enclave + AWS KMS No (not user-held) project_id server constant (Maple) No user_uuid server-stored No provider server constant ("google") No provider_user_id asserted by the IdP No Every input is known to the enclave the moment the IdP asserts the subject. There is no term that only the user possesses β no password verifier, no device key, no client-side wrapping key. Contrast the password path, where compute_password_auth_binding (seed_wrapping.rs:101) folds in the decrypted_password_verifier; that term is the user's secret. The OAuth binding has no analogue. So the AEAD unwrap at decrypt_seed_v1 (seed_wrapping.rs:320) succeeds for anyone who can make the enclave run step 3 of the path with the victim's provider_user_id β which is exactly what a login assertion from the IdP does. The cryptography faithfully binds the seed to the auth binding; the auth binding is simply not a secret with respect to the IdP. This is the core answer: historical-chat decryption for a federated account is a pure function of (enclave_key, account record, provider-asserted subject). Confidentiality is cryptographically dependent on the IdP. Empirical validation To confirm the trace rather than reason about it, I built the backend and exercised the real production router end-to-end against an isolated local database and a mock "Google." Setup. Private PostgreSQL (loopback, disposable), all 42 migrations applied. The test drives crate::application_routes(...) β the actual production assembly from main.rs:3780, behind the real Transport V2 encrypted gateway, real validate_jwt, real oauth_callback, real get_user_key. The only non-production change was removing the pinned rust-toolchain.toml (built on stable 1.97 instead of the unreachable 1.91.1 β no logic effect). The mock IdP returns whatever sub it chooses for any code; a fixed fake enclave key stands in for KMS. Procedure. 1. Created a synthetic Google-backed victim (subject victim-google-sub-1001, known seed). 2. As the victim, created a conversation titled SYNTHETIC-TITLE merger plan draft and stored a message SYNTHETIC-MESSAGE the vault code is 4471 (written exactly as the response handler writes it: AES-GCM under the user key). Confirmed the title does not appear in the raw metadata_enc bytes. 3. Discarded the victim's tokens and session. 4. Control: from a fresh adversary session, had the mock IdP assert a different subject with the same email. 5. Attack: from that same fresh session β holding no victim token, password, device key, or recovery code β had the mock IdP assert the victim's subject, then read history. Observed results. Step Result Control (different sub, same email) 409 β "User exists but Oauth not linked" β rejected. Access tracks the asserted subject, not the email, and not a harness shortcut. Attack login (victim sub) 200 β tokens issued for the victim's user_uuid. GET /v1/conversations/{id} 200 β decrypted title returned: SYNTHETIC-TITLE merger plan draft. GET /v1/conversations/{id}/items 200 β decrypted body returned: SYNTHETIC-MESSAGE the vault code is 4471. GET /protected/private_key 200 β returned the victim's exact BIP-39 seed mnemonic. A session that began with nothing but the provider's assertion read the victim's historical plaintext and exported the root seed. The control proves the grant is bound specifically to the provider-asserted subject. Hypothesis confirmed at the level of the running server, not just the source. GitHub, Google, Apple, email β equivalence All three OAuth providers are equivalent for this threat. They share the same compute_oauth_auth_binding / find_or_create_user_from_oauth path; only the profile fetch differs. β’ Google β subject is sub, gated on email_verified (oauth_routes.rs:1172). A compelled Google asserts any sub. β’ GitHub β subject is the numeric account id (oauth_routes.rs:911), email taken from the verified-primary address (:1127). GitHub (or anyone with its OAuth signing position) can assert any account id. Equivalent risk. β’ Apple β subject is the ID-token sub; here the token is cryptographically verified against Apple's JWKS and a per-session nonce (fetch_apple_user β validate_apple_native_token, oauth_routes.rs:1180). The nonce stops replay by a third party, but not Apple itself: Apple holds the signing key and can mint a fresh, correctly-nonced ID token for any sub. So Apple is equivalent against a compelled-IdP adversary, though marginally harder for a non-IdP attacker. β’ Email+password β different. The auth binding folds in the password verifier (compute_password_auth_binding, seed_wrapping.rs:101), so the seed cannot be unwrapped without the password. No IdP is in the loop. This is the one credential type whose confidentiality is independent of any federated provider β though still not independent of the enclave (the server sees the verifier at login and can unwrap then). The recovery code β the only user-held secret, and its limits Maple added an optional recovery code: a user-held 32-byte secret that seals a second wrap of the seed (compute_recovery_auth_binding, seed_wrapping.rs:196 β it hashes a secret the server does not store). This is real: it is the only place a user secret gates seed access. But it does not close the IdP gap: β’ Recovery is restricted to email-backed password accounts. recovery_router handlers reject guests and OAuth-only users: "Recovery management is limited to email-backed password users in V1" (protected_routes.rs:1419; the guard user.is_guest() || user.password_enc.is_none() at :1422). An OAuth-only account cannot enroll one at all β so for exactly the accounts this report is about, there is no independent secret anywhere. β’ Even for password accounts, the recovery code is a parallel wrap used for seed-preserving password reset; it does not stop the normal password path (or, if OAuth is also linked, the OAuth path) from unwrapping the seed server-side at login. Does remote attestation mitigate this? No β not for this threat. Remote attestation answers a different question. It proves the client is talking to a genuine Nitro enclave running audited code (the SDK pins PCR values and verifies the Transport V2 session is bound to the attestation; the gist independently confirmed the live Nitro chain and the Transport V2 key binding). That defends against a malicious operator swapping in code that exfiltrates seeds, and against a network MITM. But the IdP attack needs none of that. It uses the enclave exactly as audited. The audited code is what re-derives the seed from the enclave key plus a provider-asserted subject. Attestation guarantees the enclave will faithfully run the very logic that makes the attack work. Proving the code is authentic proves the attack is authentic too. Put differently: attestation secures the channel and the code; it says nothing about whether the authorization input (the IdP's assertion) is trustworthy. A correctly attested enclave will decrypt a victim's history the instant a compelled Google says "this is that user." Steelman both sides The case that this is acceptable and by design. OpenSecret never claimed the IdP is outside the trust boundary. The architecture's headline guarantee is confidentiality against the operator and its infrastructure β a DB dump is ciphertext, and the wrapping key lives in KMS, not the database. Against that stated threat it delivers: at rest the data is sealed, and the enclave + attestation stop the operator from quietly reading it. Federated login is a deliberate usability trade: users who choose "Sign in with Google" are implicitly trusting Google for account control, exactly as they already do for Gmail, Google Drive, and every other Google-login service. A user who wants to exclude Google can use email+password and enroll a recovery code. Seen this way, the IdP being able to authorize decryption is not a flaw but the natural meaning of delegating authentication β and no cryptosystem can both let Google vouch for you and keep Google from vouching as you. The case that it is a real confidentiality gap. The product is marketed on language like "end-to-end encryption β¦ even from us" and "only the user can access their data." A reasonable user reads that as: no third party, not even my login provider, can read my past chats. That is false for federated accounts, and the gap is invisible β nothing in the login UI says "choosing Google lets Google (or anyone who compels Google) decrypt your history." The adversary is realistic: a national-security letter or foreign-government order to Google does not touch Maple at all, leaves no trace in Maple's logs, and yields full plaintext history, not just future messages. "E2EE" normally implies the server cannot produce plaintext even if it wants to; here the server produces plaintext on demand given an IdP assertion, which is closer to encryption-at-rest with federated access control. Worse, the gap is silent: Maple cannot distinguish a genuine user login from a compelled-assertion login, so it cannot even warn the user. Where they meet. Both sides agree on the mechanism; they disagree on whether the marketing sets an expectation the architecture doesn't meet. The technical finding is not in dispute β only its framing is. Architectural guarantees vs operational assumptions Statement Status Data at rest in the DB is ciphertext; a DB-only dump cannot decrypt it Verified (architectural) β seed stored only as seed_enc; wrapping key not in DB The enclave can re-derive any user's seed from enclave_key + account record Verified (architectural) β trace + reproduction OAuth login consumes no user-held secret; provider-asserted subject is sufficient Verified β source + end-to-end exploit All three OAuth providers are equivalent for this threat Verified (source) OAuth-only accounts cannot enroll a recovery code Verified (source: protected_routes.rs:1419β1422) Email+password accounts' seed is not unwrappable without the password Verified (source) β independent of IdPs, not of the enclave A compelled IdP leaves no trace in Maple's logs and Maple cannot distinguish it from a real login Inferred β follows from the design; consistent with code (no provider-signature pinning per user), not separately instrumented In production, KMS key-policy + attestation gate who/what can invoke the enclave key Assumption β depends on live AWS config I cannot see in the repo; the gist flags the KMS policy as mutable The hosted Maple deployment matches this source at the audited commit Assumption β cannot verify remotely; attestation PCRs are the intended check Speculation, flagged as such: I did not test the hosted maple.ai service (out of scope β no real accounts). Whether Google would comply with such an order, and whether Maple has out-of-band detections, are not code questions and are not assessed. The claim is strictly about what the architecture permits. What would close the gap To make historical-conversation confidentiality cryptographically independent of the IdP, the seed wrap would need a term the user holds and the enclave never persists β on the OAuth path too. Options, roughly in order of user-friction: 1. Mandatory client-side secret for every account type. Fold a client-derived key (passphrase, device-stored key, or passkey/PRF secret) into the seed wrap for OAuth accounts as well, the way the password verifier already is for password accounts. Then a provider assertion alone cannot unwrap history. This is the only change that removes the dependency rather than narrowing it. 2. Make recovery-style client wrapping the default, including for OAuth accounts (today it is opt-in and barred for OAuth-only). Existing history would stay server-decryptable until re-wrapped. 3. Client-side encryption of stored chats under a key that never enters the enclave in unwrappable form β the gist's "client-side wrapping of stored chats" remediation. Strongest, highest friction, breaks server-side features (search, server-side compaction) that currently rely on the enclave seeing plaintext. 4. Honest scoping of the claim. If the server-held-seed model is kept, state plainly that federated login places the IdP in the confidentiality TCB, and that only email+password (ideally + recovery code, + a client secret) excludes third parties. This is a documentation fix, not a cryptographic one, but it closes the expectation gap the steelman identifies. Note that steps 1β3 trade away the seamless cross-device sync and server-side processing that the current model buys; that trade is the reason the architecture is the way it is. Prepared from source review at Maple commit 2be0c80 and a reproduced end-to-end test on an isolated local deployment with synthetic data and a mock OAuth provider. No real user accounts or production systems were accessed.
Maple is just wrapped TEE. They do a lot of circumlocution to avoid saying it but they just proxy and add risk by using federated identities controlled by Microsoft and Google. You can use TEE privately without them and just encrypt/back up on your own machine as you see fit.