Independent Submission V. Padayachi Internet-Draft StellerSight Private Limited Intended status: Informational 2 December 2026 Expires: 5 June 2027 suit.audit.v1: Forward-Secure Tamper-Evident Hash-Chain Format for Privileged Execution Logs draft-padayachi-suit-audit-00 Abstract This document specifies suit.audit.v1, a deterministic, forward- secure, append-only cryptographic hash-chain format for recording privileged operating system and application administrative executions. By binding each privileged invocation record to the cryptographic digest of its predecessor using Canonical JSON (RFC 8785), SHA-256, and Ed25519 signatures (RFC 8032), suit.audit.v1 enables offline mathematical verification of log integrity and truncation detection without requiring proprietary cloud telemetry services. Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at https://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." This Internet-Draft will expire on 5 June 2027. Copyright Notice Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/ license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights Padayachi Expires 5 June 2027 [Page 1] Internet-Draft suit.audit.v1 Audit Format December 2026 and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2 1.1. Terminology . . . . . . . . . . . . . . . . . . . . . . . 2 2. Data Model and Record Structure . . . . . . . . . . . . . . . 3 2.1. Required Record Fields . . . . . . . . . . . . . . . . . 3 3. Canonicalization, Domain Separation, and Hash Chaining . . . 4 3.1. Domain-Separated Hash Computation . . . . . . . . . . . . 4 3.2. Key Rotation and Clock-Skew Defense . . . . . . . . . . . 4 3.3. Merkle Tree Anchoring (Optional) . . . . . . . . . . . . 4 4. Offline Verification Procedure . . . . . . . . . . . . . . . 5 5. Security Considerations . . . . . . . . . . . . . . . . . . . 5 6. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 5 7. References . . . . . . . . . . . . . . . . . . . . . . . . . 5 7.1. Normative References . . . . . . . . . . . . . . . . . . 5 7.2. Informative References . . . . . . . . . . . . . . . . . 6 Appendix A. Reference Implementation . . . . . . . . . . . . . . 6 Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 6 1. Introduction Privileged administrative execution on POSIX operating systems (such as sudo, su, and container host management daemons) traditionally writes flat-text telemetry to local syslog facilities ([RFC5424]). When a host experiences root-level compromise, adversaries routinely truncate, modify, or delete local log entries to conceal lateral movement. suit.audit.v1 defines a lightweight, vendor-neutral, append-only ledger format that seals each privileged execution event into a cryptographic hash chain. Independent auditors can mathematically verify the integrity of an exported log segment offline using a single root anchor or public verification key, without trusting the local host state. 1.1. Terminology The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here. Padayachi Expires 5 June 2027 [Page 2] Internet-Draft suit.audit.v1 Audit Format December 2026 2. Data Model and Record Structure A suit.audit.v1 log consists of a sequence of newline-delimited JSON objects (NDJSON), each conforming to [RFC8259]. 2.1. Required Record Fields Every record in the chain MUST contain the following top-level fields: * schema: String. MUST be the literal value "suit.audit.v1". * seq: Unsigned 64-bit integer. Monotonically increasing sequence number starting at 0 for the genesis record. * ts_utc: String. RFC 3339 UTC timestamp with microsecond precision (e.g., "2026-12-03T00:00:00.000000Z"). * host_id: String. Stable identifier of the executing host or container node. * actor: Object. Identifies the authenticated operator (uid, username, auth_method, optional fido2_key_id). * grant: Object. Identifies the ephemeral privilege scope (grant_id, cgroup_scope, ttl_seconds, policy_ref). * exec: Object. Captures the invoked command (argv array of strings, cwd, exit_code). * prev_hash: String. Full 256-bit lowercase hexadecimal SHA-256 digest (64 ASCII hex characters; truncation MUST NOT be permitted) of the immediately preceding record's domain-separated canonical payload. For seq == 0 (genesis), prev_hash MUST be 64 ASCII zero characters ("0000...0000"). * record_hash: String. Full 256-bit lowercase hexadecimal SHA-256 digest computed over the domain-separated canonical representation of the current record excluding record_hash and signature. * key_id: String (REQUIRED if signature is present). Lowercase hexadecimal SHA-256 thumbprint of the raw 32-byte Ed25519 public key used to generate signature. * signature: String (OPTIONAL, RECOMMENDED). Base64url-encoded (without padding) Ed25519 signature ([RFC8032]) over the domain- separated signature input. Padayachi Expires 5 June 2027 [Page 3] Internet-Draft suit.audit.v1 Audit Format December 2026 3. Canonicalization, Domain Separation, and Hash Chaining To guarantee bit-for-bit deterministic hashing across heterogeneous implementations (Rust, C, PHP, Go, Python), the record payload MUST be serialized according to the JSON Canonicalization Scheme (JCS) defined in [RFC8785] prior to hashing. 3.1. Domain-Separated Hash Computation To prevent cross-protocol replay and second-preimage ambiguity, every hash and signature computation MUST include an explicit ASCII domain separation prefix terminated by a NUL byte (0x00). For record index n: 1. Construct object P_n containing all fields of record n EXCEPT record_hash and signature (note that prev_hash and key_id, if present, MUST be included in P_n). 2. Serialize P_n using JCS ([RFC8785]) to produce UTF-8 byte sequence C_n. 3. Compute record_hash_n = LOWER_HEX(SHA- 256(UTF8("suit.audit.v1:rec\x00") || C_n)). 4. If signing, compute the Ed25519 signature over sig_input_n = UTF8("suit.audit.v1:sig\x00") || HEX_DECODE(record_hash_n). 5. For record n + 1, set prev_hash_{n+1} = record_hash_n. 3.2. Key Rotation and Clock-Skew Defense * *Key Rotation:* When rotating an Ed25519 signing key, the daemon SHOULD emit a transition record signed by the outgoing key containing the new key_id and public key, followed by subsequent records carrying the new key_id. * *Clock-Skew & Ordering:* Verifiers MUST enforce strict monotonic seq increments (seq_n == seq_{n-1} + 1) and SHOULD flag any backward ts_utc regression exceeding a configurable clock-skew tolerance (RECOMMENDED default: 5 seconds for NTP adjustments). 3.3. Merkle Tree Anchoring (Optional) Implementations SHOULD periodically compute an [RFC6962]-compliant Merkle Tree root over batches of record_hash leaves and emit or transmit the signed root checkpoint to an external write-once witness or offline auditor. Padayachi Expires 5 June 2027 [Page 4] Internet-Draft suit.audit.v1 Audit Format December 2026 4. Offline Verification Procedure An independent verifier receiving a suit.audit.v1 log file and an optional trusted Ed25519 public key MUST perform the following checks sequentially for every record n: 1. Verify schema == "suit.audit.v1". 2. Verify seq == prev_seq + 1 (or 0 for the first record). 3. Verify prev_hash equals the computed record_hash of record n - 1 (or 64 zeros for seq == 0). 4. Recompute SHA-256(JCS(P_n)) and verify exact equality with record_hash. 5. If signature is present and a public key is configured, verify the Ed25519 signature over record_hash. If any check fails, the verifier MUST report tampering, truncation, or corruption at sequence index n. 5. Security Considerations * *Key Compromise & Forward Security:* If an attacker compromises the signing key in memory, they can forge future records starting from the time of compromise, but they CANNOT alter historical records anchored prior to compromise without breaking previously exported Merkle checkpoints. Implementations SHOULD rotate ephemeral signing keys on boot or periodic intervals. * *Sensitive Argument Redaction:* Operators MUST NOT pass plaintext secrets (e.g., passwords, API tokens) in exec.argv, as argv is recorded in the audit ledger. 6. IANA Considerations This document has no IANA actions. 7. References 7.1. Normative References [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, . Padayachi Expires 5 June 2027 [Page 5] Internet-Draft suit.audit.v1 Audit Format December 2026 [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, . [RFC6962] Laurie, B., Langley, A., and E. Kasper, "Certificate Transparency", RFC 6962, DOI 10.17487/RFC6962, June 2013, . [RFC8032] Josefsson, S. and I. Liusvaara, "Edwards-Curve Digital Signature Algorithm (EdDSA)", RFC 8032, DOI 10.17487/RFC8032, January 2017, . [RFC8259] Bray, T., Ed., "The JavaScript Object Notation (JSON) Data Interchange Format", STD 90, RFC 8259, DOI 10.17487/RFC8259, December 2017, . [RFC8785] Rundgren, A., Jordan, B., and S. Erdtman, "JSON Canonicalization Scheme (JCS)", RFC 8785, DOI 10.17487/RFC8785, June 2020, . 7.2. Informative References [RFC5424] Gerhards, R., "The Syslog Protocol", RFC 5424, DOI 10.17487/RFC5424, March 2009, . Appendix A. Reference Implementation Open-source reference implementations of suit.audit.v1 are maintained by StellerSight Private Limited: * Linux Daemon & Verifier: https://github.com/stellersight/suit- linux * Drupal Enterprise Module (OpenSSF Gold #16572): https://git.drupalcode.org/project/suit Author's Address Vinod Padayachi StellerSight Private Limited Navi Mumbai Maharashtra India Email: vinod@stellersight.com Padayachi Expires 5 June 2027 [Page 6]