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
- Records stay on your devices. There’s no Lulu EMR server for records. We have no copy and no way to open one.
- Everything is encrypted: on the computer, on a paired iPhone, in every backup, export and shared folder.
- The app connects only to luluemr.com and app.luluemr.com (one site at two addresses; for the relay, each is the other’s fallback): for signed updates, and for the features you turn on (an iPhone or iPad that can’t reach its computer nearby, a coach link), which carry only sealed messages. Anything else that leaves a device leaves because someone chose to send it, and it’s logged.
- Each person signs in, and their role decides what they see. An Administrator never sees a health record.
- Anything that can’t be undone asks for the person’s passcode again.
Where Records Are Kept
- The computer: the app is one offline page, run inside the computer’s own web engine (WebKit on a Mac, Edge WebView2 on Windows, Chrome on a Chromebook). A small app around it (the "shell") stores the files and the key.
- An iPhone (Lulu EMR Mobile): a smaller working copy, also encrypted (the activity history only its newest 1,000 entries), so a trainer can work away from the training room. A paired iPhone always belongs to an athletic trainer; Administrators work on the computer.
- A kiosk iPad (Lulu EMR Kiosk): only what athletes need to sign in: active athletes' names and up to 6 nicknames each (it shows first name and last initial), sports and grades, whether each has been in during the last three weeks (never why; tapping a name can show it, as "Same as last time?"), who’s in the room, the room’s hours and its appointment times, open or booked (never who booked them). Never a record.
- Backups: on the computer, and, if you turn it on, in your own OneDrive or Google Drive folder (with team sync, in the team folder’s Computer Backups, each computer in a folder of its own with its own backup key).
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.
| What | How it’s protected |
|---|---|
| The records key | A 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 records | Touch ID or the Mac password, Windows Hello, or the Chromebook’s screen lock. |
| If the computer is lost or replaced | The 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. |
| Documents | Each 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 backups | A 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 computers | Each 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 PDFs | Password-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
- Two roles.
- An athletic trainer can do everything.
- An Administrator, such as an athletic director, has the side that helps the trainer: the roster’s directory information (names, sports, grades, birth dates, school and family contacts, and whether a physical is on file), the Calendar (practices, games and the room’s hours; appointments only as "Booked" times), supplies (counts, never who was given what), the program’s totals (any count under 5 shown as "fewer than 5"), and settings, people, backups and devices.
- An Administrator never sees notes, evaluations, injuries, diagnoses, treatments, medical alerts, medications, the medication log, documents, health questions or home programs: not on screen, in search, printouts, exports, through team sync or in the activity history.
- Only an athletic trainer adds trainers, makes someone a trainer, or sets a trainer’s passcode. (Anyone with the records' recovery passphrase can reset a passcode: whoever holds it holds the records anyway.)
- The computer’s license key decides which role it unlocks. A computer with only the Administrator Key holds no health records at all.
- Signing in: after the computer’s own unlock, each person signs in with their passcode, or, on a computer set up for one person, with the computer’s unlock. Passcodes are at least 6 characters, kept only as a salted PBKDF2-SHA256 hash (600,000 rounds). Five wrong passcodes in a row pause that person’s sign-in, and the pause survives quitting the app.
- Before anything that can’t be undone (erasing or reloading the records, restoring over them, merging or importing a copy, exporting every record, removing a person, changing a role), the person types their passcode again, or uses the computer’s unlock if that’s how they sign in. A wrong passcode changes nothing and counts toward the pause.
- The sign-in is about who’s working, not separate encryption for each person. The records open with the computer’s unlock; the roles are enforced by the app, where each action runs, not only on its button.
- Coaches get no account. A trainer can send one coach per team a link to that team’s practices and games only, or give them an availability report (status and dates, no medical details).
License Keys
- Signed and offline: each key is the publisher’s ECDSA P-256 signature over the license, the role (athletic trainer or Administrator) and one computer’s code. The app checks it with the public key built into it, with no network.
- One computer per key: the code is the first 50 bits of SHA-256 over a fixed label and the computer’s own ID, which is never shown or sent.
- Keys that no longer count (after a refund or a release) are on a list the publisher signs. A listed key keeps working for 14 days, then that computer turns read-only until a valid key is entered: reading, printing, export, backup and restore still work.
- Never a lock on records: without a key the app offers the demo and an encrypted export, and nothing is deleted.
Locking
- The app locks after inactivity (5 minutes unless you change it, 1 to 60), when the computer sleeps, and when its screen locks (on a Chromebook, once Chrome is allowed to tell it; it also locks when it wakes from sleep).
- Locking hides the records from the screen. On a Mac, with Keep Syncing While Locked on (Settings → Privacy & Security → App Lock; on unless you turn it off), the records stay open in Lulu EMR’s memory so a paired iPhone or kiosk iPad keeps syncing. With it off, and always on Windows and Chromebooks, locking also clears the records and their key from memory (on a Mac, syncing then waits until someone unlocks). On disk they’re always encrypted.
- The iPhone locks 20 seconds after it leaves the screen, and covers the app in the app switcher.
- The kiosk needs a PIN (kept as a salted hash) or the computer’s unlock to leave it; on an iPad, the iPad’s own passcode, with Guided Access.
What’s Recorded
- The activity history lists who did what and when, inside the sealed records. A line names the athlete and the record, with a short detail for some changes (such as the medicine and amount given), never a note’s or visit’s own text. An Administrator sees each line without its health details, and for a clinical action, without the athlete’s name.
- Edit history: every record keeps what each edit replaced, with undo.
- Signed notes are corrected, never overwritten: a trainer gives a reason, the note is signed again, and the earlier version stays whole. Removing one also needs a reason, and it can be put back.
- Medicine doses and stock changes are never deleted: one entered in error is marked removed, with who, when and why.
- Diagnostics: a short log on the computer for troubleshooting, with no names or record contents (names, emails, phone numbers and chart IDs are scrubbed from every line). It leaves the computer only if someone exports it; a Mac’s export adds the first lines of macOS’s crash report, with user paths removed.
When Something Leaves a Device
Only when someone chooses to send it, and each time is logged:
- an encrypted export, from the computer or from a trainer’s iPhone (the Mac only merges an iPhone’s copy, never restores from it);
- a password-protected PDF;
- a de-identified spreadsheet (athletes by chart ID; anything a spreadsheet would read as a formula is kept as text). An Administrator gets totals only;
- a home program emailed from the person’s own mail app, only to the athlete’s school address, with only the handout attached;
- an appointment email (a reminder, a confirmation, or a note that a time can’t be booked), the same way: the athlete’s first name, the day, time and kind of session, the room, the school and the trainer’s name, nothing else.
The Internet
On a Mac or Windows PC, the app’s page connects to nothing on the internet. Its content security policy is default-, and its connect-src allows only ws://, 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://.
The app around the page talks only to https:// and https://, and only for:
- Updates: every 6 hours it reads a small signed notice. The signature (ECDSA P-256, a key kept apart from the license key) is checked before anything downloads, the installer’s SHA-256 before it installs, and only a newer build is taken. It also reads the signed list of license keys that no longer count. Nothing about you or your records is sent, and you can turn it off.
- License keys, when you ask: activating sends the computer’s code, the role, the buyer’s email and the purchase ID; releasing sends the computer’s own key.
- An iPhone or kiosk iPad that can’t reach its computer nearby (away, on a network that keeps devices apart, and always with a Chromebook): messages sealed with that device’s own key go through our relay (at luluemr.com or app.luluemr.com, each the other’s fallback), which can’t open them. Each carries a counter, so an old one can’t be replayed. They’re deleted once picked up. Changes for an iPhone that’s away wait there too, sealed the same way: the computer sends them as you work, and a Mac or PC also as it quits or goes to sleep. There’s one for each phone, deleted once collected or after 7 days.
- A coach link, if a trainer makes one: the team’s schedule and the coach’s changes, sealed with a key that’s only in the link. We can’t open them, and they’re deleted when the link is turned off or 30 days after the season.
- A training room hours link, if a trainer or an Administrator makes one: the room’s hours, closed days and appointment times (open or booked, never who) for the next two weeks, sealed with a key that’s only in the link. The school’s computers send it; we can’t open it, and anyone with the link or the poster’s QR code can. It’s deleted when the link is turned off, at its end date, or 30 days after its last update.
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.). 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://, 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
- Every write is read back and checked. Backups are never overwritten.
- A damaged record falls back to the newest good backup, and the damaged file is kept, never deleted.
- Files read from a shared or backup folder are size-limited and checked before anything is changed. A file from someone else (an export, a spreadsheet, a roster) is screened and previewed first, a safety copy is made, and it can be undone. People in a merged copy arrive turned off, with no passcode.
- Nothing is deleted silently: removed documents are archived, and old backups (Clean Up Older Backups, which always keeps the 3 newest) go to the Trash or Recycle Bin on a Mac or Windows PC only after you confirm. On a Chromebook clean-up is permanent, and it says so first.
The Apps Themselves
- Mac: Lulu EMR and Lulu EMR Helper run under macOS’s hardened runtime, so no code can be injected and no debugger attached. The only exception is Apple Events, for one-click email through Outlook. The web inspector is off.
- Windows: developer tools are off, the window opens only its own page, refuses new windows and dropped links, and the bridge answers only that page.
- Third-party code: libsodium, the EFF word list and PDF.js are pinned and checked by SHA-256 at every build; the Windows app’s Rust crates are pinned by
Cargo.lock. Each release’s dependencies are scanned for known problems. - Releases are built from tagged commits, with SHA-256 checksums for every file.
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.