HackerPapers

arXiv:1004.5548cs.CR

Countering Trusting Trust through Diverse Double-Compiling

David A. Wheeler

Early discovery. Linked by one identifiable commenter. This paper is outside the main ranking; a mention is not an endorsement.

Abstract

An Air Force evaluation of Multics, and Ken Thompson's famous Turing award lecture "Reflections on Trusting Trust," showed that compilers can be subverted to insert malicious Trojan horses into critical software, including themselves. If this attack goes undetected, even complete analysis of a system's source code will not find the malicious code that is running, and methods for detecting this particular attack are not widely known. This paper describes a practical technique, termed diverse double-compiling (DDC), that detects this attack and some compiler defects as well. Simply recompile the source code twice: once with a second (trusted) compiler, and again using the result of the first compilation. If the result is bit-for-bit identical with the untrusted binary, then the source code accurately represents the binary. This technique has been mentioned informally, but its issues and ramifications have not been identified or discussed in a peer-reviewed work, nor has a public demonstration been made. This paper describes the technique, justifies it, describes how to overcome practical challenges, and demonstrates it.

arXiv comments
13 pages.
Journal reference
Proc. of the 21st Annual Computer Security Applications Conference (ACSAC), December 5-9, 2005, Tucson, Arizona, pp. 28-40, Los Alamitos: IEEE Computer Society, ISBN 0-7695-2461-3, ISSN 1063-9527, IEEE Computer Society Order Number P2461.
DOI
doi:10.1109/CSAC.2005.17
Subjects
cs.CRCryptography and Security cs.PLProgramming Languages

On Hacker News

Linked by 1 identifiable commenter in 1 comment across 1 thread, from Jun 2011 to Jun 2011. Found in 1 HN submission from Apr 2014 to Apr 2014. Open submission discussions.

Comments linking this paper, per year.

Discussed in comments1 thread

    • There's a practical (for some value of practical) defense against this attack: "Countering Trusting Trust through Diverse Double Compiling." It's fairly clever. http://arxiv.org/pdf/1004.5548 If I recall correctly, here it is in short: 1) Invent a new virtual machine ISA. 2)…

      _cbszView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.