Open Access
- 27 November 2023
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 275-287
Abstract
Software is becoming increasingly complex and feature-rich, yet only part of any given codebase is frequently used. Existing software customization and debloating approaches target static binaries, focusing on feature discovery, control-flow analysis, and binary rewriting. As a result, the customized program binary has a smaller attack surface as well as less available functionality. This means that once a software's use scenario changes, the customized binary may not be usable. This paper presents DynaCut, for dynamic software code customization. DynaCut can disable "not being used" code features during software runtime and re-enable them when required again. DynaCut works at the binary level; no source code is needed. To achieve its goal, DynaCut includes a dynamic process rewriting technique that seamlessly and transparently updates the image of a running process, with specific code features blocked or re-enabled. To help identify potentially unused code, DynaCut employs an execution trace-based differential analysis to pinpoint the code related to specific software features, which can be dynamically turned on/off based on user configuration. We also develop automatic methods to locate code that is only temporally used (e.g., initialization code), which can be dropped in a timely manner (e.g., after the initialization phase). We prototype DynaCut and evaluate it using 3 widely used server applications and the SPECint2017_speed benchmark suite. The result shows that, compared to existing static binary customization approaches, DynaCut removes an additional 10% of code on average and up to 56% of temporally executed code due to the dynamic code customization.Keywords
Funding Information
- National Science Foundation (CNS 2127491)
- Office of Naval Research (N00014-19-1-2493 and N00014-22-1-2672)
This publication has 31 references indexed in Scilit:
- Timely Rerandomization for Mitigating Memory Disclosures2015
- Nested Kernel2015
- FACE-CHANGE: Application-Driven Dynamic Kernel View Switching in a Virtual Machine2014
- Characterizing Cloud Applications on a Google Data Center2013
- The geometry of innocent flesh on the bone2007
- Practical dynamic software updating for C2006
- Pin2005
- Locating features in source codeIEEE Transactions on Software Engineering, 2003
- Partial dead code eliminationACM SIGPLAN Notices, 1994
- Efficient software-based fault isolation1993