# Security

> Sessions, the desktop app, deep links, secrets in the panel, the threat model and the checklist.

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

For agents: App security principles: the chat has no powers beyond the person's permissions in each product; approvals and spending need a person's session (agent tokens get 403 person_required); secrets never shown in the side panel; sessions per device, revocable; desktop updates double-signed; deep links (sypnia-app://) only open or sign in, never act; Open in my editor starts the editor with a path only; product content shown in the chat is data, never instructions (prompt injection is Agent's concern too).

Five rules hold everything else up:

1. **The chat can do only what you can.** It works through each product's API with your session and your role there.
2. **Only a person approves or spends.** Approvals, top-ups, purchases and raising limits need a person's session; tokens used by agents are refused.
3. **Secrets are never shown.** The side panel shows a secret's name and when it was set, never its value.
4. **The desktop app does nothing on its own.** Its links only open things or bring back a sign-in; the editor button only opens a path; updates are signed twice.
5. **What products show is data.** Text from a file, a row or a log shown in the chat is never followed as an instruction.

- [Threat model](/security/threat-model/): What could go wrong in Sypnia App, and how each threat is answered.
- [Checklist](/security/checklist/): What to check for your organization in Sypnia Cloud, and for your own App server.
