Documentation / Privacy and security compliance
8. Gap register
This is the baseline register as first reviewed. Each gap's current status is in the re-assessment table near the top of this report.
Seventeen gaps: 5 High, 9 Medium, 3 Low. Severity weighs the harm to patients and the exposure under all three laws if the gap is used with real data; "Fix in code" can be done in the suite, "Fix in operations" only by the operator.
| ID | Gap | Severity | Frameworks | Remediation |
|---|---|---|---|---|
| G1 | No durable audit trail of reads, exports, logins, failures, permission changes | High | HIPAA 164.312(b); GDPR 5(2), 32; PDPL security and proof | Fix in code: append-only auth.audit_event (who, what, resource type and id, source, time, outcome), written on every Viewer, genome and admin call; ship to a write-once store |
| G2 | One-factor sign-in, 8-character minimum, seeded admin / password account only warned about | High | HIPAA 164.312(d); GDPR 32; PDPL security | Fix in code: TOTP or SSO (OIDC) with MFA for administrators first; force a new password on first sign-in; 12-character minimum with breached-password check |
| G3 | No per-person export, correction, restriction or hard delete; history and soft-delete retained | High | HIPAA 164.524, .526, .528; GDPR 15-18, 20-21; PDPL rights, destruction | Fix in code: patient search that gathers every resource for one person, JSON/NDJSON export, hold flag, and a documented hard-delete that removes history rows and logs the request |
| G5 | Data-source connection strings with passwords stored in plain text in auth.vault | High | HIPAA 164.312(a)(2)(iv); GDPR 32; PDPL security | Fix in code: encrypt with a key from the environment or a key vault, or read connection strings only from environment variables |
| G6 | No TLS or encryption at rest of its own; HTTP only; stored documents unencrypted on disk | High | HIPAA 164.312(a)(2)(iv), (e); GDPR 32; PDPL security | Fix in operations: TLS 1.2+ proxy with HSTS, database and disk encryption, encrypted documents volume; document it as a deployment requirement |
| G4 | No retention schedule or purge | Medium | GDPR 5(1)(e); PDPL destruction | Fix in code: per-source retention setting and a purge job that logs what it removed |
| G7 | Sessions slide for 12 hours with no idle timeout | Medium | HIPAA 164.312(a)(2)(iii) | Fix in code: 15-30 minute idle limit plus a shorter absolute limit; warn before logoff |
| G8 | Access stops at resource type: no patient-level restriction, masking or break-glass | Medium | HIPAA 164.502(b); GDPR 5(1)(c), 25 | Fix in code: field masking by role, restricted-record flag, emergency access that demands a reason and is flagged in the audit |
| G9 | Login throttle keys on socket address, so a proxy puts everyone in one bucket; lockout can be used to lock a user out; map never pruned | Medium | HIPAA 164.308(a)(5); availability | Fix in code: trust a configured proxy header, key on address plus user, prune the map |
| G12 | Genome online lookups on by default, contact US and EU hosts | Medium | GDPR 44-49; PDPL transfers | Fix in code: default off, host allow-list, show the admin what is sent; identifiers only is already enforced |
| G13 | No breach detection, incident log or notification support | Medium | HIPAA 164.308(a)(6), 164.404-410; GDPR 33-34; PDPL 72-hour notice | Fix in operations with code help: alert on repeated failures, export of audit events for the incident file, notification templates |
| G14 | No consent, notice, purpose or processing-record support; no impact-assessment input | Medium | GDPR 6, 7, 9, 30, 35; PDPL basis, records, assessment | Fix in operations: ROPA, DPIA and notice owned by the operator; code can record purpose of use in the audit |
| G16 | No backup, restore or integrity tooling; no control over where data is hosted | Medium | HIPAA 164.308(a)(7); GDPR 32, 44; PDPL localisation | Fix in operations: encrypted tested backups, restore drills, hosting in the required region |
| G17 | Deleting a user leaves no record; no periodic access review | Medium | HIPAA 164.308(a)(3)-(4); GDPR 5(2) | Fix in code: deactivate instead of delete by default, log the deletion, add an access-review report |
| G10 | scrypt cost N=16384 is below current OWASP guidance | Low | HIPAA 164.312(d); GDPR 32 | Fix in code: raise N (or r, p) and rehash at next login |
| G11 | No Content-Security-Policy or HSTS on the suite's own pages | Low | GDPR 32 | Fix in code: add a strict CSP; HSTS at the proxy |
| G15 | Error text from the database may be written to logs; no redaction rule | Low | HIPAA 164.312(b); GDPR 5(1)(f) | Fix in code: log error codes, not messages, from queries that touched patient rows |
OWASP's scrypt guidance is quoted from memory (N=2^17, r=8, p=1 or an equivalent trade-off); confirm against the current cheat sheet before changing the cost.