Abstract
Current Trusted Execution Environment (TEE) implementations often rely on proprietary Trusted Computing Bases (TCBs), constraining their use in privacy-sensitive applications and regulatory contexts that require open-source implementations. To address this issue, we present Shadowfax, an M-mode TEE Security Manager (TSM-driver) for the open RISC-V architecture that adheres to the CoVE specification. Shadowfax partitions the platform into multiple isolated supervisor domains and enables secure inter-domain interactions through CoVE-defined primitives, thus supporting VMbased TEEs that remain agnostic to specific operating systems and hypervisors. Trusted Virtual Machines (TVMs) deployed under Shadowfax benefit from its integration with Physical Memory Protection (PMP) enforcement and Guest Page Tables (GPTs) separation to achieve two levels of isolation: (i) intra-domain isolation, which separates TVMs within the same trusted domain; and (ii) inter-domain isolation, which prevents interference across distinct trusted domains. Alongside Shadowfax, we also provide a minimal trusted hypervisor that supports bare-metal TVMs. Furthermore, our architecture integrates a secure boot and attestation pipeline based on the DICE model, enabling cryptographic verification of each execution environment from the TSM-driver to TVMs.