LibOS that runs legacy applications inside Intel SGX enclaves with minimal source changes.
Overview
Occlum is a memory-safe, multi-process library operating system for Intel SGX. As a LibOS it lets existing programs run inside secure enclaves with little or no code changes, aiming to protect workload confidentiality and integrity on untrusted hosts.
LibOS processes are lightweight and share one SGX enclave, which the project reports as much faster startup and inter-process communication than per-enclave designs. It supports read-only hashed file systems, writable encrypted file systems, and host file system access for data exchange. Optional EDMM configuration can reduce enclave load time and add flexibility.
Day-to-day use centers on command-line tools: initialize a context, build an image, and run binaries inside the enclave after compiling or copying them into the image. The implementation is written in Rust to reduce low-level memory safety issues. It requires Intel x86 hardware with SGX support.
Documented use cases include hardening secret stores, private smart-contract execution on blockchains, protecting code and data at the edge, and federated machine learning where parties share computation without exposing raw data. Development targets bare-metal and public cloud VMs with SGX.
Key features
- Intel SGX LibOS runtime
- Lightweight shared-enclave processes
- Hashed and encrypted file systems
- Host filesystem data exchange
- Optional PKU fault isolation
- Rust memory-safe implementation
- occlum init build run workflow
- Legacy app support with few changes
Use cases
- Hardening secret management stores
- Confidential blockchain smart contracts
- Protecting workloads at the edge
- Federated machine learning data sharing
- Running apps on untrusted cloud VMs