What is it about?
Software systems powering operating system kernels, cellular modems, bootloaders (software used to start operating systems), firmware, IoT or automotive build the foundation of infrastructure that billions of people rely on every day. Testing these systems is crucial, especially as their complexity grows and they are often written in languages such as C/C++ which are known to be prone to programmer errors. These errors can not only cause reliability issues, but more importantly open up security holes. However, testing such complex systems poses significant challenges, e.g., custom hardware for which there is no emulator, or a non-trivial setup of testing and debugging on the target device. As a result, the commonly used testing techniques and tools are not always easily applicable. An off-target (OT) testing is a promising technique which addresses these challenges: part of the code is extracted and adapted to run on a different hardware platform with better tool support, easier debugging and higher test throughput. Unfortunately, since the process of creating an OT program has been manual, the technique did not scale well and was mostly used in an ad-hoc manner by security researchers. In this paper we present a novel complex systems testing approach called Auto Off-target (AoT). AoT can automatically generate OT programs in C. The generated OTs are self-contained and independent of the original build environment. As a result, pieces of complex or embedded software can be easily run, analyzed, debugged and tested on a standard development PC or a server. We evaluate AoT on tens of thousands of functions selected from operating system kernels, a bootloader and a network stack. We demonstrate we can run state-of-the art automated testing techniques on the majority of the generated OTs. We further used AoT in a bug finding campaign and discovered seven bugs in the kernels powering Google Pixel 5 and 6 phones.
Featured Image
Photo by Afif Ramdhasuma on Unsplash
Why is it important?
To the best of our knowledge AoT is the first tool of its kind targeting low-level software systems code.
Read the Original
This page is a summary of: Auto Off-Target: Enabling Thorough and Scalable Testing for Complex Software Systems, October 2022, ACM (Association for Computing Machinery),
DOI: 10.1145/3551349.3556915.
You can read the full text:
Resources
CAS project on GitHub
CAS project GitHub repository
AoT project on GitHub
AoT project repository on GitHub
CAS talk at Linux Security Summit North America 2022
More in-depth talk on the CAS project which Auto Off-Target is built on.
CAS & AoT talk at KLEE 2022
An overview talk on Auto Off-Target project (including the introduction on CAS) given at The 3rd KLEE International Workshop on Symbolic Execution 2022
Contributors
The following have contributed to this page







