# Threat model

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

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

For agents: Domains threat model: hijacking (lock on, auth code owners-only with re-confirmation and e-mail to all owners, never agents); account takeover (NS/apex/MX change notifications, history, undo, passkeys/2FA); subdomain takeover (connections remove records on deletion, reconciler flags dangling CNAMEs); forged DNS (DNSSEC); unwanted certificates (CAA on first connection); spending (owner/billing roles, person-confirmed quotes, agent spending limits, warning before purchase); accidental expiry (auto-renew, set-aside 45 days, reminders, grace/redemption); contact data (privacy, encrypted at rest).

| Threat                                                                   | Answer                                                                                                                                                                                                                                              |
| ------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Domain hijacking**: someone transfers your domain away                 | transfer lock on by default; the auth code only for owners, after re-confirming, with an e-mail to every owner; agents can never get it                                                                                                             |
| **Account takeover** used to change name servers or records              | changes to `NS`, the apex and `MX` notify owners; record history shows who and from where; `records undo` reverts; sign-in protections of the Sypnia account (passkeys, two factors)                                                                |
| **Subdomain takeover**: a record still points at a deleted app or bucket | connections remove their records when the resource is deleted; the reconciler flags `CNAME`s pointing at Sypnia resources that no longer exist                                                                                                      |
| **Forged DNS answers**                                                   | DNSSEC available with one command                                                                                                                                                                                                                   |
| **Unwanted certificates** for your domain                                | a `CAA` record limiting issuance to the authorities Sypnia uses, added on first connection                                                                                                                                                          |
| **Accidental or abusive spending**                                       | purchases only by owner and billing roles, quotes confirmed by a person, agents with [spending limits](https://domains.docs.sypnia.com/security/agent-spending-limits), no refunds hidden in fine print: the warning is shown before every purchase |
| **Expiry by accident**                                                   | automatic renewal, credits set aside 45 days before, reminders, grace and redemption periods                                                                                                                                                        |
| **Exposed contact data**                                                 | privacy protection on where the ending allows; contact data encrypted at rest                                                                                                                                                                       |
