HSM boundary / KEK core Wrapped DEK → storage Blocked extraction attempt
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

HSM Key Custody: Envelope Encryption & Rotation

This simulation renders the security model behind hardware key-management systems — the same one used by AWS KMS, Google Cloud KMS, HashiCorp Vault's HSM backend, and PKCS#11 tokens. A glowing core at the center represents the master Key-Encryption Key (KEK), sealed inside a hardware boundary it can never leave. Incoming objects generate a fresh Data Encryption Key, travel to the boundary to be wrapped by the KEK, then carry only that wrapped key out to storage — the raw key is never persisted or exposed. A rotation timer periodically mints a new KEK version and lazily re-wraps a sample of stored keys, while simulated unauthorized extraction attempts are shown bouncing off the hardware boundary and logged, since a real HSM enforces that guarantee in silicon, not software.