Security & Compliance

Last updated: March 15, 2026

AI4Docs.AI is built with healthcare-grade security from the ground up. This page describes our security architecture, compliance measures, and the safeguards we implement to protect your data and your patients' information.

1. Infrastructure Overview

🛡 Our entire backend runs on Google Cloud Platform under a signed HIPAA Business Associate Agreement (BAA), ensuring all infrastructure services meet healthcare compliance requirements.
Component Technology Security Features
Backend API Google Cloud Run HIPAA-eligible, auto-scaling, containerised, TLS enforced
AI Processing Google Vertex AI (Gemini) HIPAA-eligible, stateless (no data retention), no model training on your data
Temporary Audio Storage Google Cloud Storage AES-256 encryption at rest, 24-hour auto-deletion, signed URLs with 15-minute expiry
CDA Frontend Firebase Hosting Global CDN with TLS, security headers (HSTS, X-Frame-Options, CSP)
Authentication Supabase Auth bcrypt password hashing, OAuth 2.0, row-level security
Payments Stripe PCI DSS Level 1, no card data touches our servers
Smart EMR Data Google Sheets (doctor's own Drive) Doctor-controlled access, Google Workspace encryption

2. Zero-Storage Architecture

The core principle of our security design is data minimisation. We process patient health information transiently and never maintain a database of patient records.

2.1 Data Lifecycle

  1. Capture: Your browser records audio or accepts text/file input. Data stays in browser memory.
  2. Transit: Data is transmitted to our backend over TLS 1.2+ encrypted connections.
  3. Processing: Our backend forwards the data to Google Vertex AI for note generation. Vertex AI processes the data statelessly — it does not store inputs, outputs, or use them for model training.
  4. Response: The generated clinical note is returned to your browser. No copy is retained on our servers.
  5. Cleanup: All temporary data (in-memory session state, GCS temp files) is automatically purged. Large audio files in Cloud Storage are deleted within 24 hours via lifecycle policy.

2.2 What This Means

3. Encryption

3.1 In Transit

3.2 At Rest

4. Access Controls

5. Audit Logging

We maintain comprehensive audit logs for security monitoring and compliance:

6. HIPAA Compliance

6.1 Business Associate Agreement

AI4Docs.AI operates under a signed HIPAA Business Associate Agreement (BAA) with Google Cloud, covering:

6.2 Technical Safeguards

HIPAA Requirement Our Implementation
Access Controls Unique user authentication, role-based service accounts, row-level database security
Encryption TLS 1.2+ in transit, AES-256 at rest for all stored data
Audit Controls Cloud audit logs with 6-year retention, PHI exclusion filter, automated log archival
Integrity Controls Webhook signature verification, atomic database operations, idempotency safeguards
Transmission Security HTTPS enforced on all endpoints, HSTS headers, CORS restrictions
Data Minimisation Zero-storage architecture: no persistent PHI, 24-hour auto-delete for temp files

6.3 Shared Responsibility

HIPAA compliance is a shared responsibility. AI4Docs.AI provides the technical infrastructure and safeguards. As the healthcare provider (covered entity), you are responsible for:

7. GDPR Compliance

8. MENA-Ready Architecture

AI4Docs.AI's zero-storage architecture and HIPAA/GDPR-compliant infrastructure are designed to align with data protection requirements across the Middle East and North Africa (MENA) region:

Note: AI4Docs.AI is built on Google Cloud infrastructure with a signed HIPAA BAA — the strictest healthcare compliance standard globally. MENA data protection frameworks are derived from or aligned with GDPR, which our platform fully complies with. Our zero-storage architecture provides an additional layer of alignment with regional requirements by design.

9. Risk Assessment Summary

We conduct regular risk assessments of our data handling practices. Key risks and mitigations:

Risk Likelihood Mitigation
Unauthorised access to patient data in transit Low TLS 1.2+ encryption on all connections; HSTS prevents downgrade attacks
Patient data breach from database compromise Very Low No patient database exists; zero-storage architecture eliminates this attack vector
Temporary audio file exposure Low 24-hour auto-deletion; write-only signed URLs with 15-minute expiry; AES-256 encryption at rest
AI model data leakage Very Low Vertex AI operates statelessly; no data retention, no model training on customer data
Authentication compromise Low bcrypt password hashing; OAuth 2.0; session token management by Supabase Auth
Payment data theft Very Low Card data never touches our servers; processed entirely by Stripe (PCI DSS Level 1)
Smart EMR data exposure Low Data stored on doctor's own Google Drive; doctor controls sharing; service account access is opt-in and revocable
PHI in system logs Low Automated PHI exclusion filter blocks patient/diagnosis/medication keywords from stored logs

10. Breach Notification Plan

In the unlikely event of a security incident involving personal data, we follow a structured response process:

10.1 Detection and Containment

10.2 Assessment

10.3 Notification Timelines

Obligation Timeline Recipient
GDPR (EU/UK) Within 72 hours of becoming aware Information Commissioner's Office (ICO) and affected individuals (if high risk)
HIPAA (US) Within 60 days of discovery Affected individuals, HHS, and (if >500 individuals) prominent media
Subscriber doctors Within 48 hours of confirmation All affected users via email

10.4 Notification Content

Breach notifications will include:

10.5 Post-Incident Review

11. Sub-processor List

The following third-party services process data on our behalf. We maintain agreements with each sub-processor to ensure appropriate data protection:

Sub-processor Purpose Data Processed PHI? Compliance
Google Cloud Platform Backend hosting (Cloud Run, us-central1), AI processing (Vertex AI), temporary storage (Cloud Storage) Audio, text (transiently); account metadata Transient only HIPAA BAA signed, SOC 2, ISO 27001
Firebase Hosting (Google) CDA application frontend (clinic.ai4docs.ai) None (static content; all data handled by backend) No Google Cloud SOC 2, ISO 27001
Supabase Authentication, doctor profiles, usage tracking Email, professional profile, subscription data No SOC 2 Type II (Frankfurt, Germany — EU)
Stripe Payment processing, subscription management Email, payment card details No PCI DSS Level 1, SOC 2 (United Kingdom)
Resend Transactional email delivery Email address, subscription status No SOC 2
Netlify Marketing website hosting (ai4docs.ai) None (static content) No SOC 2

We will notify subscribers of any changes to this sub-processor list at least 30 days in advance.

12. Smart EMR Security Model

Smart EMR uses a unique architecture where patient data remains entirely under the doctor's control:

13. Application Security

14. Responsible Disclosure

If you discover a security vulnerability in our service, we encourage responsible disclosure. Please report it to support@ai4docs.ai. We commit to:

15. Contact

For security questions, compliance inquiries, or to request our Data Processing Agreement:

Email: support@ai4docs.ai
HIPAA Security Officer / DPO: Prof. Dr. Alaa Meshref
Company: AI4DOCS.AI LTD
Address: 167-169 Great Portland Street, 5th Floor, London W1W 5PF, United Kingdom
Company No. 16893518
ICO Registration: C1891752