Input-Driven Dynamic Program Debloating for Code-Reuse Attack Mitigation
Open Access
- 30 November 2023
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 934-946
Abstract
Modern software is bloated, especially for libraries. The unnecessary code not only brings severe vulnerabilities, but also assists attackers to construct exploits. To mitigate the damage of bloated libraries, researchers have proposed several debloating techniques to remove or restrict the invocation of unused code in a library. However, existing approaches either statically keep code for all expected inputs, which leave unused code for each concrete input, or rely on runtime context to dynamically determine the necessary code, which could be manipulated by attackers. In this paper, we propose Picup, a practical approach that dynamically customizes libraries for each input. Based on the observation that the behavior of a program mainly depends on the given input, we design Picup to predict the necessary library functions immediately after we get the input, which erases the unused code before attackers can affect the decision-making data. To achieve an effective prediction, we adopt a convolutional neural network (CNN) with attention mechanism to extract key bytes from the input and map them to library functions. We evaluate Picup on real-world benchmarks and popular applications. The results show that we can predict the necessary library functions with 97.56% accuracy, and reduce the code size by 87.55% on average with low overheads. These results indicate that Picup is a practical solution for secure and effective library debloating.Keywords
Funding Information
- National Natural Science Foundation of China (Grant No.62172305)
This publication has 31 references indexed in Scilit:
- Data-Oriented Programming: On the Expressiveness of Non-control Data Attacks2016
- Feature-Based Software Customization: Preliminary Analysis, Formalization, and Methods2016
- Counterfeit Object-oriented Programming: On the Difficulty of Preventing Code Reuse Attacks in C++ Applications2015
- Framing Signals - A Return to Portable Shellcode2014
- Hacking Blind2014
- Return-Oriented ProgrammingACM Transactions on Information and System Security, 2012
- “Slimming” a Java virtual machine by way of cold code removal and optimistic partial program loadingScience of Computer Programming, 2011
- The geometry of innocent flesh on the bone2007
- SPEC CPU2006 benchmark descriptionsACM SIGARCH Computer Architecture News, 2006
- Gradient-based learning applied to document recognitionProceedings of the IEEE, 1998