Security Whitepaper

Technical security overview – version 1.2 (2026-05-03)

This is the public version of our Security Whitepaper. For deeper technical documentation (server configurations, diagrams, pentest summaries), contact support@lexcodex.ai — NDA may be required.

1. Summary

LexCodex.ai is an AI-driven legal analysis platform. This whitepaper describes our security architecture, data flows, intrusion protection and GDPR mechanisms. The fundamental principle is zero data retention on legal content.

2. Architecture

Frontend: Vanilla JavaScript SPA with static HTML pages. No third-party libraries for authentication.

Backend: PHP 8 on Apache with MySQL/PDO. Hosting in certified EU data center.

AI layer: the AI provider. No contract texts or AI responses are stored, and LexCodex does not use data for model training.

3. Data flow

When a user analyses text:

  1. Text is sent encrypted (TLS 1.3) to our PHP proxy
  2. The proxy validates session, rate limit, user plan and CSRF
  3. The text is sent encrypted to the AI provider
  4. The response is returned to the user
  5. The text is not stored on our servers — only counts of the number of analyses and which tool was used (without content, for aggregated statistics)

4. Tenant isolation

Each user account is isolated at the database level:

5. Authentication

6. Transport and storage

7. Intrusion protection

8. GDPR mechanisms (self-service)

9. Incident handling

10. AI/LLM security

LexCodex applies controls based on OWASP Top 10 for LLM Applications:

Hallucination control: every claim is bound to a verified primary source across Swedish, Norwegian, Danish or EU law with second-pass verification. The AI is instructed to prefer "I'm uncertain, please consult primary sources" over fabricated references.

11. Audits and tests

12. Sub-processors

LexCodex.ai uses certified third-party providers for AI analysis, hosting (EU), payments and spam protection. All are certified to industry standards (SOC 2 Type II, ISO 27001, PCI DSS Level 1) and bound by data processing agreements (DPA). Enterprise customers receive the full vendor list under NDA as part of onboarding.

13. Reporting a vulnerability (Responsible Disclosure)

If you find a security issue, please email support@lexcodex.ai with:

We acknowledge your report within 2 business days and provide a remediation plan within 7 business days for confirmed issues. We thank reporters in writing if a fix is shipped, and credit you publicly with your permission once the issue is resolved.

No bug bounty programme at this time. Out of scope: denial-of-service testing, social engineering of staff, physical attacks, automated scanner output without manual verification.

14. Contact

Security incidents and responsible disclosure: support@lexcodex.ai

Security audit / additional documentation: support@lexcodex.ai

See also: Data Processing Agreement (DPA) · Privacy Policy · Security & Trust