LuawardDocs

Obscyven VM Architecture

How Luaward and Obscyven coordinate the triple-layer protection stack, per-build VM, and lazy AEAD execution.

Triple-layer protection stack

Luaward compiles every script with Obscyven under a server-managed online-sealed architecture. Rather than relying on a single static wrapper, protection spans three coordinated layers from the entry URL to runtime execution:

[Player Runtime]
   │
   ▼  Layer 1 · Loader Universe (Obscyven VM)
      Asymmetric Ed25519 signed route resolution + SHA-256 Layer-2 verification
   │
   ▼  Layer 2 · Script Loader (Obscyven VM)
      Challenge-response + single-use nonce + Ephemeral X25519 key exchange + HWID check
   │
   ▼  Layer 3 · Protected Script (Obscyven Online-Sealed)
      4 Heterogeneous Sub-VMs + Stage-0 Mini-VM + Lazy ChaCha20-Poly1305 AEAD + Anti-Hook / Anti-Proxy

How each layer works

Layer 1: Loader Universe (Ed25519 Route Authority)

When distributing via a Universe URL, the lightweight entry loader itself is compiled with Obscyven. Route lookups to match the player's current game are signed asynchronously by the edge with Ed25519, and the retrieved Layer-2 loader is verified against its SHA-256 digest before execution proceeds.

Layer 2: Script Loader (Ephemeral X25519 Key Unlock)

The script loader is also wrapped by Obscyven. Before unlocking your protected script, it binds the execution environment, verifies license state and hardware identifier (HWID) on Luaward's edge via HMAC challenge-response and a single-use replay nonce, and negotiates a per-session key using Ephemeral X25519 (Forward Secrecy).

Layer 3: Obscyven Online-Sealed VM

Your actual Luau source is compiled into an Obscyven register-based Structure-of-Arrays (SoA) VM designed specifically for Luau semantics:

  • Per-Build VM Permutation: Each build generates a fresh Stage-0 boot Mini-VM, randomized opcode layouts, and 4 heterogeneous Sub-VMs across execution paths.
  • On-Demand Lazy AEAD: Functions and inner prototypes remain sealed across isolated Multi-Key Capability Groups using RFC 8439 ChaCha20-Poly1305 AEAD. Code is decrypted only on demand when invoked.
  • Split-Key Ephemeral Vault: Decryption shares never reside as a reusable plaintext secret in one static buffer and are wiped immediately after hydration.
  • Runtime Integrity Guards: Fail-closed anti-hook and anti-proxy checks monitor standard libraries and metamethod interception at bootstrap and during execution.

Server-managed tuning and write-only storage

  • Automatic Engine Tuning: Luaward manages Obscyven build settings directly on the server. Legacy preset selectors and manual compiler toggles are retired so every build receives triple-layer protection without manual configuration.
  • Write-Only Encrypted Source: Source uploaded to Luaward is encrypted with AES-256-GCM solely to power automated Obscyven rebuilds when platform security updates roll out. Raw source is never returned through the dashboard, API, CLI, or MCP.

Honest security boundaries

Client-side code runs on hardware controlled by the end user, so no protection system can claim 100% immunity against determined runtime inspection. Luaward combines Obscyven's layered bytecode sealing with server-side key, HWID, and session enforcement so unauthorized copies can be blocked cleanly without exposing raw Luau source.