Architecture / Decision records / ADR-HIS-082
ADR-HIS-082 Security-event forwarding from the audit service: syslog carrying the stored event, receipts pushed back by Domain 2, forwarding rules as configuration, and disposal refused as a whole under a hold¶
| Status | Accepted |
| Decided | 2026-11-26 by session RC-3-S01 |
| Record | Drafted 2026-11-26; approved 2026-11-30 by the Enterprise Architecture Board |
| Where the rule lives | contracts/ess/api/audit.v1.openapi.yaml (version 1.1), contracts/ess/schemas/ForwardedAuditRecord.v1.schema.json, contracts/ess/README.md, contracts/ess/CONTRACT-POINTS.md |
Context¶
FR-ESS-AUD-003 has the audit service forward audit and security events to security monitoring, confirm and reconcile their receipt, offer review views and dashboard measures, and keep evidence holds. The specification fixes these points:
- the wire: syslog over TLS to the in-house Wazuh SIEM, with a JSON payload in a documented schema (EXT-ESS-004, DEC-ISE-009);
- the channel: Domain 2 provides it, and it carries audit events unaltered with a "delivery confirmation" (IF-ISE-006);
- forwarding rules are configuration CFG-ESS-019, and rule changes need approval.
It leaves four questions of build open:
- What the documented schema is. It could be a new projection of the event, or the stored event itself.
- How receipt is confirmed. Syslog, even over TLS (RFC 5425), has no acknowledgement at the application level. A record can be lost between the TLS write and the SIEM index without the sender knowing.
- Where forwarding rules and their approval live.
- How disposal is refused under a hold. AC-04 needs a disposal that can be attempted and refused. FR-ESS-AUD-002 part 6.7 asks for "an approved, logged action", and the RC-1 contract had no such action.
Decision¶
- The payload is the stored event in an envelope.
ForwardedAuditRecord.v1holds: format,formatVersion,destinationId,forwardedAt,attempt,selectedBy;auditEvent, exactly asreadAuditEventanswers it, with category, recorded time and integrity metadata.
The framing is RFC 5424 over RFC 5425 with octet counting:
- facility 13 (log audit);
- severity 5 for security, integrity failure, denied and failure, otherwise 6;
- APP-NAME ess-audit, MSGID the first 32 characters of the event type, no structured data;
- the JSON on one line after a BOM.
A decoder reads every 1.x. The event identifier is the deduplication key across resends. readForwardedRecord shows what was sent, so a rejected mapping can be checked.
2. Domain 2 pushes receipts to the audit API. The forwarding pipeline of Domain 2 confirms what the destination accepted or refused with submitForwardingReceipts, per event, idempotent on event and destination.
- The audit service keeps a forwarding record per event and destination: pending, sent, acknowledged, failed (part 11).
- It reconciles per period the events selected, sent, acknowledged, failed and pending.
- A mismatch becomes a task ess.audit-forwarding-exception in queue ess.security-operations for the security officer (PR-AUD-003-2).
We rejected the alternative of having the audit service query the SIEM for counts. It would put a dependency on the SIEM's own store into a Domain 10 unit, and it would give counts rather than the per-event state that part 11 asks for.
3. Forwarding rules are configuration items of type ess.audit-forwarding-rule. They are drafted by the security officer and approved, activated and rolled back through the configuration lifecycle (FR-ESS-CFG-001).
- The validation hook validateForwardingRule is on audit.v1, as validateNotificationType is on notification.v1.
- A rule only adds event classes. The minimum set of part 6.2 is built into the service and goes to every destination.
- The destination names its interface in the Domain 2 interface registry.
4. Disposal is a run under the approved retention rule, and an on-demand run needs its own approval. Each disposal run records the active approved version of CFG-ESS-018. It runs on the retention schedule, or on demand.
- An on-demand run also needs secondApproval: a second person, not the requester, authorizing in place with step-up. The retention rule alone is not taken as approval of an action someone starts. The specification gives disposal to no actor, and the audit administrator may not delete events (FR-ESS-AUD-002 part 3). Who may start an on-demand run and who may approve it are therefore left to the policy (ess.AuditDisposal, actions start and approve), which grants both to no one until the specification owner answers. Should the answer be that the retention rule is enough, making the field optional is a compatible change.
- A request that matches any event under an active hold is refused as a whole, with PR-AUD-003-3, and so is one that matches any event within retention, with PR-AUD-002-3. Nothing is disposed of.
- The scheduled run disposes only of eligible events and counts the held ones it left.
5. Review views and measures compute on the audit store.
- runReviewView serves the six views of part 6.5. Each view gives rows and counted groups, with no threshold, so the contract makes no judgement that the specification does not.
- readSecurityIndicators gives Domain 8 counts only. Recertification status comes from the identity service's campaigns.
- Every read of audit data needs a stated purpose and is audited as ess.aud.access.
All of it is additive: audit.v1 goes from 1.0 to 1.1 and passes the compatibility check.
Consequences¶
- RC-3-S03 (Domain 2 contracts) defines IF-ISE-006 to match: the pipeline accepts the syslog of decision 1 on a mutually authenticated channel, relays it unaltered to Wazuh, and calls
submitForwardingReceipts. It registers the destination interface (interfaceId) in its interface registry. These are cross-domain references for RC-3-S03 to resolve. - RC-3-S04 (audit build) adds forwarding records, the durable per-destination queue, the receipt endpoint, the reconciliation job, holds and disposal runs to
services/ess-audit. RC-3-S09 (observability build) builds the pipeline side. - A Domain 2 pipeline that cannot tell acknowledgement from receipt by the collector must not send
acknowledgedbefore the SIEM has indexed the record. Otherwise AC-01 ("receipt by security monitoring is confirmed") is not met. - Who may resend failed records after a mapping correction is open with the specification owner: the specification names "integration support", which is not an actor. Until it is answered, the policy permits resend to no one (resource type
ess.AuditForwarding, actionresend), and failed records stay failed and visible in reconciliation.