JShrink: in-depth investigation into debloating modern Java applications
Bobby R. Bruce, Tianyi Zhang, Jaspreet Arora, Guoqing Harry Xu, Miryung Kim
摘要
Modern software is bloated. Demand for new functionality has led developers to include more and more features, many of which become unneeded or unused as software evolves. This phenomenon, known as software bloat, results in software consuming more resources than it otherwise needs to. How to effectively and automatically debloat software is a long-standing problem in software engineering. Various debloating techniques have been proposed since the late 1990s. However, many of these techniques are built upon pure static analysis and have yet to be extended and evaluated in the context of modern Java applications where dynamic language features are prevalent.
To this end, we develop an end-to-end bytecode debloating framework called JShrink. It augments traditional static reachability analysis with dynamic profiling and type dependency analysis and renovates existing bytecode transformations to account for new language features in modern Java. We highlight several nuanced technical challenges that must be handled properly and examine behavior preservation of debloated software via regression testing. We find that (1) JShrink is able to debloat our real-world Java benchmark suite by up to 47% (14% on average); (2) accounting for dynamic language features is indeed crucial to ensure behavior preservation-reducing 98% of test failures incurred by a purely static equivalent, Jax, and 84% for ProGuard; and (3) compared with purely dynamic approaches, integrating static analysis with dynamic profiling makes the debloated software more robust to unseen test executions-in 22 out of 26 projects, the debloated software ran successfully under new tests.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 11 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Logical bytecode reduction 引用了 Effective Program Debloating via Reinforcement Learning
- A longitudinal analysis of bloated Java dependencies 引用了 Debloating Software through Piece-Wise Compilation and Loading
- A longitudinal analysis of bloated Java dependencies 引用了 RAZOR: A Framework for Post-deployment Software Debloating
- BigFuzz: Efficient Fuzz Testing for Data Analytics Using Framework Abstraction 引用了 Debloating Software through Piece-Wise Compilation and Loading
- BigFuzz: Efficient Fuzz Testing for Data Analytics Using Framework Abstraction 引用了 RAZOR: A Framework for Post-deployment Software Debloating
- RAZOR: A Framework for Post-deployment Software Debloating 引用了 Debloating Software through Piece-Wise Compilation and Loading
- RAZOR: A Framework for Post-deployment Software Debloating 引用了 Effective Program Debloating via Reinforcement Learning
- Studying and Understanding the Tradeoffs Between Generality and Reduction in Software Debloating 引用了 A longitudinal analysis of bloated Java dependencies
- Studying and Understanding the Tradeoffs Between Generality and Reduction in Software Debloating 引用了 Debloating Software through Piece-Wise Compilation and Loading
- Studying and Understanding the Tradeoffs Between Generality and Reduction in Software Debloating 引用了 RAZOR: A Framework for Post-deployment Software Debloating
- Studying and Understanding the Tradeoffs Between Generality and Reduction in Software Debloating 引用了 Effective Program Debloating via Reinforcement Learning
- A Broad Comparative Evaluation of Software Debloating Tools 引用了 Debloating Software through Piece-Wise Compilation and Loading
- A Broad Comparative Evaluation of Software Debloating Tools 引用了 RAZOR: A Framework for Post-deployment Software Debloating
- A Broad Comparative Evaluation of Software Debloating Tools 引用了 Studying and Understanding the Tradeoffs Between Generality and Reduction in Software Debloating
- A Broad Comparative Evaluation of Software Debloating Tools 引用了 Effective Program Debloating via Reinforcement Learning
- Effective Program Debloating via Reinforcement Learning 引用了 Debloating Software through Piece-Wise Compilation and Loading
引用它的顶会 Paper11
- A longitudinal analysis of bloated Java dependenciesCésar Soto-Valero, Thomas Durieux, Benoit BaudryFSE 2021 · 47 次引用
- BigFuzz: Efficient Fuzz Testing for Data Analytics Using Framework AbstractionQian Zhang, Jiyuan Wang, Muhammad Ali Gulzar, Rohan Padhye 等ASE 2020 · 27 次引用
- Logical bytecode reductionChristian Gram Kalhauge, Jens PalsbergPLDI 2021 · 16 次引用
- A Broad Comparative Evaluation of Software Debloating ToolsMichael D. Brown, Adam Meily, Brian Fairservice, Akshay Sood 等USENIX Security 2024 · 16 次引用
- Studying and Understanding the Tradeoffs Between Generality and Reduction in Software DebloatingQi Xin, Qirun Zhang, Alessandro OrsoASE 2022 · 15 次引用
它引用的 Paper4
- Effective Program Debloating via Reinforcement LearningKihong Heo, Woosuk Lee, Pardis Pashakhanloo, Mayur NaikCCS 2018 · 175 次引用
- Debloating Software through Piece-Wise Compilation and LoadingAnh Quach, Aravind Prakash, Lok-Kwong YanUSENIX Security 2018 · 153 次引用
- RAZOR: A Framework for Post-deployment Software DebloatingChenxiong Qian, Hong Hu, Mansour Alharthi, Simon Pak Ho Chung 等USENIX Security 2019 · 132 次引用
- VMHunt: A Verifiable Approach to Partially-Virtualized Binary Code SimplificationDongpeng Xu, Jiang Ming, Yu Fu, Dinghao WuCCS 2018 · 60 次引用
相关 Paper
- Subdomain-Based Generality-Aware DebloatingQi Xin, Myeongsoo Kim, Qirun Zhang, Alessandro OrsoASE 2020 · 8 次引用
- Minimalist: Semi-automated Debloating of PHP Web Applications through Static AnalysisRasoul Jahanshahi, Babak Amin Azad, Nick Nikiforakis, Manuel EgeleUSENIX Security 2023
- One Size Does Fit All: Kernel-Assisted Fine-Grained Debloating and Layout Randomization for Shared LibrariesZiyi Lin, Haoyu Ma, Kexin Liu, Bowen Li 等ICSE 2026
- MiniMon: Minimizing Android Applications with Intelligent Monitoring-Based DebloatingJiakun Liu, Zicheng Zhang, Xing Hu, Ferdian Thung 等ICSE 2024 · 2 次引用
- Bloat beneath Python's Scales: A Fine-Grained Inter-Project Dependency AnalysisGeorgios-Petros Drosos, Thodoris Sotiropoulos, Diomidis Spinellis, Dimitris MitropoulosFSE 2024 · 6 次引用
