Certified Compilation based on G\"odel Numbers
Guilherme de Oliveira Silva, Fernando Magno Quint\~ao Pereira

TL;DR
This paper introduces a novel certification method using G"odel numbers to verify that compiled binaries faithfully represent their source code, enhancing trust in compiler outputs and preventing malicious modifications.
Contribution
The paper presents a new certification approach based on G"odel numbers, providing a formal guarantee that binaries match source code, along with a practical implementation called Charon for a subset of C.
Findings
Certificates can be derived in constant time from source and binary
Charon successfully compiles a cryptographic language subset with verified certificates
The method ensures binary statements and dependencies match source code
Abstract
In his 1984 Turing Award lecture, Ken Thompson showed that a compiler could be maliciously altered to insert backdoors into programs it compiles and perpetuate this behavior by modifying any compiler it subsequently builds. Thompson's hack has been reproduced in real-world systems for demonstration purposes. Several countermeasures have been proposed to defend against Thompson-style backdoors, including the well-known {\it Diverse Double-Compiling} (DDC) technique, as well as methods like translation validation and CompCert-style compilation. However, these approaches ultimately circle back to the fundamental question: "How can we trust the compiler used to compile the tools we rely on?" In this paper, we introduce a novel approach to generating certificates to guarantee that a binary image faithfully represents the source code. These certificates ensure that the binary contains all and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
