(Master's Thesis) Medovik: Simplifying Porting to Trusted Execution Environments
For my master’s thesis at the University of Strasbourg, I spent seven months at Northwestern University’s Prescience Lab with Professor Peter Dinda. I built Medovik, a model and prototype for running existing applications inside Trusted Execution Environments (TEEs) without a manual port.
The work was part of Privacy Backplane, a project about control over IoT data capture and use. TEEs isolate code from the operating system, but their Secure World operating systems lack the Linux runtimes, libraries, and drivers that many applications need. One target was ERASE, the lab’s video-redaction application for people who haven’t opted into image capture.
Medovik runs the unmodified application through emulation inside the TEE, then uses profiling to identify expensive functions. Developers can replace those functions through a “punch-through” mechanism while leaving the rest of the application unchanged. I built the prototype on a ROCKPro64 board, with the Bochs x86_64 emulator compiled to WebAssembly inside OP-TEE.
Across CoreMark, the NAS benchmark suite, SPEC CPU2017, and ERASE, every workload ran without porting, at a geometric-mean slowdown of about 125x relative to native. Punch-through reduced the slowdown by roughly an order of magnitude for two SPEC workloads and ERASE.
I also explored using LLMs to predict hot functions from source code without running the program. This became my first lead-author paper, submitted with Professor Dinda and Michael Polinski to PLOS 2026, co-located with SOSP.