SECOMP: Formally Secure Compilation of Compartmentalized C Programs


연구 분야: Cryptography



학회: CCS '24: Proceedings of the 2024 on ACM SIGSAC Conference on Computer and Communications Security


초록

Undefined behavior in C often causes devastating security vulnerabilities. One practical mitigation is compartmentalization, which allows developers to structure large programs into mutually distrustful compartments with clearly specified privileges and interactions. In this paper we introduce SECOMP, a compiler for compartmentalized C code that comes with machine-checked proofs guaranteeing that the scope of undefined behavior is restricted to the compartments that encounter it and become dynamically compromised. These guarantees are formalized as the preservation of safety properties against adversarial contexts, a secure compilation criterion similar to full abstraction, and this is the first time such a strong criterion is proven for a mainstream programming language. To achieve this we extend the languages of the CompCert verified C compiler with isolated compartments that can only interact via procedure calls and returns, as specified by cross-compartment interfaces. We adapt the passes and optimizations of CompCert as well as their correctness proofs to this compartment-aware setting. We then use compiler correctness as an ingredient in a larger secure compilation proof that involves several proof engineering novelties, needed to scale formally secure compilation up to a C compiler.


Author Profile
Jérémy Thibault

Max Planck Institute for Security and Privacy (MPI-SP) Bochum Germany

Andorra
Author Profile
Roberto Blanco

Max Planck Institute for Security and Privacy (MPI-SP) Bochum Germany

Andorra
Author Profile
Dongjae Lee

Seoul National University Seoul Republic of Korea

Korea

📄 논문 정보

발행 연도 2024년
인용수 0
출판 국가 Germany, Andorra, United States, Korea
사이트 ACM
좋아요 수 0

연관 논문 목록 (24건)