JRed: Program Customization and Bloatware Mitigation Based on Static Analysis
Yufei Jiang, Dinghao Wu, Peng Liu · IEEE Annual Computer Software and Applications Conference (COMPSAC) · 2016
Modern software engineering practice increasingly brings redundant code into software products, which has caused a phenomenon called bloatware, leading to software system maintenance, performance and reliability issues as well as security problems. With the rapid advances of smart devices and a more connected world, it is never more important to trim bloatware to improve the leanness, agility, reliability, performance, and security of the interconnected software and network systems. Previous methods have limited scopes and are usually not fully automated. In this paper, we propose a new static-analysis-enabled approach to trimming unused code from both Java applications and Java Runtime Environment (JRE) automatically. We have built a tool called JRed on top of the Soot framework. We have conducted a fairly comprehensive evaluation of JRed based on a set of criteria: code size, code complexity, memory footprint, execution and garbage collection time, and security. Our experimental results show that, Java application size can be reduced by 44.5% on average and the JRE code can be reduced by more than 82.5% on average. The code complexity is significantly reduced according to a set of well-known metrics. Furthermore, we report that by trimming redundant code, 48.6% of the known security vulnerabilities in the Java Runtime Environment JRE 6 update 45 has been removed.
Cited by 64 works. doi:10.1109/compsac.2016.146
Authors
References
- A metrics suite for object oriented design
- The DaCapo benchmarks
- Optimization of Object-Oriented Programs Using Static Class Hierarchy Analysis
- Soot
- A case study of open source software development
- Cloning-based context-sensitive pointer alias analysis using binary decision diagrams
- Fast static analysis of C++ virtual function calls
- Moving Target Defense
- Call graph construction in object-oriented languages
- Static detection of malicious JavaScript-bearing PDF documents