Network Working Group D. Shuliak Internet-Draft SHULIAK CORP Intended status: Informational 29 November 2026 Expires: 2 June 2027 Shuliak Isolation Protocol (SIP-1): Zero-Egress Format-Preserving Cryptographic Pseudonymization, Information-Flow Control, and JSON-RPC 2.0 Firewalling for AI and MCP Transports draft-shuliak-sip-zero-egress-01 Abstract This document specifies the Shuliak Isolation Protocol (SIP-1, revision 3.1), a deterministic, zero-egress cryptographic firewall, format-preserving pseudonymization layer, and evidentiary audit protocol for autonomous Artificial Intelligence (AI) agents and Model Context Protocol (MCP) JSON-RPC 2.0 transports. SIP-1 interposes inline on local operating-system standard input/output (stdio) pipes with zero outbound network sockets. The protocol combines canonical JSON tool-schema pinning, stateless 10-round Feistel format-preserving encryption over arbitrary- precision integer domains (radix^n >= 1,000,000), algebraic check- digit bijections, two-phase sentinel slot isolation, dynamic information-flow control (IFC) taint lattices with single-use Ed25519 execution warrants, and history-independent Cuckoo keyring crypto- shredding backed by Merkle tree inclusion and consistency proofs. 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 2 June 2027. Shuliak Expires 2 June 2027 [Page 1] Internet-Draft SHULIAK SIP-1 Zero-Egress MCP November 2026 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 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 and Local stdio Threat Model . . . . . . . . . . 2 2. Conventions and Requirements Language . . . . . . . . . . . . 3 3. Canonicalization and Domain Separation . . . . . . . . . . . 3 4. Stateless FF1 Bijections and Slot Isolation . . . . . . . . . 4 5. JSON-RPC 2.0 Wire Armor and IFC Taint Bus . . . . . . . . . . 5 6. ISEP v3.0 Crypto-Shredding and Merkle Proofs . . . . . . . . 6 7. Security Considerations and Limitations . . . . . . . . . . . 6 8. ABNF Token and Envelope Grammar . . . . . . . . . . . . . . . 6 9. Reference Implementation Telemetry . . . . . . . . . . . . . 7 10. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 7 11. References . . . . . . . . . . . . . . . . . . . . . . . . . 7 11.1. Normative References . . . . . . . . . . . . . . . . . . 7 11.2. Informative References . . . . . . . . . . . . . . . . . 8 Changes Since draft-shuliak-sip-zero-egress-00 . . . . . . . . . 9 Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 9 1. Introduction and Local stdio Threat Model Autonomous coding agents and desktop Artificial Intelligence (AI) hosts invoke external tools over the Model Context Protocol (MCP) via JSON-RPC 2.0 frames. Remote HTTP servers pass through enterprise network firewalls, yet 33.4% of public MCP packages (15,785 of 47,267 cataloged servers as of October 2026) execute exclusively as child subprocesses over local operating-system standard input/output (stdio) pipes [ZENODO-SIP1]. Stdio opens zero network sockets. Shuliak Expires 2 June 2027 [Page 2] Internet-Draft SHULIAK SIP-1 Zero-Egress MCP November 2026 Cloud Data Loss Prevention (DLP) gateways and Cloud Access Security Brokers (CASB) cannot inspect unnamed kernel pipes between an IDE host and a local database, repository, or clinical record connector. As documented in [NSA-MCP], baseline MCP transports omit mandatory mutual authentication and fine-grained authorization, allowing child processes to read plaintext secrets from local manifests and emit raw Personal Identifiable Information (PII) into remote language model prompts. Static redaction strings such as "[REDACTED]" corrupt downstream schema validators. Payment APIs reject non-Luhn card numbers; SEPA parsers reject broken ISO/IEC 7064 MOD 97-10 IBANs; multi-turn agent plans fail when distinct entities collapse into identical placeholders. SIP-1 (revision 3.1) enforces Split-Stream Context Rehydration inline on stdio without external servers. Outbound tool responses destined for cloud models carry format-valid synthetic twins, while authorized local tool calls rehydrate original values strictly from volatile process memory. 2. Conventions and Requirements Language 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. 3. Canonicalization and Domain Separation Cross-platform signature verification fails whenever JSON serializers permute object keys or apply locale-dependent collation. All signed or hashed JSON objects in SIP-1 MUST be serialized under the JSON Canonicalization Scheme (JCS) [RFC8785] using raw UTF-16 code-unit sorting and IEEE 754 number formatting. Unpaired UTF-16 surrogates and non-finite numbers MUST be rejected prior to hashing. Binary digests and signatures MUST be encoded in unpadded base64url per Section 5 of [RFC4648] (43 characters for 32-byte SHA-256 digests and raw [RFC8032] Ed25519 public keys; 86 characters for 64-byte Ed25519 signatures). Every SHA-256 digest prepends a single domain byte: SHA-256([prefix] || payload). Every Ed25519 signature signs an explicit ASCII label terminated by a NUL byte: ASCII_LABEL || 0x00 || payload. Shuliak Expires 2 June 2027 [Page 3] Internet-Draft SHULIAK SIP-1 Zero-Egress MCP November 2026 +========+=============================================+ | Prefix | Cryptographic Scope | +========+=============================================+ | 0x00 | ISEP Event Skeleton (RFC 8785 JCS) & Leaf | +--------+---------------------------------------------+ | 0x01 | Hash-Chain Link & RFC 9162 Interior Node | +--------+---------------------------------------------+ | 0x02 | ISBL 512B-Padded Sidecar Blob Commitment | +--------+---------------------------------------------+ | 0x03 | GDPR Art. 17 Erasure Tombstone Witness | +--------+---------------------------------------------+ | 0x04 | Salted Slot Key-Destruction Commitment | +--------+---------------------------------------------+ | 0x05 | DSAR Cryptographic Erasure Receipt | +--------+---------------------------------------------+ | 0x06 | RFC 8785 Schema & Runtime Tools Lock | +--------+---------------------------------------------+ | 0x07 | Stage 2 Normalized Tool Action Warrant | +--------+---------------------------------------------+ | 0x08 | CycloneDX 1.6 AIBOM Canonical Digest | +--------+---------------------------------------------+ | 0x09 | Sovereign Root License Token Envelope | +--------+---------------------------------------------+ | 0x0A | Auditor Attestation Bundle Digest | +--------+---------------------------------------------+ | 0x0B | RFC 9162 Merkle Inclusion/Consistency Proof | +--------+---------------------------------------------+ | 0x0C | Domain Prefix Ci Receipt | +--------+---------------------------------------------+ | 0x0D | Domain Prefix Mdm Policy | +--------+---------------------------------------------+ Table 1: SIP-1 SHA-256 Domain-Separation Registry 4. Stateless FF1 Bijections and Slot Isolation Following algebraic attacks against FF3 and FF3-1 [BEYNE21], NIST withdrew both modes in [NIST-FF1]. SIP-1 implementations MUST implement the 10-round Feistel mode FF1 over AES-256 exclusively and MUST NOT implement FF3 or FF3-1. All modular steps MUST execute over arbitrary-precision integers (BigInt) with minimum domain size radix^n >= 1,000,000. Short strings where radix^n < 1,000,000 MUST fall back to keyed HMAC-SHA256 scoped pseudonyms. Tweaks are derived per entity class via HMAC-SHA256("SIP1-FF1-v1" || domain || uint16BE(length) || prefix) truncated to 16 bytes. For ISO/IEC 7812 payment cards of length L >= 13, SIP-1 preserves only the leading Major Industry Identifier (MII) digit, encrypts the Shuliak Expires 2 June 2027 [Page 4] Internet-Draft SHULIAK SIP-1 Zero-Egress MCP November 2026 interior L-2 digits (masking the issuer BIN body while keeping 10^(L-2) >= 10^11 > 10^6), and appends a freshly computed Luhn Modulo-10 digit. Inbound rehydration strips the synthetic check digit, applies FF1.Decrypt, and algebraically reconstructs the original Luhn digit with zero database state. Analogous bijections preserve ISO/IEC 7064 MOD 97-10 for SEPA IBANs (applying cycle- walking on radix-36 BBANs), ISO 3779 check characters at index 8 for VINs, and ICAO 9303 composite check digits for MRZs. Sequential regular expressions corrupt overlapping identifiers. SIP-1 prevents substring collisions via Two-Phase Sentinel Slot Isolation: Phase 1 captures matches in descending structural specificity into NUL-delimited inert slots (\x00SIP_SLOT_k\x00), and Phase 2 unwraps synthetic twins sorted by descending byte length. For OpenXML (.docx, .xlsx), OpenDocument (.odt), PDF FlateDecode text streams, HL7 v2 PID segments, and FHIR R4 resources, implementations SHOULD coalesce fragmented XML text runs inside each paragraph prior to Phase 1 capture. 5. JSON-RPC 2.0 Wire Armor and IFC Taint Bus A compliant stdio proxy MUST parse newline-delimited JSON-RPC 2.0 frames through a state-machine key scanner that rejects duplicate JSON object keys, strips __proto__ and constructor.prototype keys, and drops downstream responses whose id does not match an inflight host request. Unsolicited server-to-client sampling/createMessage and elicitation/* requests MUST be rejected by default with JSON-RPC error codes -32011 or -32012. File URIs in resources/read MUST be URL-decoded, stripped of trailing dots and NTFS alternate data stream suffixes, resolved via OS realpath, and confined to declared workspace roots while blocking NAT64 (64:ff9b::/96) and link-local metadata IPs. On tools/list, Gate 1 computes the 0x06 JCS digest across tool name, title, description, inputSchema, outputSchema, and behavioral annotations, halting on unpinned schema drift or Unicode Plane-14 Tag (U+E0000..U+E007F) smuggling. On tools/call, Gate 2 classifies SQL, shell, and path arguments independently of untrusted readOnlyHint flags. To break multi-tool exfiltration chains formalized in [FIDES25], SIP-1 maintains an HMAC-protected inter-process Information-Flow Control (IFC) state sharded by session scope. When untrusted external ingress coexists with unmasked private data, any subsequent mutating or external sink call MUST block unless accompanied by a single-use 0x07 [RFC8032] Ed25519 warrant bound to the exact JCS digest of {server, tool, args}. Shuliak Expires 2 June 2027 [Page 5] Internet-Draft SHULIAK SIP-1 Zero-Egress MCP November 2026 6. ISEP v3.0 Crypto-Shredding and Merkle Proofs Audit logs face a tension between immutability and statutory erasure (GDPR Article 17). The Immutable Shredding Evidentiary Protocol (ISEP v3.0) resolves this by encrypting per-subject audit payloads under 256-bit slot keys stored inside an encrypted Cuckoo hash keyring (ISEPKR03, 4 slots per 288-byte AES-256-GCM bucket) while chaining 0x00 JCS event skeletons via 0x01 hashes and 512-byte padded ISBL sidecars (0x02). Upon an erasure request, the custodian zeroizes the target slot key, rebuilds active Cuckoo buckets in canonical lexicographical order of 128-bit slot fingerprints (eliminating insertion-order history leakage), rotates both table and root wrapping keys, increments the 64-bit generation counter, and appends a signed tombstone (0x03..0x05). Log verifiers prove event inclusion and append-only consistency using Section 2.1 of [RFC9162] binary Merkle trees signed under prefix 0x0B, paired with 0x08 [CYCLONEDX] AI Bills of Materials (AIBOM) and 0x09/0x0A offline Ed25519 attestation bundles. 7. Security Considerations and Limitations SIP-1 mitigates local MCP command injection, post-approval tool- schema rug pulls, Unicode tag prompt smuggling, and cleartext PII leakage across stdio pipes. Ephemeral keys allocated outside pooled slabs are overwritten with CSPRNG bytes followed by zeros upon session teardown. Explicit Limitations and Residual Threat Surface: (1) Host OS Compromise: SIP-1 operates in user space; a local root or kernel attacker capable of reading /proc/$PID/mem can inspect volatile twin tables during an active session. (2) Domain Floor Bound: identifiers shorter than radix^n = 1,000,000 cannot use FF1 and receive non- format-preserving scoped HMAC tokens. (3) Unanchored Free-Form Prose: without probabilistic neural classifiers, Layer-1 automata guarantee deterministic capture on structured syntax, checksummed numbers, and anchored document headers, not arbitrary colloquial paraphrases. (4) Side-Channel Timing: runtime BigInt modular arithmetic in high-level VMs is not hardware constant-time against co-resident L1 cache attackers, though random per-session keys and local-only stdio framing prevent remote network timing oracles. 8. ABNF Token and Envelope Grammar Wire tokens and signed envelopes conform to Augmented Backus-Naur Form (ABNF) [RFC5234]: Shuliak Expires 2 June 2027 [Page 6] Internet-Draft SHULIAK SIP-1 Zero-Egress MCP November 2026 ; SIP-1 / ISEP v3.1 Wire & Token Grammar (RFC 5234) b64u-char = ALPHA / DIGIT / "-" / "_" b64u-43 = 43b64u-char ; 32B SHA-256 / Ed25519 b64u-86 = 86b64u-char ; 64B Ed25519 signature dom-byte = %x00-0D ; Domain prefix byte sign-env = 1*VCHAR %x00 *OCTET ; Label || NUL || body sip3-lic = "SIP3." tier "." 1*b64u-char "." b64u-86 tier = "PRO_SECOPS" / "COMPLIANCE" / "ENTERPRISE" warrant = "sipw3." 1*b64u-char "." b64u-86 twin-mail = "u-" 16HEXDIG "@twin.sip.invalid" 9. Reference Implementation Telemetry Table 2 reports single-core latencies measured on an aarch64 Linux kernel running Node.js v22.23.3 (@shuliak-corp/sip1-mcp v3.1.0, pure ECMAScript modules, 0 external runtime dependencies, 0 outbound network sockets, 9/9 official NIST CAVP FF1 vectors, 251/251 automated verification checks passing): +==================================+==========+==========+ | Pipeline Operation | p50 | p95 | +==================================+==========+==========+ | RFC 8785 JCS + 0x06 SHA-256 | 0.021 ms | 0.073 ms | +----------------------------------+----------+----------+ | Stage 2 SQL/Shell AST Guard | 0.078 ms | 0.192 ms | +----------------------------------+----------+----------+ | NIST FF1-AES256 Luhn PAN Twin | 0.136 ms | 1.795 ms | +----------------------------------+----------+----------+ | Ed25519 Sign + Verify (0x07) | 0.226 ms | 0.312 ms | +----------------------------------+----------+----------+ | ISEP v3.0 Event + Sidecar Commit | 1.468 ms | 5.278 ms | +----------------------------------+----------+----------+ Table 2: Empirical Latencies (aarch64, Node.js v22.23.3) 10. IANA Considerations This document has no IANA actions. 11. References 11.1. Normative References [NIST-FF1] Dworkin, M., "Recommendation for Block Cipher Modes of Operation: Methods for Format-Preserving Encryption", NIST SP 800-38G Rev. 1 (2nd Draft), February 2025, . Shuliak Expires 2 June 2027 [Page 7] Internet-Draft SHULIAK SIP-1 Zero-Egress MCP November 2026 [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997, . [RFC4648] Josefsson, S., "The Base16, Base32, and Base64 Data Encodings", RFC 4648, October 2006, . [RFC5234] Crocker, D., "Augmented BNF for Syntax Specifications: ABNF", STD 68, RFC 5234, January 2008, . [RFC8032] Josefsson, S., "Edwards-Curve Digital Signature Algorithm (EdDSA)", RFC 8032, January 2017, . [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, May 2017, . [RFC8785] Rundgren, A., "JSON Canonicalization Scheme (JCS)", RFC 8785, June 2020, . [RFC9162] Laurie, B., "Certificate Transparency Version 2.0", RFC 9162, December 2021, . 11.2. Informative References [BEYNE21] Beyne, T., "Cryptanalysis of the FF3-1 Format-Preserving Encryption Standard", IACR ePrint 2021/815, July 2021, . [CYCLONEDX] OWASP Foundation, "OWASP CycloneDX Specification v1.6", ECMA 424, April 2024, . [FIDES25] Costa, M., "Securing AI Agents with Information-Flow Control", arXiv 2505.23643, May 2025, . [NSA-MCP] National Security Agency, "Model Context Protocol Security", CSI PP-26-1834, May 2026, . Shuliak Expires 2 June 2027 [Page 8] Internet-Draft SHULIAK SIP-1 Zero-Egress MCP November 2026 [ZENODO-SIP1] Shuliak, D., "Shuliak Isolation Protocol (SIP-1): Stateless Checksum-Invariant Format-Preserving Pseudonymization", DOI 10.5281/zenodo.24159380, November 2026, . Changes Since draft-shuliak-sip-zero-egress-00 1. Aligned protocol architecture with the pure Node.js ESM reference engine v3.1.0 (zero external runtime dependencies, zero outbound sockets, 251 automated verification checks). 2. Expanded domain-separation registry from basic tokens to prefixes 0x00 through 0x0D covering RFC 8785 JCS locks, 0x07 Ed25519 warrants, 0x08 CycloneDX 1.6 AIBOMs, and 0x0B RFC 9162 Merkle proofs. 3. Added Section 5 specifying duplicate-key JSON-RPC wire armor, CVE-class path/elicitation/NAT64 guards, and the two-phase inter- process IFC taint lattice. 4. Refined PAN bijection to preserve only the 1-digit MII and encrypt the issuer BIN body, and documented explicit security limitations and threat boundaries. Author's Address Dmitrii Shuliak SHULIAK CORP 17 Pirosmani Street 6000 Batumi Georgia Email: hq@shuliak.dev URI: https://shuliak.dev Shuliak Expires 2 June 2027 [Page 9]