Infrastructure

Security Overview

LexGuard AI is built with an uncompromising focus on the security of your legal assets. We employ multiple layers of technical safeguards to keep your documents private and protected.

Ephemeral Data Shredding

Documents uploaded for audit are stored in a session-scoped vector index (ChromaDB). Once the audit completes or the session terminates, the index is programmatically shredded. We maintain a zero-retention policy for raw document content.

Encryption in Transit

All data transmitted between your browser and our backend infrastructure is protected by industry-standard TLS 1.3 encryption. Data is never sent over unencrypted channels. HSTS headers enforce HTTPS for all connections.

Security Headers

Every API response includes hardened security headers: X-Content-Type-Options, X-Frame-Options: DENY, X-XSS-Protection, Content-Security-Policy, and Referrer-Policy.

Rate Limiting & Anti-Abuse

Our FastAPI backend uses SlowAPI for granular, per-IP rate limiting. Suspicious request patterns (e.g., probing for .env, .git, wp-admin) are detected, logged, and flagged automatically.

No Model Persistence

We leverage Google Gemini 2.0 Flash and Groq Llama 3 70B for inference. Data is processed in-memory and is not saved to disk or retained by inference providers. Your legal data never leaks into model weights or training pipelines.

Authentication & Access Control

User authentication is managed via Supabase with JWT-based session validation. Sensitive operations use the service role key server-side. License keys are stored as SHA-256 hashes — raw keys are never persisted after validation.

Enterprise Compliance

For organizations requiring SOC2 Type II or ISO 27001 mapping, contact our enterprise security team for a full technical audit pack.

Contact Security Team