Partial preview of the text
Download Reducing TCB Complexity Security-Sensitive Applications: Three Case Studies | CS 6235 and more Study notes Computer Science in PDF only on Docsity!
Reducing TCB Complexity for Security-Sensitive Applications Three Case Studies Lenin Singaraveluā Calton Puā āCERCS, Georgia Institute of Technology Atianta, USA. {lenin, calton}@cc.gatech.edu The fisture of digital systems is complexity, and complex- ity is the worst enemy of security. - Bruce Schneier [40}. ABSTRACT The large size and high complexity of security- sensitive applications and systems software is a primary cause for their poor testability and high vulnerability. One. approach to alleviate this problem is to extract the secu- rity-sensitive parts of application and systems software, thereby reducing the size and complexity of software that needs to be trusted. At the system software level, we use the Nizza architecture which relies on a kernelized trusted computing base (TCB) and on the reuse of legacy code using trusted wrappers to minimize the size of the TCB. At the application level, we extract the security-sensitive portions of an already existing application into an AppCore. The AppCore is executed as a trusted process in the Nizza architecture while the rest of the application executes on a virtualized, untrusted legacy operating sys- tem. In three case studies of real-world applications (e- commerce transaction client, VPN gateway and digital signatures in an e-mail client), we achieved a considerable reduction in code size and complexity. In contrast to the few hundred thousand lines of current application soft- ware code running on millions of lines of systems soft- ware code, we have AppCores with tens of thousands of lines of code running on a hundred thousand lines of sys- tems software code, We also show the performance pen- alty of AppCores to be modest (a few percent} compared to current software. Categories and Subject Descriptors D.2,11 [Software Engineering]: Software Architectures; D.4.6 [Operating Systems]: Security and Protection. General Terms Reliability, Security. Permission to make digital or hard copies of alf or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. To copy otherwise, or republish, to post on servers or to redistribute to lists, ce~ quites prior specific permission and/or a fee. Eurosys 06, April 18-21, 2006, Leuven, Belgium, Copyright 2006 ACM 1-59593-322-/06/0004,,. $5.00. 161 Hermann Hartigā Christian Helmuthā ? Technische Universitat Dresden, Institute for System Architecture, Dresden, Germany. {naertig, heimuth}@os.inf.tu-dresden.de Keywords Application security, trusted computing base. 1. INTRODUCTION Security-sensitive applications such as web browsers have grown tremendously in functionality and size. For example, the Mozilla browser contains 1 million lines of code. Browsers are used for many applications such as carrying out e-commerce transactions (e.g., handling credit card information), and viewing and updating per- sonal information in bank accounts. Unfortunately, the growing code size has resulted in an increasing number of vulnerabilities. Attackers have successfully exploited these vulnerabilities to obtain private information or in- stall arbitrary code that modifies the browser [11]. At the system level, libraries, middleware and kernel also have grown similarly in functionality and size. For example, the X11 window server contains over 1.25 mil- lion fines of code. X11 executes with superuser privi- leges and it has been vulnerable to buffer overflow ex~ ploits in the past [6]. A minimal functional configuration of the Linux kernel contains about 200,000 lines of code, and the whole kernel runs in privileged mode (x86 archi- tecture). The Linux kernel too sutfers from a host of vul- nerabilities [7] including buffer overflow, privilege esca- lation and security bypass. One approach to alleviate this problem is to extract security-sensitive parts of application and systems soft- ware, thereby reducing the size and compiexity of soft- ware that needs to be trusted. Building small and simple software has been jong advocated, eg. Saltzer and Schroeder [38], in 1974, advocated Economy of mecha- nism, Least privilege and Separation of privilege as im- portant design principles. Software engineering studies have also shown a positive correlation between software complexity and bugs in code [21][43}. In addition to the increased number of bugs, Schneier [40] argues that in- creased complexity also hinders the ability to understand and model the system, which leads to more difficult test- ing and analysis stages. Chen et al. argue that it would be more secure to run applications on virtualized machines than real machines, as a virtual machine monitor is con- siderably smaller and simpler than a regular operating system kernel [15].