DocumentCode
1806952
Title
Automatically generating malicious disks using symbolic execution
Author
Yang, Junfeng ; Sar, Can ; Twohey, Paul ; Cadar, Cristian ; Engler, Dawson
Author_Institution
Comput. Syst. Lab., Stanford Univ., CA
fYear
2006
fDate
21-24 May 2006
Lastpage
257
Abstract
Many current systems allow data produced by potentially malicious sources to be mounted as a file system. File system code must check this data for dangerous values or invariant violations before using it. Because file system code typically runs inside the operating system kernel, even a single unchecked value can crash the machine or lead to an exploit. Unfortunately, validating file system images is complex: they form DAGs with complex dependency relationships across massive amounts of data bound together with intricate, undocumented assumptions. This paper shows how to automatically find bugs in such code using symbolic execution. Rather than running the code on manually-constructed concrete input, we instead run it on symbolic input that is initially allowed to be "anything." As the code runs, it observes (tests) this input and thus constrains its possible values. We generate test cases by solving these constraints for concrete values. The approach works well in practice: we checked the disk mounting code of three widely-used Linux file systems: ext2, ext3, and JFS and found bugs in all of them where malicious data could either cause a kernel panic or form the basis of a buffer overflow attack
Keywords
Linux; computer viruses; program debugging; Linux file systems; buffer overflow attack; disk mounting code; ext2 file system; ext3 file system; file system code; file system image validation; invariant violations; malicious disk automatic generation; operating system kernel; symbolic execution; Buffer overflow; Computer bugs; Computer crashes; Concrete; File systems; Kernel; Laboratories; Linux; Operating systems; Testing;
fLanguage
English
Publisher
ieee
Conference_Titel
Security and Privacy, 2006 IEEE Symposium on
Conference_Location
Berkeley/Oakland, CA
ISSN
1081-6011
Print_ISBN
0-7695-2574-1
Type
conf
DOI
10.1109/SP.2006.7
Filename
1624015
Link To Document