Security Architecture & Compliance Isolation Specification
1. Zero-Raw-Data Privacy Isolation
VeilAnalytics is an enterprise analytical engine engineered with a Local-First, Zero-Raw-Data AI Privacy Architecture. Unlike legacy cloud BI platforms that ingest and store customer records in multi-tenant data warehouses or transmit entire tabular sheets to external LLM providers, VeilAnalytics enforces cryptographic and boundary isolation: 0 raw data rows ever leave the local compute boundary.
Core Technical Guarantees
- Local RAM Isolation: Raw data rows, PII, financial ledgers, and confidential metrics are ingested directly into private RAM or local container storage via embedded DuckDB.
- Schema-Only Synthesis: External AI models (OpenAI, Gemini, Groq) receive only sanitized column names and data types (e.g.
units_sold: INT). No table cell content is transmitted. - Schema Anonymization Mode: Sensitive column identifiers are dynamically aliased (e.g.
patient_mrnβcol_01) prior to prompt dispatch and restored locally post-query. - 100% Offline Ollama Execution: When operating in Local AI Mode with Ollama or vLLM, network traffic drops to absolute zeroβallowing deployment in disconnected or SCIF air-gapped enclaves.
2. AST Query Firewall & Sandboxing
To eliminate prompt injection, arbitrary filesystem access, and data tampering risks, all natural language generated SQL undergoes multi-stage validation through an Abstract Syntax Tree (AST) Query Firewall prior to execution.
| Firewall Policy | Enforcement Mechanism | Action on Violation |
|---|---|---|
| Read-Only Whitelist | Only analytical primitives allowed (SELECT, WITH, SHOW, DESCRIBE, SUMMARIZE) |
Immediate AST rejection before database dispatch |
| Destructive DDL/DML Block | Blocks DROP, ALTER, DELETE, TRUNCATE, UPDATE, INSERT |
Returns Security Policy Exception |
| OS & Pragma Isolation | Blocks DuckDB filesystem copy commands (COPY TO), binary extensions, and environment pragmas |
Zero-privilege container sandbox traps call |
| Multi-Query Chaining Block | Blocks semicolon-delimited multi-statement injection vectors | Execution halts at query boundary |
3. Enterprise Compliance Alignment
VeilAnalytics accelerates regulatory approval by eliminating third-party data processor risk and vendor data retention liabilities.
π₯ HIPAA (PHI Protection)
Zero PHI transmission over external networks. Health metrics stay in browser RAM or on-premise compute nodes, removing BAA vendor exposure for raw medical records.
πͺπΊ GDPR (EU Data Privacy)
Compliant with Data Minimization (Art. 5) and Right to Erasure (Art. 17). Closing an analytics session immediately zeroes all temporary in-memory tables.
π SOC 2 & Enterprise Perimeter
Zero cloud data retention. Analytics run strictly within your existing corporate VPN, IAM boundaries, and security perimeter.
4. Live Database Connector Security
For direct querying against live production databases (PostgreSQL, MySQL, Supabase):
- TLS 1.3 Encrypted Transport: Client-to-database connections enforce modern TLS/SSL certificate verification.
- Read-Only Transaction Wrappers: Queries execute inside isolated
BEGIN TRANSACTION READ ONLY;envelopes to prevent accidental state modifications. - Local Credential Management: Passwords and connection secrets are held in local memory or client storage and are never logged or proxied through VeilAnalytics infrastructure.
5. DevTools Verification Checklist
Security teams can independently verify all claims in under 60 seconds using standard browser developer tools:
- Open Chrome or Firefox DevTools (
F12orCmd+Option+I) and navigate to the Network tab. - Load a 50,000-row sample dataset or drag in your own CSV/Parquet file.
- Filter Network requests by
Fetch/XHR. Notice that zero upload POST requests containing table rows occur. - Execute a natural language query. Observe that the payload to the AI endpoint contains only table column definitions.
- Disconnect your Wi-Fi or enable airplane mode while running Local Ollama modeβthe application executes with 100% offline parity.