MOD ESS 006 AUD
Domain specifications / D10-ESS / 5. Detailed Functional Requirements / 5.6 Module Specification: Audit Service and Security-Event Integration
5.6 Module Specification: Audit Service and Security-Event Integration¶
5.6.1 Module Overview¶
Module ID: MOD-ESS-006 (module code AUD)
Purpose: Receive, protect, retain and expose audit events from every domain, and forward audit and security-relevant events to the security monitoring capability operated by Domain 2. The audit store is append-only or tamper-evident, separately administered and monitored (PRS 10.3).
Business Capabilities: - CAP-ESS-007 Audit and accountability
Primary Actors: - Calling domain service (ACT-ESS-013), security officer (ACT-ESS-003), privacy officer (ACT-ESS-004), auditor (ACT-ESS-015), audit administrator (ACT-ESS-017)
Dependencies: - Domain 2 (ISE) for the event backbone, time synchronization (NFR-018), storage, backup and the SIEM or equivalent. - MOD-ESS-001 and MOD-ESS-002 for actor identity and decision identifiers.
5.6.2 Functional Area: Audit Capture¶
Functional Area ID: FA-ESS-018
Description: Intake, schema validation and completeness control of audit events.
Scope: - Included: the audit event schema, intake API and event channel, completeness reconciliation. - Excluded: deciding which business actions occur; technical logs, metrics and traces (Domain 2 observability).
5.6.3 Functional Area: Audit Integrity and Access¶
Functional Area ID: FA-ESS-019
Description: Tamper evidence, separate administration and audited query of audit data.
Scope: - Included: integrity metadata, verification, access control, query and export. - Excluded: storage media and backup implementation (Domain 2); disclosure accounting for release of information (Domain 6, using this audit data).
5.6.4 Functional Area: Security-Event Integration and Review¶
Functional Area ID: FA-ESS-020
Description: Forwarding of audit and security-relevant events to security monitoring and support for review.
Scope: - Included: forwarding, delivery confirmation, review queries. - Excluded: anomaly detection, alert correlation and incident response tooling (Domain 2).
5.6.5 Detailed Requirements¶
Requirement FR-ESS-AUD-001: Audit Event Capture and Minimum Schema¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-ESS-AUD-001 |
| Requirement Name | Audit event capture and minimum schema |
| Requirement Type | Functional |
| Module | Audit Service and Security-Event Integration |
| Functional Area | FA-ESS-018 Audit capture |
| Priority | Must |
| Criticality | Critical |
| Requirement Status | Draft |
| Source | SEC-006; SEC-019; PRS section 10.3; PRS section 7.3 (Audit event); Architecture 9.3; PRS 27 (audit coverage) |
| Related Business Rule | BR-ESS-020, BR-ESS-022 |
| Related Workflow | WF-ESS-002 |
1. Requirement Statement
The system shall accept and store an audit event for every viewing, querying, creating, changing, amending, signing, exporting, printing, disclosing and deleting of records, and for overrides, configuration changes and privileged operations, with each event containing actor or service identity, action, patient or resource reference, purpose of use where applicable, source endpoint, outcome, timestamp, correlation identifier and relevant before-and-after metadata subject to privacy policy.
2. Business Rationale
SEC-006 and SEC-019 require complete audit of record access and change. A common schema lets access to one patient be reconstructed across all domains.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| Calling domain service | Create (append) audit events | Registered service identity; cannot read, update or delete |
| Audit administrator (ACT-ESS-017, separate from application administrators) | Administer audit service configuration | Privileged; all actions audited |
| Any other actor | None on intake | — |
4. Preconditions - The emitting service is registered and its event types are registered in the audit event catalogue.
5. Trigger - An auditable action occurs in any domain, including a denied attempt.
6. Functional Behaviour
- The system publishes the audit event schema and the catalogue of auditable event types; each domain maps its actions to event types. The catalogue starts from the nine categories and required fields of the minimum audit event catalogue; each domain registers its event types, each in one category, before its go-live.
- The system accepts events through a durable channel so that an event acknowledged to the emitter is not lost.
- The system validates each event against the schema and rejects malformed events to a quarantine with reason; quarantined events are alerted and never discarded.
- The system stores for each event at least: event identifier, event type, action, outcome, actor identity and type (human, service, or service on behalf of human), patient reference and resource reference where applicable, purpose of use where applicable, source system and endpoint, location or device context where available, event time and recorded time, correlation identifier, authorization decision identifier and policy version where applicable, emergency access session identifier where applicable, and before-and-after metadata permitted by privacy policy.
- The system deduplicates events by event identifier.
- The system records event time as supplied by the emitter in UTC and records its own receipt time; it flags events whose event time differs from receipt time by more than the configured tolerance.
- The system reconciles, per emitting service and period, the count of events the service reports as emitted against the count stored, and raises an exception on mismatch.
- The system emits an audit-recorded notification (EVT-ESS-008) for event types subscribed to by security monitoring and by Domain 6 disclosure accounting.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Event identifier | UUID | Yes | Unique | Deduplication key |
| Event type and action | Codes | Yes | In audit event catalogue | What happened |
| Outcome | Code | Yes | Success / failure / denied | Result |
| Actor | Identity reference(s) | Yes | Resolvable human and/or service identity | Who acted |
| Patient reference | Enterprise person identifier | Conditional | Required for event types registered as patient-scoped; for other types, present whenever the action concerns a patient (GAP-ESS-016) | Whose data |
| Resource reference | Type and identifier | Conditional | Required for record-scoped event types | What record |
| Purpose of use | Code | Conditional | Value set | Why |
| Source endpoint | Structured | Yes | — | Application, workstation or node |
| Event time | UTC timestamp | Yes | Within tolerance of receipt or flagged | When it happened |
| Correlation identifier | String | Yes | — | Links to transaction trace |
| Decision identifier / policy version | Strings | Conditional | Present for access decisions | Authorization basis |
| Before / after metadata | Structured | No | Complies with privacy policy for the event type | What changed |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-AUD-001-1 | Event identifier already stored | Acknowledged; not stored twice |
| PR-AUD-001-2 | Schema validation fails | Quarantined with reason; alert raised; emitter informed |
| PR-AUD-001-3 | Emitted and stored counts differ for a period | Completeness exception raised to audit administrator and emitting service owner |
| PR-AUD-001-4 | Before-and-after metadata contains content that the privacy policy excludes for that event type | Excluded content rejected; event stored with a marker that detail is held in the source record history |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Acknowledgement | API / channel acknowledgement | Emitting service | Durable receipt |
| Stored audit event | Append-only record | Audit store | Immutable |
| Completeness exception | Alert / report (REP-ESS-009) | Audit administrator, service owner | Missing or quarantined events |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Audit service unreachable | Emitter timeout | Emitter buffers durably through its outbox and retries; BR-ESS-022 applies if buffering is impossible | Operational alert; no user message unless action is blocked by the emitter's failure policy. |
| Unregistered event type | Catalogue check | Quarantine | Service owner registers the type or fixes the emitter. |
| Clock skew beyond tolerance | Time check | Store and flag | Platform team investigates time synchronization. |
11. State and Lifecycle Behaviour
Audit events have no editable lifecycle. They are stored, later archived under the retention policy, and finally disposed of under approved policy. Quarantined events are either corrected by re-emission or accepted with an annotation event.
12. Audit Requirements
- The audit service records its own administrative actions, quarantines, releases and configuration changes as audit events.
- Intake itself is evidenced by the completeness reconciliation.
13. Security and Privacy Requirements
- Emitters have append-only permission.
- Audit events are Sensitive: they reveal who accessed whose record.
- Before-and-after metadata is limited by privacy policy; clinical content is not copied into audit where a reference and field name suffice.
14. Acceptance Criteria
- AC-01: Given each action type listed in SEC-006 and SEC-019 performed in each domain, when the audit store is queried, then a conforming event exists for each (audit completeness test).
- AC-02: Given an event, when inspected, then it contains actor, action, patient or resource reference, outcome, source, timestamp and correlation identifier.
- AC-03: Given the same event delivered twice, when stored, then one record exists.
- AC-04: Given a malformed event, when received, then it is quarantined with reason and an alert is raised.
- AC-05: Given a period in which an emitter reports N events, when reconciliation runs, then a mismatch with the stored count raises an exception.
- AC-06: Given a denied access attempt, when it occurs, then an audit event with outcome "denied" exists.
15. Dependencies and Integration
- Upstream dependencies: all domains as emitters; Domain 2 event backbone and time synchronization.
- Downstream dependencies: FR-ESS-AUD-002, FR-ESS-AUD-003; Domain 6 disclosure and access audit; Domain 8 security and privacy dashboard.
- Required events or APIs: IF-ESS-008; EVT-ESS-008.
16. Open Questions / Assumptions
- Update 17 Nov 2026 (GAP-ESS-008, closed): the minimum catalogue (categories and required fields) is set in section 9.5. Each domain publishes its own event types in its section 9.5, mapped to these categories, and registers them in the audit service before go-live.
- Alignment of the schema with IHE ATNA audit message content is assumed where the interoperability profile selects ATNA (SEC-018; ASM-ESS-007).
Requirement FR-ESS-AUD-002: Audit Integrity, Separate Administration and Audited Access¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-ESS-AUD-002 |
| Requirement Name | Audit integrity, separate administration and audited access |
| Requirement Type | Functional |
| Module | Audit Service and Security-Event Integration |
| Functional Area | FA-ESS-019 Audit integrity and access |
| Priority | Must |
| Criticality | Critical |
| Requirement Status | Draft |
| Source | SEC-006; SEC-019; PRS section 10.3; PRS section 7.2 (append-only audit); NFR-014; Architecture 5.1 (Audit service) |
| Related Business Rule | BR-ESS-020, BR-ESS-021 |
| Related Workflow | WF-ESS-002 |
1. Requirement Statement
The system shall store audit records in append-only or tamper-evident form with integrity metadata that allows alteration or deletion to be detected, shall administer audit storage separately from ordinary application administration, shall provide authorized search and export of audit records, and shall audit every access to audit data.
2. Business Rationale
Audit that can be changed by those it records is not evidence. PRS 10.3 requires separate administration and auditing of privileged access to audit data.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| Security officer / privacy officer | Read (query, export) | Purpose recorded; scope may be limited by policy |
| Auditor | Read (query, export) | Time-limited grant |
| HIM officer (Domain 6) | Read access and disclosure audit for a patient | For record access and disclosure audit functions of Domain 6 |
| Audit administrator (ACT-ESS-017) | Administer; verify integrity | Not an application administrator of other domains; no update or delete of events |
| Application administrators of other domains | None | — |
4. Preconditions - The user holds an audit-access role and has stated a purpose.
5. Trigger - Audit query or export; scheduled integrity verification; retention action.
6. Functional Behaviour
- The system provides no function to update or delete a stored audit event.
- The system attaches integrity metadata to stored events (for example chained or batched cryptographic digests) so that modification, removal or reordering is detectable.
- The system runs integrity verification on a schedule and on demand and raises a security alert on any failure.
- The system provides search by patient, actor, resource, action, time range, source, outcome, correlation identifier and emergency access session.
- The system returns for a patient a chronological access report across all domains. Each row shows who (actor and role, and the user a service acted for), when, from where (source endpoint), for what purpose where recorded, the emergency access flag with its session, and also action, resource (as a reference, never the clinical value), outcome and a "no care relationship recorded" flag where the event carries it. The report can be filtered by each of these. The extra columns and filters are an HIM configuration of the report, the same one that FR-HIM-AUD-002 uses. One reason field serves both as the purpose of query (part 7) and as the HIM access review reason; its list is CFG-HIM-027 when the report is run for a record review.
- The system records an audit event for each query and export of audit data, including the criteria used and the purpose stated.
- The system applies retention by event class under approved policy, archives events without loss of integrity evidence, and disposes of them only through an approved, logged action.
- The system exports audit records in a documented machine-readable format preserving identifiers, timestamps and integrity metadata (PRS 15.2).
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Query criteria | Structured | Yes (at least one bounded criterion) | Time range bounded | Search parameters |
| Purpose of query | Code and text | Yes | Value set | Why audit is being accessed |
| Export format | Code | For export | Supported formats | Output format |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-AUD-002-1 | Integrity verification detects a mismatch | Security alert; affected range marked; incident evidence preserved |
| PR-AUD-002-2 | Query without purpose | Refused |
| PR-AUD-002-3 | Disposal requested for events under legal hold or within retention | Refused |
| PR-AUD-002-4 | User queries audit concerning their own activity where policy forbids self-review | Refused or routed to another reviewer |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Query result | Paged API response / workspace view | Authorized reviewers | Matching events |
| Patient access report | Report (REP-ESS-010) | Privacy officer, Domain 6 | Who accessed a patient's record |
| Integrity verification result | Report / alert | Security officer, audit administrator | Pass or failure with range |
| Audit export | Documented machine-readable file | Auditor, exit testing | Events with integrity metadata |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Unbounded query | Criteria check | Refuse | "Limit the search by time range or subject." |
| Insufficient role | Authorization | Deny and audit | "You are not authorized to view audit records." |
| Archive unavailable | Storage check | Partial result with explicit notice | "Archived records for the period are temporarily unavailable." |
11. State and Lifecycle Behaviour
Events move from online store to archive and to approved disposal. Integrity metadata is preserved across archive.
12. Audit Requirements
- Audited events: every audit query, export, integrity verification, retention and disposal action, and every change to audit access roles.
13. Security and Privacy Requirements
- Audit access roles are privileged, require MFA and are recertified on the privileged cycle.
- Audit data is protected from ordinary application administrators (Architecture 9.3).
- Backups of audit data are immutable or offline-protected through Domain 2 (BCP-004, NFR-014).
14. Acceptance Criteria
- AC-01: Given a stored event, when any application or administrative function is used to try to alter or delete it, then no function permits it.
- AC-02: Given a deliberate out-of-band alteration of stored audit data in a test environment, when integrity verification runs, then the alteration is detected and alerted (SEC-019 tamper-detection acceptance).
- AC-03: Given an authorized reviewer, when audit records for a patient are queried, then a new audit event records the query, its criteria and purpose.
- AC-04: Given an application administrator of another domain, when audit access is attempted, then it is denied.
- AC-05: Given an export, when parsed by an independent consumer using the published format, then identifiers, timestamps and integrity metadata are intact.
15. Dependencies and Integration
- Upstream dependencies: FR-ESS-AUD-001; Domain 2 storage, backup and key management.
- Downstream dependencies: Domain 6 (record access and disclosure audit), Domain 8 (security and privacy indicators).
- Required events or APIs: IF-ESS-008.
16. Open Questions / Assumptions
- Audit retention by event class is set from the enterprise retention baseline (GAP-ESS-001, closed 17 Nov 2026): audit about patient data 25 years from the patient's last visit, other audit 10 years, 2 years online in each case (section 7.6, CFG-ESS-018).
- The integrity mechanism is an implementation choice; the requirement is detectability (ASM-ESS-006).
- Update 2026-11-17: the patient access report gains action, resource, outcome and the "no care relationship recorded" flag, with their filters, and shares one reason field with the Domain 6 access review (part 6.5).
Requirement FR-ESS-AUD-003: Security-Event Forwarding and Audit Review Support¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-ESS-AUD-003 |
| Requirement Name | Security-event forwarding and audit review support |
| Requirement Type | Functional |
| Module | Audit Service and Security-Event Integration |
| Functional Area | FA-ESS-020 Security-event integration and review |
| Priority | Must |
| Criticality | High |
| Requirement Status | Draft |
| Source | SEC-019 (SIEM forwarding); contributes to SEC-010 and SEC-018 (primary Domain 2); PRS Appendix B (Security and privacy dashboard); PRS 27 (audit coverage: SIEM receipt) |
| Related Business Rule | BR-ESS-020, BR-ESS-021 |
| Related Workflow | WF-ESS-002 |
1. Requirement Statement
The system shall forward audit events and security-relevant events to the security monitoring capability, shall confirm and reconcile their receipt, and shall provide review functions and indicators for privileged access, failed logins, emergency access and access recertification.
2. Business Rationale
SEC-019 requires SIEM forwarding and PRS 27 measures audit coverage including SIEM receipt. Detection and response operate in Domain 2; they depend on a complete feed from the audit service.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| Audit service (service identity) | Send events to security monitoring | Mutually authenticated channel provided by Domain 2 |
| Security officer | Configure forwarding rules; review; place evidence hold | Approval for rule changes |
| Privacy officer | Review access patterns; place and release evidence hold | Purpose recorded; release only of a hold this officer placed, with a second person |
| Legal / Compliance Officer (Domain 6) | Place and release evidence hold | Release only of a hold this officer placed, with a second person |
4. Preconditions - A forwarding destination is registered and reachable through Domain 2.
5. Trigger - An audit event of a forwarded class is stored; a scheduled reconciliation runs.
6. Functional Behaviour
- The system forwards events of configured classes in near real time, in the agreed format, preserving event identifier and correlation identifier.
- The system forwards all emergency access, authentication failure, privilege change, policy change, audit-access and integrity-failure events as a minimum set.
- The system queues events durably when the destination is unavailable and resumes without loss or duplication of effect.
- The system reconciles forwarded against acknowledged counts per period and raises an exception on mismatch.
- The system provides review views for: access by a user over a period, access to a patient, access outside assignment, emergency access sessions and repeat patterns, privileged activity, and failed sign-on patterns.
- The system supplies to Domain 8 the measures needed for the security and privacy dashboard: privileged access, failed logins, Break-the-Glass events and access recertification status.
- The system preserves, on request of the security officer, the privacy officer or the legal and compliance officer, the audit events relevant to an incident under an evidence hold that prevents disposal. A hold is released only by the privacy officer or the legal and compliance officer who placed it, with a second person authorizing in place (FR-ESS-IAM-002); a hold placed by the security officer is released by the privacy officer in the same way. Both names are recorded.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Forwarding rule | Structured | Yes | Event classes exist; destination registered | What is sent where |
| Evidence hold request | Structured | For holds | Criteria bounded; requester authorized | Scope of preservation |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-AUD-003-1 | Destination unavailable | Events queued durably; operational alert after configured delay |
| PR-AUD-003-2 | Forwarded and acknowledged counts differ | Exception to security officer |
| PR-AUD-003-3 | Evidence hold active | Disposal of matching events refused |
| PR-AUD-003-4 | Hold release by anyone other than the permitted releaser, or without a second person | Release refused |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Forwarded event stream | Agreed structured format | Domain 2 security monitoring | Audit and security events |
| Review views | Workspace / report | Security and privacy officers | Access patterns |
| Dashboard measures | Governed feed | Domain 8 | Security and privacy indicators |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Destination rejects event format | Negative acknowledgement | Event held in error queue; alert | Integration support corrects mapping. |
| Queue approaching capacity | Depth threshold | Alert to platform and security | Capacity action under runbook. |
11. State and Lifecycle Behaviour
Forwarding state per event: pending, sent, acknowledged, failed. Evidence holds are Active or Released.
12. Audit Requirements
- Audited events: forwarding rule change, evidence hold placed and released, review view access.
13. Security and Privacy Requirements
- The forwarding channel is mutually authenticated and encrypted through Domain 2 (SEC-018).
- Forwarded content follows the same privacy limits as stored audit.
14. Acceptance Criteria
- AC-01: Given a defined sensitive-data access event, when it occurs, then it is stored by the audit service and its receipt by security monitoring is confirmed (PRS 27 audit coverage).
- AC-02: Given the destination is unavailable for a period, when it returns, then all queued events are delivered and reconciliation shows no gap.
- AC-03: Given an emergency access invocation, when it occurs, then the corresponding security event is forwarded within the alerting objective (NFR-ESS-006).
- AC-04: Given an evidence hold, when disposal is attempted for held events, then it is refused.
15. Dependencies and Integration
- Upstream dependencies: FR-ESS-AUD-001, FR-ESS-AUD-002.
- Downstream dependencies: Domain 2 (SIEM, anomaly detection, incident response), Domain 8.
- Required events or APIs: IF-ESS-008; EVT-ESS-008; EXT-ESS-004.
16. Open Questions / Assumptions
- The split of SEC-010 is a working position: detection, alerting and incident tooling in Domain 2; the audit feed and review views here (DEC-ESS-011).
← 5.5 Module Specification: Master and Reference Data Governance and Registries | Contents | Identifier index | 5.7 Module Specification: Notification Service →