Testing intermediate representations for binary analysis

Soomin Kim, Markus Faerevaag, Minkyu Jung, Seungll Jung, Dongyeop X. Oh, Jonghyup Lee, Sang Kil

2017 · 54 citations · 44 references

Concepts

TL;DR

Binary lifting, which translates a binary executable to a high-level intermediate representation, is a primary step in binary analysis, yet few approaches exist to test its correctness and those that do suffer low test coverage because they rely on random test case generation. This paper presents the design and implementation of the first systematic approach to testing binary lifters. The authors design and implement a systematic testing framework that generates targeted test cases for binary lifters. Evaluation on three state‑of‑the‑art binary lifters uncovered 24 previously unknown semantic bugs, demonstrating that writing a precise binary lifter is extremely difficult even for heavily tested projects.

Abstract

Binary lifting, which is to translate a binary executable to a high-level intermediate representation, is a primary step in binary analysis. Despite its importance, there are only few existing approaches to testing the correctness of binary lifters. Furthermore, the existing approaches suffer from low test coverage, because they largely depend on random test case generation. In this paper, we present the design and implementation of the first systematic approach to testing binary lifters. We have evaluated the proposed system on 3 state-of-the-art binary lifters, and found 24 previously unknown semantic bugs. Our result demonstrates that writing a precise binary lifter is extremely difficult even for those heavily tested projects.

References

44