Your Twin learns with you

30% off annual Pro20% off monthly Pro

Ends in00h00m00s

Deian Stefan

University of California, San Diego
Country flagUnited States

Research Interests

ApplyKite TwinLearns as you apply

Make your next move.

Prepare your application

Review drafts before you send them.

Explore related searches

Articles (7)

Year:

2026

Year:

2025

Year:

2025

Year:

2025

Year:

2025

Year:

2025

Most programs compiled to WebAssembly (Wasm) today are written in unsafe languages like C and C++. Unfortunately, memory-unsafe C code remains unsafe when compiled to Wasm—and attackers can exploit buffer overflows and use-after-frees in Wasm almost as easily as they can on native platforms. Memory- Safe WebAssembly (MSWasm) proposes to extend Wasm with language-level memory-safety abstractions to precisely address this problem. In this paper, we build on the original MSWasm position paper to realize this vision. We give a precise and formal semantics of MSWasm, and prove that well-typed MSWasm programs are, by construction, robustly memory safe. To this end, we develop a novel, language-independent memory-safety property based on colored memory locations and pointers. This property also lets us reason about the security guarantees of a formal C-to-MSWasm compiler—and prove that it always produces memory-safe programs (and preserves the semantics of safe programs). We use these formal results to then guide several implementations: Two compilers of MSWasm to native code, and a C-to-MSWasm compiler (that extends Clang). Our MSWasm compilers support different enforcement mechanisms, allowing developers to make security-performance trade-offs according to their needs. Our evaluation shows that on the PolyBenchC suite, the overhead of enforcing memory safety in software ranges from 22% (enforcing spatial safety alone) to 198% (enforcing full memory safety), and 51.7% when using hardware memory capabilities for spatial safety and pointer integrity. More importantly, MSWasm’s design makes it easy to swap between enforcement mechanisms; as fast (especially hardware-based) enforcement techniques become available, MSWasm will be able to take advantage of these advances almost for free.

Year:

2023

Collaborators (8)

Basavesh Ammanaghatta Shivakumar

Assistant Professor

Washington State University

UNITED STATES
View details

Shravan Narayan

Assistant Professor

University of Texas at Austin

UNITED STATES
View details

Bryan Parno

Carnegie Mellon University

UNITED STATES
View details

Ranjit Jhala

University of California

UNITED STATES
View details

Nicolas Christin

Department Head

Carnegie Mellon University

UNITED STATES
View details

Caleb Stanford

Assistant professor

University of California, Davis

UNITED STATES
View details

Marco Patrignani

Katholieke Universiteit Leuven

BELGIUM
View details

Stefan Savage

University of California

UNITED STATES
View details