Security
What we can see, and what we can't.
Handwren holds secrets in two different ways, depending on what you ask it to do. We'd rather explain both plainly than call everything “zero knowledge”.
Secret links: we can't read them
When you make a link on the website, your browser generates a random 256-bit key and encrypts the secret with AES-256-GCM. The key goes in the link after the #. Browsers don't send that part of a URL to a server, so it never reaches us. We store only the scrambled text.
From the same key, your browser derives a separate access token (HKDF-SHA256). We store a hash of it. To spend a view, the recipient's browser has to prove it holds the key by sending that token. So someone who only knows a link's id can't open it or burn it, and a wrong passphrase is caught before a view is used.
With a passphrase, the key is combined with PBKDF2-SHA256 (310,000 iterations) of the passphrase. Five wrong tries and the link is destroyed.
Loading a link page spends nothing. Only pressing Reveal does, so chat previews and email scanners can't burn a link. When the last view is used or the time runs out, the scrambled copy is deleted from our database, not flagged.
One exception: if an AI agent asks us to make a link from text it already holds (the create_link tool), we encrypt it on our server for the length of that call, because the agent has handed us the plaintext. The API says so in its response. The recipient's experience is the same.
Requests
A request link carries a random token, stored hashed. Answering one is the only thing that needs it. What happens to the answer depends on how the request was made:
- End-to-end requests (made through the API with your own public key): the person's browser encrypts the secret to your key (ECDH-P256+HKDF-SHA256+A256GCM). We store the envelope and can't open it.
- Vault requests (everything else): the secret goes to your vault, described below.
The vault: we can use it, on your terms
A secret in your vault is there so Handwren can use it for you: to reveal it to you when you ask, or to add it to API calls your agents make through a grant. That means we can decrypt it, and we don't pretend otherwise.
Each secret is encrypted with its own random key (AES-256-GCM), and that key is encrypted with a master key held only in our server's environment, never in the database. A copy of the database alone decrypts nothing. Every reveal is recorded in your activity log, and deleting a secret wipes the ciphertext and ends every grant made from it.
Grants and brokered calls
A grant is a token (shown once, stored hashed) that lets its holder make HTTPS calls with one vault secret, within limits the secret's owner approved:
- Named hosts, HTTP methods and path prefixes. Anything else is refused.
- Where the credential goes is fixed when the grant is approved, so a call can't move the key into a URL or a body bound for somewhere else.
- HTTPS only, standard port, no redirects followed. Every address a host resolves to must be public; the check runs as the connection is made, so a host can't be re-pointed at a private network between check and call.
- Requests up to 1 MB, answers up to 2 MB, 20 seconds per call.
- If an API echoes the key back, it's replaced with a marker before the answer is passed on.
- A grant shared with another agent can never allow more than the one it came from, and revoking a grant ends every grant shared from it.
We log each call's method, host, path, status and timing. Never bodies, never keys.
Everything else
- Secrets, keys and tokens are never written to logs, error reports, analytics or email. Error reports are scrubbed before they leave the server.
- API keys and every other token we issue are stored as SHA-256 hashes and shown once.
- Link and request pages are never indexed and send no referrer.
- Hosting, database and auth run on Helm7. Payments are handled by Stripe; we never see card details.
Reporting a problem
If you think you've found a security issue, email [email protected] with “security” in the subject. We'll reply within two working days.
We haven't had an independent audit yet. When we do, the report will be linked here.