Security

Your clients trust you
with everything.
We take that seriously.

Legal data is among the most sensitive information in existence. Lex is built security-first — not as an afterthought, but as the foundation every feature sits on.

Defence in depth. Not defence in one layer.

Security is not a single feature. It is a posture that runs through every layer of the system — authentication, data storage, file handling, access control, network, and audit. Each layer protects the ones below it.

Two-factor authentication — mandatory
Every staff account requires TOTP two-factor authentication (compatible with Google Authenticator, Authy, and any RFC 6238 app). There is no way to disable 2FA for production accounts. New staff are walked through setup on first login and cannot proceed until it is complete.
SHA-256 hash-chained audit log
Every action in Lex — every login, document view, file upload, invoice edit, setting change, and role assignment — is recorded in an append-only audit log. Each entry is linked to the previous entry using SHA-256 hashing, forming a chain. Any attempt to alter or delete a historical entry breaks the chain and is immediately detectable. This log cannot be manipulated, even by a system administrator.
Firm-isolated document storage
Every firm's documents and voice notes are stored in isolated, firm-specific directories: storage/firms/{firm_id}/. No firm can access another firm's files — not through the application, not through the database, not through the filesystem. Files are never served by URL. They are always routed through the application, which verifies firm membership and permission on every request before returning a single byte.
SHA-256 file integrity verification
Every document uploaded to Lex is hashed with SHA-256 on arrival. The hash is stored alongside the file. Before serving any file — download, preview, or portal view — Lex re-computes the hash from the file on disk and compares it against the stored value. If they do not match, the file is refused and an alert is raised. This catches storage corruption, unauthorised file replacement, and any tampering at the filesystem level.
Role-based access control (ten levels)
Lex has ten defined permission levels: super admin, firm admin, managing partner, partner, associate, paralegal, accounts, receptionist, auditor, and client. Each role has a precisely defined set of permissions. Associates can only see their assigned cases. The accounts role sees all billing but cannot view case documents. The auditor role has read-only access to the audit log and nothing else. Permissions are enforced at the controller level on every request — not just in the UI.
Multi-tenant data isolation
Lex is a multi-tenant platform. Every database table that holds firm data has a firm_id foreign key. Every query in the application is scoped to the requesting firm's ID — which is read from the authenticated session, not from user input. A user at one firm cannot read, write, or even confirm the existence of data from another firm. The super admin can see aggregate system statistics but has no access to any firm's legal content.
CSRF, session, and password security
Every form submission and AJAX request in Lex carries a CSRF token that is validated server-side. Sessions expire on inactivity, regenerate on every login, and are destroyed fully on logout. Passwords are hashed with bcrypt (12 rounds). New staff accounts arrive with a temporary password and are forced to set their own before accessing anything. Password reset tokens expire after 60 minutes and are single-use.
PCI-DSS compliant payments
Subscription payments are processed through PowerTranz, a PCI-DSS Level 1 certified payment gateway integrated with Bank of The Bahamas. Card details are entered on PowerTranz's hosted payment page — Lex never sees, stores, or transmits card data. Fraud scoring is provided by Kount by Equifax, which runs real-time risk assessment on every payment attempt.
TLS 1.3 in transit
All communication between the browser and the Lex server is encrypted using TLS 1.3 — the current gold standard. HTTP connections are automatically redirected to HTTPS. HSTS headers ensure browsers remember to always use HTTPS for your firm's domain. There is no fallback to unencrypted transport.

Where your data lives. And how it stays yours.

Lex is deployed on AWS infrastructure — the same platform used by the world's largest banks, hospitals, and governments. Your firm's data is encrypted at rest and in transit, stored in isolated firm-specific directories, and backed up continuously.

  • Data stored on AWS infrastructure with automatic redundancy
  • Firm data isolated at the filesystem, database, and application layer
  • Document files served only through authenticated application routes
  • Automated daily backups with point-in-time recovery capability
  • Full data export available on request — JSON + original files
  • Data never sold or shared with third parties
# Firm storage structure
storage/firms/
├── {firm_id_1}/
│ ├── documents/
│ ├── voice_notes/
│ └── exports/
├── {firm_id_2}/
│ ├── documents/
│ └── voice_notes/
└── {firm_id_N}/
No firm can access another firm's directory
Document integrity check
Stored hash: sha256:a3f9e2b...
Current hash: sha256:a3f9e2b...
✓ File integrity verified — serving

Compliance & certification roadmap

We are transparent about where Lex is today and where it is heading. Current status is noted for each item.

PCI-DSS v4.0
Active via PowerTranz
Payment Card Industry Data Security Standard
Payments processed via PowerTranz (PCI-DSS Level 1 certified). Lex itself does not store card data.
SOC 2 Type II
Roadmap — 2026
Service Organization Control 2 — security, availability, confidentiality
SOC 2 audit preparation is underway. Target certification: 2026.
Penetration testing
Semi-annual
Third-party security assessment by qualified testers
Semi-annual penetration tests conducted by an independent security firm. Reports available to Enterprise customers on request.
GDPR
By design
General Data Protection Regulation (EU/UK)
Lex is designed for GDPR compliance — data minimisation, right of access, right to erasure, data portability, and lawful basis for processing are all supported.

Found a security issue?

We take all security reports seriously. If you discover a vulnerability in Lex, please report it to us privately so we can address it before it is exploited. We commit to acknowledging your report within 48 hours and providing a resolution timeline within 7 days.

Report a vulnerability — support@lex.law

Security you can demonstrate
to your clients.

Start your free demo and explore the audit log, role permissions, and document controls yourself.

Ask a question