SECURITY
Security
Legalcode is a read-only search service over public legal sources. Searches are processed in memory and never stored, so there is very little data to protect. This page describes how we protect it.
Last updated 23 September 2026
01 / Very little data, by design
Legalcode’s tools only read public legal sources. Your AI app sends a search, Legalcode returns legal texts, and the search text and results are discarded. Conversations, documents and prompts stay in your AI app and never reach Legalcode.
The only data we keep about users is account details, sign-in sessions, usage-limit counters and a short audit log. The full list is in our privacy policy.
02 / Hosting and encryption
- Servers, databases and backups are hosted by Hetzner in Germany, in ISO/IEC 27001-certified data centres.
- Traffic reaches the server only through an encrypted Cloudflare Tunnel. No service port is open to the internet.
- All connections use TLS 1.2 or higher, with TLS 1.3 supported, and HSTS.
- Access tokens, sign-in codes and API keys are never stored in readable form; they are hashed or encrypted.
- Daily backups are kept for seven days, and restores are tested.
03 / Sign-in and access
- Users sign in with a one-time email code or a Google account, and Microsoft Entra ID sign-in is set up for organisations that ask. There are no passwords.
- AI apps connect with OAuth 2.0 and PKCE. Every call is checked, and a revoked token stops working within 15 seconds.
- Organisation administrators add and remove users and can revoke access at any time.
- Production access is limited to one named operator, with multi-factor authentication and SSH keys from approved IP addresses.
04 / Logging
Request logs record the time, route, status, response time and the name of the calling app. They never contain search text, results, IP addresses or user identity. Administrative actions are kept in an audit log for 90 days, without IP addresses.
05 / Incidents and vulnerability reports
Report vulnerabilities or suspected incidents to security@legalcode.md. We acknowledge and assess reports within 24 hours. Institutional customers are told of a personal-data breach affecting them within 24 hours, and we notify Persónuvernd within 72 hours where the law requires it.
We will not take legal action against good-faith security research that avoids privacy violations, service disruption and data destruction and only tests accounts you own. See also security.txt.
06 / Certification and suppliers
Our information security management is developed with reference to ISO/IEC 27001:2022. Legalcode is not certified. Our suppliers are listed on the trust page, and security questionnaires can be sent to security@legalcode.md.