Abstraction Recovery for Scalable Static Binary Analysis
Many source code tools help software programmers analyze programs as they are being developed, but such tools can no longer be applied once the final programs are shipped to the user. This greatly limits users, security experts, and anyone other than the programmer who wishes to perform additional t...
Main Author: | |
---|---|
Format: | Others |
Published: |
Research Showcase @ CMU
2014
|
Subjects: | |
Online Access: | http://repository.cmu.edu/dissertations/336 http://repository.cmu.edu/cgi/viewcontent.cgi?article=1336&context=dissertations |
id |
ndltd-cmu.edu-oai-repository.cmu.edu-dissertations-1336 |
---|---|
record_format |
oai_dc |
spelling |
ndltd-cmu.edu-oai-repository.cmu.edu-dissertations-13362014-08-14T03:33:33Z Abstraction Recovery for Scalable Static Binary Analysis Schwartz, Edward J. Many source code tools help software programmers analyze programs as they are being developed, but such tools can no longer be applied once the final programs are shipped to the user. This greatly limits users, security experts, and anyone other than the programmer who wishes to perform additional testing and program analysis. This dissertation is concerned with the development of scalable techniques for statically analyzing binary programs, which can be employed by anyone who has access to the binary. Unfortunately, static binary analysis is often more difficult than static source code analysis because the abstractions that are the basis of source code programs, such as variables, types, functions, and control flow structure, are not explicitly present in binary programs. Previous approaches work around the the lack of abstractions by reasoning about the program at a lower level, but this approach has not scaled as well as equivalent source code techniques that use abstractions. This dissertation investigates an alternative approach to static binary analysis which is called abstraction recovery. The premise of abstraction recovery is that since many binaries are actually compiled from an abstract source language which is more suitable for analysis, the first step of static binary analysis should be to recover such abstractions. Abstraction recovery is shown to be feasible in two real-world applications. First, C abstractions are recovered by a newly developed decompiler. The second application recovers gadget abstractions to automatically generate return-oriented programming (ROP) attacks. Experiments using the decompiler demonstrate that recovering C abstractions improves scalability over low-level analysis, with applications such as verification and detection of buffer overflows seeing an average of 17× improvement. Similarly, gadget abstractions speed up automated ROP attacks by 99×. Though some binary analysis problems do not lend themselves to abstraction recovery because they reason about low-level or syntactic details, abstraction recovery is an attractive alternative to conventional low-level analysis when users are interested in the behavior of the original abstract program from which a binary was compiled, which is often the case. 2014-05-01T07:00:00Z text application/pdf http://repository.cmu.edu/dissertations/336 http://repository.cmu.edu/cgi/viewcontent.cgi?article=1336&context=dissertations Dissertations Research Showcase @ CMU binary analysis abstraction recovery decompilation |
collection |
NDLTD |
format |
Others
|
sources |
NDLTD |
topic |
binary analysis abstraction recovery decompilation |
spellingShingle |
binary analysis abstraction recovery decompilation Schwartz, Edward J. Abstraction Recovery for Scalable Static Binary Analysis |
description |
Many source code tools help software programmers analyze programs as they are being developed, but such tools can no longer be applied once the final programs are shipped to the user. This greatly limits users, security experts, and anyone other than the programmer who wishes to perform additional testing and program analysis. This dissertation is concerned with the development of scalable techniques for statically analyzing binary programs, which can be employed by anyone who has access to the binary. Unfortunately, static binary analysis is often more difficult than static source code analysis because the abstractions that are the basis of source code programs, such as variables, types, functions, and control flow structure, are not explicitly present in binary programs. Previous approaches work around the the lack of abstractions by reasoning about the program at a lower level, but this approach has not scaled as well as equivalent source code techniques that use abstractions. This dissertation investigates an alternative approach to static binary analysis which is called abstraction recovery. The premise of abstraction recovery is that since many binaries are actually compiled from an abstract source language which is more suitable for analysis, the first step of static binary analysis should be to recover such abstractions. Abstraction recovery is shown to be feasible in two real-world applications. First, C abstractions are recovered by a newly developed decompiler. The second application recovers gadget abstractions to automatically generate return-oriented programming (ROP) attacks. Experiments using the decompiler demonstrate that recovering C abstractions improves scalability over low-level analysis, with applications such as verification and detection of buffer overflows seeing an average of 17× improvement. Similarly, gadget abstractions speed up automated ROP attacks by 99×. Though some binary analysis problems do not lend themselves to abstraction recovery because they reason about low-level or syntactic details, abstraction recovery is an attractive alternative to conventional low-level analysis when users are interested in the behavior of the original abstract program from which a binary was compiled, which is often the case. |
author |
Schwartz, Edward J. |
author_facet |
Schwartz, Edward J. |
author_sort |
Schwartz, Edward J. |
title |
Abstraction Recovery for Scalable Static Binary Analysis |
title_short |
Abstraction Recovery for Scalable Static Binary Analysis |
title_full |
Abstraction Recovery for Scalable Static Binary Analysis |
title_fullStr |
Abstraction Recovery for Scalable Static Binary Analysis |
title_full_unstemmed |
Abstraction Recovery for Scalable Static Binary Analysis |
title_sort |
abstraction recovery for scalable static binary analysis |
publisher |
Research Showcase @ CMU |
publishDate |
2014 |
url |
http://repository.cmu.edu/dissertations/336 http://repository.cmu.edu/cgi/viewcontent.cgi?article=1336&context=dissertations |
work_keys_str_mv |
AT schwartzedwardj abstractionrecoveryforscalablestaticbinaryanalysis |
_version_ |
1716710933197225984 |