# Threat model

> What could go wrong in Sypnia App, and how each threat is answered.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://app.docs.sypnia.com/security/threat-model/

For agents: Threats and answers: stolen browser session (per-device sessions, 30-day idle expiry, Account → Devices sign-out, sensitive actions re-check the session age); stolen CLI/desktop session file (mode 600, DPoP-bound so it is useless on another machine, revocable); an agent spends or approves (no MCP tools, 403 person_required); prompt injection through a file, a row or a log (shown as data, Agent's rules outside the model, approvals show the exact effect); malicious deep link (sypnia-app:// only opens a project/session or completes sign-in with a one-time code bound to that device; never runs commands); poisoned desktop update (Tauri update signature + OS signature, signing key offline); editor button abuse (path only, no arguments from the project); fake PayPal confirmation (webhook signature verified, capture checked with PayPal, credits once per order id); member over-spending (roles, requests, limits); attachments with malware (stored privately, never executed; scanned by Files where enabled); cross-organization reads (every query scoped by organization and the product's own checks).

| Threat                                                                  | Answer                                                                                                                                                     |
| ----------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Someone steals a browser session                                        | one session per device, ending after 30 days without use; **Account → Devices** signs it out; approvals and spending check that the session is recent      |
| Someone copies the session file of the command lines or the desktop app | the file is readable only by you, and the session is bound to a key on that computer, so a copy is useless elsewhere; revoke it from **Account → Devices** |
| An agent spends credits or approves its own work                        | there are no such MCP tools, and agent tokens get `403 person_required`                                                                                    |
| A file, a row or a log carries instructions for the agent               | it is shown and handed over as data; Agent's rules are checked outside the model; every approval shows the exact effect                                    |
| A malicious `sypnia-app://` link                                        | links only open a project or a session, or finish a sign-in started on that device with a one-time code; they never run anything                           |
| A poisoned desktop update                                               | every update carries the system's signature and Sypnia's update signature; the signing key is kept offline                                                 |
| The editor button is used to run code                                   | it starts the editor with a folder or file path only                                                                                                       |
| A fake payment confirmation                                             | PayPal's signature is checked, the payment is confirmed with PayPal, and credits are added once per order                                                  |
| A member spends too much                                                | roles, spending requests and limits                                                                                                                        |
| An attachment carries malware                                           | it is stored privately and never opened by App; Sypnia Files scans it where scanning is on                                                                 |
| One organization reads another's sessions                               | every read is scoped to the organization, and each product checks your permissions again                                                                   |
