Security & privacy
Microsoft permissions (delegated)
At Microsoft sign-in you approve these delegated Graph permissions (the app acts only with your account signed in):
| Permission | Why LK Attach requests it |
|---|---|
offline_access | Keeps the connector signed in between sessions (refresh token). |
openid | OpenID Connect sign-in with Microsoft. |
profile | Basic profile claims in the ID token. |
User.Read | Read your signed-in profile (e.g. display name) after connect. |
Files.ReadWrite | Upload, search, and download files in OneDrive for attachments (the service uses a dedicated root folder). |
Mail.ReadWrite | Create Outlook drafts and add file attachments. Microsoft Graph has no separate “draft-only” mail scope — this permission covers draft operations. |
Mail.Send | Send an Outlook draft when send_draft runs with confirm: true (you should gate sends with Claude Ask every time for that tool). |
No draft-only scope. Graph does not offer a permission limited to drafts without broader mailbox access. LK Attach’s code only calls OneDrive upload/download/metadata/search endpoints and Outlook draft create, attachment upload, send draft, and delete draft (delete is used only to roll back a draft if attaching files fails — not to clean up drafts you leave unsent).
What the server actually calls
With your access token, the Worker calls Microsoft Graph, for example:
- OneDrive — create upload sessions, upload content, read item metadata, search under your root folder, download item bytes (streamed through the Worker).
- Outlook — create a message in Drafts, add file attachments (inline or upload session), send a draft you approved, and occasionally delete a draft if attachment processing fails mid-flight.
Shipped tools do not list, read, or search your inbox. If you (or a future LK Attach tool) save attachments from received email into OneDrive, that workflow would read those messages and their attachment bytes via Graph—not only draft operations. Today’s six MCP tools do not include that feature.
Work or school Microsoft 365 tenants
Some organizations block user consent for apps from unverified publishers. If sign-in fails or your admin requires approval, an IT administrator may need to grant admin consent for LK Attach in Microsoft Entra ID: open Enterprise applications (or App registrations), find the LK Attach app your tenant uses, and choose Grant admin consent for the organization—or follow your org's process for third-party OAuth apps.
OAuth tokens
- Refresh tokens are stored in Cloudflare KV (
USER_KV), encrypted with AES-256-GCM using a deployment secret (ENCRYPTION_KEY). - Retention: sliding 90-day inactivity TTL on stored refresh tokens and metadata (each successful use extends the window).
- Access tokens are short-lived and kept in memory for the request only.
- Disconnect: remove the connector in Claude; revoke the app in your Microsoft account permissions (personal) or enterprise app consents; cancel billing in Stripe; use Delete my data in subscription settings to purge tokens and billing data we hold. Invalid or revoked refresh tokens are deleted when refresh fails with
invalid_grantorconsent_required.
File contents
File bytes are streamed through the Worker toward OneDrive or Outlook attachment APIs. We do not write attachment or upload payloads to disk or KV. See the Privacy policy for logs and billing records.
Subprocessors and providers
- Cloudflare — hosts the Worker, KV, and request logs.
- Stripe — subscription billing and VAT (Stripe Tax); payment data is processed under Stripe’s terms.
- Microsoft — your mailbox and OneDrive provider (not our sub-processor; we access it on your instructions).
Sending safety and prompt injection
send_draft requires confirm: true in the tool call—the model sets that flag; it is not the human approval. The real gate is Claude's per-tool permission for send_draft: you only get a prompt when the tool is set to Ask every time. With Always allow, the tool can send without a human click. We recommend Ask every time for send_draft. A malicious email or webpage could try to trick the model into sending—per-tool approval is your main guard when enabled.
Plain-language threat model
- What we protect: encrypted refresh tokens, minimal retention, no stored file payloads, send gated on
confirm: trueplus Claude per-tool approval when set to Ask every time. - What you should assume: anyone with a valid connector session could create drafts and upload into your configured OneDrive folder; with
confirm: trueand Always allow onsend_draft, sends may not need a human click. Grant only accounts you trust, use Ask every time forsend_draft, and revoke access when you stop using the product. - What we do not fix: compromise of your Claude or Microsoft account, or you approving a send you did not intend.
Unsent drafts
Drafts you create stay in your Outlook Drafts folder. LK Attach does not delete them when you disconnect or cancel. Only failed attachment pipelines may trigger an automatic draft delete on the server.
Attachment size
Up to your mailbox limit (max 50 MiB per message on LK Attach; Outlook.com is typically about 25 MB)
Refunds
Consumers may withdraw within 14 days of first payment for a full refund; after that, cancel at period end via Stripe — see Terms sections 7–8.
Report security issues to support@liminalkeys.com (include “Security report” in the subject).