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.

IDGapSeverityFrameworksRemediation
G1No durable audit trail of reads, exports, logins, failures, permission changesHighHIPAA 164.312(b); GDPR 5(2), 32; PDPL security and proofFix 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
G2One-factor sign-in, 8-character minimum, seeded admin / password account only warned aboutHighHIPAA 164.312(d); GDPR 32; PDPL securityFix 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
G3No per-person export, correction, restriction or hard delete; history and soft-delete retainedHighHIPAA 164.524, .526, .528; GDPR 15-18, 20-21; PDPL rights, destructionFix 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
G5Data-source connection strings with passwords stored in plain text in auth.vaultHighHIPAA 164.312(a)(2)(iv); GDPR 32; PDPL securityFix in code: encrypt with a key from the environment or a key vault, or read connection strings only from environment variables
G6No TLS or encryption at rest of its own; HTTP only; stored documents unencrypted on diskHighHIPAA 164.312(a)(2)(iv), (e); GDPR 32; PDPL securityFix in operations: TLS 1.2+ proxy with HSTS, database and disk encryption, encrypted documents volume; document it as a deployment requirement
G4No retention schedule or purgeMediumGDPR 5(1)(e); PDPL destructionFix in code: per-source retention setting and a purge job that logs what it removed
G7Sessions slide for 12 hours with no idle timeoutMediumHIPAA 164.312(a)(2)(iii)Fix in code: 15-30 minute idle limit plus a shorter absolute limit; warn before logoff
G8Access stops at resource type: no patient-level restriction, masking or break-glassMediumHIPAA 164.502(b); GDPR 5(1)(c), 25Fix in code: field masking by role, restricted-record flag, emergency access that demands a reason and is flagged in the audit
G9Login throttle keys on socket address, so a proxy puts everyone in one bucket; lockout can be used to lock a user out; map never prunedMediumHIPAA 164.308(a)(5); availabilityFix in code: trust a configured proxy header, key on address plus user, prune the map
G12Genome online lookups on by default, contact US and EU hostsMediumGDPR 44-49; PDPL transfersFix in code: default off, host allow-list, show the admin what is sent; identifiers only is already enforced
G13No breach detection, incident log or notification supportMediumHIPAA 164.308(a)(6), 164.404-410; GDPR 33-34; PDPL 72-hour noticeFix in operations with code help: alert on repeated failures, export of audit events for the incident file, notification templates
G14No consent, notice, purpose or processing-record support; no impact-assessment inputMediumGDPR 6, 7, 9, 30, 35; PDPL basis, records, assessmentFix in operations: ROPA, DPIA and notice owned by the operator; code can record purpose of use in the audit
G16No backup, restore or integrity tooling; no control over where data is hostedMediumHIPAA 164.308(a)(7); GDPR 32, 44; PDPL localisationFix in operations: encrypted tested backups, restore drills, hosting in the required region
G17Deleting a user leaves no record; no periodic access reviewMediumHIPAA 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
G10scrypt cost N=16384 is below current OWASP guidanceLowHIPAA 164.312(d); GDPR 32Fix in code: raise N (or r, p) and rehash at next login
G11No Content-Security-Policy or HSTS on the suite's own pagesLowGDPR 32Fix in code: add a strict CSP; HSTS at the proxy
G15Error text from the database may be written to logs; no redaction ruleLowHIPAA 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.