EMR

Security / Security Overview

Security Overview

How Lulu EMR protects athletes' records. Version 1.0.7. The plain answer comes first in each part; the technical detail follows for IT staff.

No compliance claim. Lulu EMR hasn’t been independently audited or certified, and this document doesn’t claim compliance with any law, regulation or standard. Whether Lulu EMR fits your organization’s obligations is for your organization and its counsel to decide.

The Short Version

Where Records Are Kept

Encryption

Every record file is sealed with AES-256-GCM, with a new random 96-bit IV each time it’s saved. Any change to a file makes it fail to open.

WhatHow it’s protected
The records keyA random 256-bit key. Mac: in the login keychain, which Lulu EMR, signed with the publisher’s Apple Developer ID and notarized since build 53, reads without asking (any other program is asked first). Windows: DPAPI, for the signed-in Windows user. Chromebook: wrapped by a key the browser won’t export and by the passkey’s PRF output (with the screen lock).
Opening the recordsTouch ID or the Mac password, Windows Hello, or the Chromebook’s screen lock.
If the computer is lost or replacedThe recovery passphrase opens a copy of the key (Argon2id, 3 passes, 256 MiB). It must be at least 16 characters and hard to guess; Lulu EMR offers a strong one made of random words. From build 58, changing it also gives the records and this computer’s own backups a new key, so an older copy of the recovery file no longer opens them.
Exports (.emrx)Sealed with a key made from their own passphrase (Argon2id, 3 passes, 256 MiB; the settings are sealed too, so they can’t be weakened). Same passphrase rule.
DocumentsEach PDF, photo or audio note has its own key, kept inside the sealed records. Files have random names and padded sizes, and are checked when opened.
Team sync (build 58)The team key can be changed by an athletic trainer (Change Team Key), and only the computers kept get the new one. The clinical part of each team file is sealed with a second key that only athletic trainers' computers hold, so an Administrator’s computer gets people, settings and summaries, never clinical records.
OneDrive and Google Drive backupsA separate backup key, a new key for each file, and a recovery key you print. Files are numbered and chained, so a missing, swapped or older file is noticed. The folder holds only sealed files and a READ ME.
Sync between computersEach computer’s file is sealed with the team key (AES-256-GCM) and signed by that computer’s own key. A computer’s changes to people and roles count only once a trainer has approved that computer.
Shared PDFsPassword-protected (AES-256 on Windows and Chromebook; PDFKit’s encryption on a Mac). Lulu EMR suggests a strong password of random words, and needs at least 12 characters.

On a Mac with Touch ID, the lock screen waits for a touch: one touch opens the records, with no dialog to click. It waits only while Lulu EMR is the app in front and the Mac’s screen is unlocked, so a touch meant for macOS or another app never opens it. The Mac password stays behind the Unlock button.

On a PC with Windows Hello, the lock screen waits the same way for this Windows account’s fingerprint or face, with no dialog to click. The camera looks for a face for a minute at most, and again after a key or the mouse is used. The Windows Hello PIN stays behind the Unlock button.

Not tied to the hardware: the records key isn’t tied to one device’s hardware (the Secure Enclave, Windows Hello’s key storage). On a Mac that’s a deliberate choice for now; on Windows it would need a signed app, which isn’t ready yet. So someone who can sign in to the computer’s own account and copy its files could try to open them; the computer’s own sign-in is the first lock.

Who Sees What

License Keys

Locking

What’s Recorded

When Something Leaves a Device

Only when someone chooses to send it, and each time is logged:

The Internet

On a Mac or Windows PC, the app’s page connects to nothing on the internet. Its content security policy is default-src 'none', and its connect-src allows only ws://127.0.0.1:51847, Lulu EMR Helper on the same computer, in the builds that ship ('none' in a build without phone sync). Only its own script (with the build’s nonce) runs, so text from a record or an imported file can’t run as code. The Chromebook app’s policy allows its own site and https://luluemr.com/api/relay.

The app around the page talks only to https://luluemr.com and https://app.luluemr.com, and only for:

On a strict school network (build 61): the relay’s limits are sized so a whole school behind one address fits (1 GB a day per network, besides each mailbox’s own limits), and the relay’s refusals for its limits say when to try again (Retry-After). Check Connection (in Sync & Backups on a Chromebook or an iPhone, and in the kiosk iPad’s staff settings) says which address a network blocks. IT should allow both hosts and exempt them from HTTPS inspection, and on a managed Chromebook allow them in its filter extension (which applies at home too) and allow Chrome’s JavaScript optimizer for app.luluemr.com, which WebAssembly needs: see For School IT.

On a Mac or Windows PC that syncs with an iPhone or kiosk iPad, the page also talks to Lulu EMR Helper on the same computer (127.0.0.1:51847). The two prove a shared secret to each other before anything else, so the secret itself never travels; the helper refuses connections from other websites, and without that proof no connection can do anything.

Nearby, an iPhone or kiosk iPad syncs over the school’s network: paired once with a code shown on the computer (P-256 key agreement; pairing can also go through the relay, sealed with the code, and the sync key never travels; since build 61 the 10-character code is stretched with Argon2id before any key comes from it, so someone watching the relay can’t work the code out, and a device from before build 61 can’t pair; nearby, it’s told to update), then sealed with its own key (AES-256-GCM), with a counter in each message, and it proves its pairing to the helper before anything it sends is passed on. Unpairing tells the device to erase its copy, nearby or through the relay.

A Chromebook runs the app from its own address, https://app.luluemr.com/app/, apart from the website and under its own policy (its own scripts only). Its passkey belongs to that address alone. It keeps its files for offline use, and on its own it only asks whether a new version is out and reads the signed list of license keys that no longer count.

Lulu EMR has no analytics, crash reporting, advertising or account of its own. If its page crashes on Windows, Lulu EMR deletes WebView2’s crash files at once and never lets them go to Microsoft (a school’s own crash-dump policy for its PCs still applies). On a Chromebook, Chrome’s own crash reports follow the Chromebook’s settings, which a school can turn off by policy.

Keeping Files Safe

The Apps Themselves

Testing

Every release runs the apps' self-tests on made-up records: encryption, unlock and lock, roles (each role, on the computer and the iPhone), passcode re-checks, merges and restores, backups and their failure modes, sync between a computer, a phone and a kiosk, team sync between computers, the helper attacked as a web page, and the website’s functions. The release check also confirms the Mac apps' hardened runtime.

Reporting a Security Problem

Email privacy@luluemr.com (security questionnaires go there too). Please don’t include student information.