Attack demo: three scenarios when the server is stolen
This page is the interactive proof of the public attack scenarios: database theft, packet capture, and brute-forcing the passphrase. All three scenarios run locally in your browser, on fixture synthetic samples and a local simulator with real parameters. Demo boundary (stated): every piece of data on this page is a fixture synthetic sample (same source as the /spec samples), not production data; the rate-limit simulator hits a local simulator, never the live endpoint.
Last updated: 2026-11-27
Scenario 1 | Steal the DB: you get a box of ciphertext
The most extreme theft scenario: a full database dump. Below is a fixture dump fragment; every content field is ciphertext:
-- tacet.ink D1 dump fragment (fixture synthetic sample; same source as /spec sample-enc-v3.json) -- table notes note_id | ciphertext | created_at | updated_at | version n-spec-0001 | jr1b.bIypt6ai6IAGXS7EoriDb1QrCTYddFBExJOzp3NIfF4eA/OCU5gLtqse6GpLIuL1PVLzM006nd3GmhjDUYuOFdYl2DwkjHvU+JrvQGG16/m2FohbUuyfAxTiYsH9CN0qUg4IcJpmTfgzgGE5GghMloXFqMMUNV5Hui0rAKI92szaj4qogiMH4p1YofW789UZrc4HUkc4bBKhp7T9LZvv0KDFYGopHoq7X5zGgYfXT0oMVQeW5sNxJqsXBbTruVZs1s5ke92vSD3IKZJmdjXFlxw1zARGizh/LXnLqMwXp+SmssS3t4zsUq9O4A== | 1795741200000 | 1795741200000 | 1 n-spec-0002 | jr1b.7cgF1z8//e5HzmBxpkppvVFbWlN6lkOiYdwp+ooGjRBINUBDbshIi0AxGgkin/pqxpTX0klNjVmIwcdqiSRxLWFlUTRqq2ClCWZacYE3oHfklSzWxvOY0M2dM7sFq+ln0KpZ5meEm0lL3x6XX9AoG73qTDTGn1UBUzcC0nD6FrwuajJ6Kuh0ldr8g3CtHw/wuH2iqQ/L3NB/LAjhYaHJrdFNRIjJNrlp00BaVyC7ZZPQcnPN0gF0t6QCFsnj5+ihZZEqgut+pKlBoCSX+7nJNsvJFvX2yU4= | 1795744800000 | 1795744800000 | 1 -- table wrapped_key wrapped | jr4w.X7kXSuEkSwzq45hm30rdGxZnrOS5o1LV2VAwGBDJ6tzwpwgVf4dW8i3LeZrOl2j8/GDzCHNJGFngQ5PXgDwKCB4fUPQCPbqhDa6rlpLClZsNwFeKIYDCaQxVNFY= salt | 1d475bdddf2fc5ef3f8dcb1067e9f96b -- table attachments attachment_id | note_id | ciphertext | kind | size att-spec-0001 | n-spec-0001 | jr1c.NGagdfRdmMciT0RQpQDRMg8+lrzAvi/wgRGrjUM3NqXFNHBnWFOejHsJCBaekMPZ84aw0ca+9ZqoyMuJ9dRA+9IXTQZolg1KYMJSP3ZypkUgDcqK+Xa1Nb/mJMuy2MEcO93khP7DCy+MGH2DEpDmcLZzyVzCmG2quKuGDD7gefuOvRJfXx1d+Nl9OP4Q7thRNTUwtGQb0SA3xMPprPV7d6Q5Alu8zdIvGjaFer5PQhpfose1 | img | 245 att-spec-0002 | n-spec-0002 | jr1c.Iqmw0Lvkn6iGQxwjigUk/TWHIH8VPE9/CUAwNevydX9B8LFRuHayHt53yUyL7iAncWD10JdRk8U+9UIbS9423Guro5MPcH3YXRSoDPpJRqwTllow0L8VnGv+qhvKadio8GlJFTiQeVxMz/123x1w+woOcz3YlJch4vqYk9B+2CqQmkE43al7DqxtY49UvtOpgD6Prnt+pJ1pFTYJb4cAJ+DNOd5rnQ1LUHmsxNK98m7mh9KHgEmrtqDnibOJrpHF1r5GsxMSkzm+KGOiI4uNzMl1XzcUyg== | file | 293
Field annotations:
note_id/attachment_id: server-generated random ids, not account numbers, carrying no identity field.ciphertext(family prefixesjr1b./jr1c.): AES-GCM ciphertext; the plaintext never left your device.wrapped(jr4w.): ciphertext wrapping the note key; without the passphrase it is not a key.salt: KDF salt, a public value, not a key.
Search the dump for your own keyword: type a name, a company, or a piece of content. The search runs only in your browser over the full dump text above, and the result is shown as-is:
(Type a keyword, then press Search the dump.)
0 hits is not a bug: ciphertext holds no plaintext keywords. The server cannot read the content by design; the precise boundary is in the threat model.
Scenario 2 | Packet capture: only ciphertext and non-identity fields
Suppose an attacker midway through the network captured all of your traffic. Below is a schematic fixture of the fields the server saw (three representative requests):
Login POST /api/auth: no passphrase in the packet
jr3w.BeQ8F6s3DdJWY853l2jRv5dHtVEMd+tjJ3XuIisu2ymuK7IInuqIvxtwPD3WzhTkEtCRr+h7KOfWo5FM6ELGjPxwxHAp5LtM5zcEg8hmCqH3dMX9iHF7IOQl3Ak= (KAT17 frozen vector): passphrase wrap (Argon2id); without the passphrase it is not a keyUpload POST /api/sync: the fields are only ids and ciphertext
jr1b.bIypt6ai6IAGXS7EoriDb1QrCTYddFBExJOzp3NIfF4eA/OCU5gLtqse6GpLIuL1PVLzM006nd3GmhjDUYuOFdYl2DwkjHvU+JrvQGG16/m2FohbUuyfAxTiYsH9CN0qUg4IcJpmTfgzgGE5GghMloXFqMMUNV5Hui0rAKI92szaj4qogiMH4p1YofW789UZrc4HUkc4bBKhp7T9LZvv0KDFYGopHoq7X5zGgYfXT0oMVQeW5sNxJqsXBbTruVZs1s5ke92vSD3IKZJmdjXFlxw1zARGizh/LXnLqMwXp+SmssS3t4zsUq9O4A==: AES-GCM ciphertext (encrypted on the device before upload)Pull GET /api/sync: the response is the same ciphertext rows
The key is generated on your device: derived from the passphrase via Argon2id into a wrapping key, the content is encrypted with AES-GCM before it leaves the device; the server only ever touches ciphertext.
Scenario 3 | Brute-forcing the passphrase: real-parameter rate limit, local simulation
Brute-forcing the passphrase means retrying the login endpoint over and over. The login face has a two-layer rate limit; the simulator below runs locally with the real parameters, and requests never reach the server:
| Layer | Key granularity | Cap | Window |
|---|---|---|---|
| fine window (login_rate) | /64 (IPv6) or single IP (IPv4) | 10/min | 60 s fixed window |
| coarse window (coarse_login_rate) | /48 (IPv6) or /24 (IPv4) | 60/min | 60 s fixed window |
Behavior: both windows count independently; if either is exceeded you get 429 ERR_RATE_LIMITED (counters never cap, they keep counting as-is); when the window expires it resets as a whole. Why two layers: rotating 50 IPs within the same /24, each passes the fine window, and the coarse window converges them.
Local simulator (parameters = the real login face; requests never reach the server)
fine window 0/10, coarse window 0/60, total 0 (passed 0 / blocked 0)
Recent log (newest first)
Honest note: this simulator is a pure-frontend local simulation: the parameters mirror the real login face (the gates of this repo reconcile them word for word), but the requests never reach the server. The demo does not hit the live endpoint: a brute-force demo against the live endpoint would contradict the rate-limit stance itself.
Demo boundary (honest baseline)
Every piece of data on this page is a fixture synthetic sample (same source as /spec's sample-enc-v3.json, with a published constant passphrase), not production data; the rate-limit simulator is a local simulation with real parameters, never a live attack on the real endpoint.
The precise boundary of the sentence "the server cannot read it" (including the conditions under which it holds against a malicious server) is written in the threat model; you can open your encrypted backup and re-verify it by hand at any time on the public verification page. The key is on your device; the double anchor of self-verification, the ciphertext on the server plus the key on the device, is the foundation of trust.
The rate limit blocks mass guessing, not targeted attacks; that stance is consistent across the site.