Minimalist: Semi-automated Debloating of PHP Web Applications through Static Analysis
Rasoul Jahanshahi, Babak Amin Azad, Nick Nikiforakis, Manuel Egele
摘要
As web applications grow more complicated and rely on third-party libraries to deliver new features to their users, they become bloated with unnecessary code. This unnecessary code increases a web application's attack surface, which can be exploited to steal user data and compromise the underlying web server. One approach to deal with bloated code is the process of selectively removing features that users do not require -debloating. In this paper, we identify the current challenges with debloating web applications and propose a semi-automated static debloating scheme. We implement a prototype of our proposed method, called Minimalist that generates a call-graph for a given PHP web application. Minimalist performs a reachability analysis for the features users require and removes unreachable functions in the analyzed web application. Compared to prior work, Minimalist debloats web applications without relying on heavy runtime instrumentation. Furthermore, the call-graph generated by Minimalist can be reused (in combination with web server logs) to debloat different installations of the same web application. Due to the inherent complexity and highly dynamic nature of the PHP language, Minimalist cannot guarantee the soundness of its call-graph analysis. However, Minimalist follows a best-effort approach to model the majority of PHP features used by popular web applications, such as WordPress, phpMyAdmin, and others. We evaluated Minimalist on 12 versions of four popular PHP web applications with 45 recent security vulnerabilities. We show that Minimalist reduces the size of web applications in our dataset on average by 18% and removes 38% of known vulnerabilities. Our results demonstrate that the principled debloating of web applications can lead to significant security gains without relying on instrumentation mechanisms that degrade the performance of the server.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- CoinDef: A Comprehensive Code Injection Defense for the Electron Framework 引用了 Less is More: Quantifying the Security Benefits of Debloating Web Applications
- QUACK: Hindering Deserialization Attacks via Static Duck Typing 引用了 Less is More: Quantifying the Security Benefits of Debloating Web Applications
- Fuzzing the PHP Interpreter via Dataflow Fusion 引用了 Less is More: Quantifying the Security Benefits of Debloating Web Applications
- Less is More: Quantifying the Security Benefits of Debloating Web Applications 引用了 Most Websites Don't Need to Vibrate: A Cost-Benefit Approach to Improving Browser Security
- Less is More: Quantifying the Security Benefits of Debloating Web Applications 引用了 Debloating Software through Piece-Wise Compilation and Loading
- Less is More: Quantifying the Security Benefits of Debloating Web Applications 引用了 Effective Program Debloating via Reinforcement Learning
- SHARD: Fine-Grained Kernel Specialization with Context-Aware Hardening 引用了 Less is More: Quantifying the Security Benefits of Debloating Web Applications
- SHARD: Fine-Grained Kernel Specialization with Context-Aware Hardening 引用了 Debloating Software through Piece-Wise Compilation and Loading
- SHARD: Fine-Grained Kernel Specialization with Context-Aware Hardening 引用了 Effective Program Debloating via Reinforcement Learning
- A Broad Comparative Evaluation of Software Debloating Tools 引用了 Less is More: Quantifying the Security Benefits of Debloating Web Applications
- A Broad Comparative Evaluation of Software Debloating Tools 引用了 Debloating Software through Piece-Wise Compilation and Loading
- 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
引用它的顶会 Paper5
- A Broad Comparative Evaluation of Software Debloating ToolsMichael D. Brown, Adam Meily, Brian Fairservice, Akshay Sood 等USENIX Security 2024 · 16 次引用
- CoinDef: A Comprehensive Code Injection Defense for the Electron FrameworkZheng Yang, Simon P. Chung, Jizhou Chen, Runze Zhang 等S&P 2025
- QUACK: Hindering Deserialization Attacks via Static Duck TypingYaniv David, Neophytos Christou, Andreas D. Kellas, Vasileios P. Kemerlis 等NDSS 2024
- Fuzzing the PHP Interpreter via Dataflow FusionYuancheng Jiang, Chuqi Zhang, Bonan Ruan, Jiahao Liu 等USENIX Security 2025
- PyXray: Practical Cross-Language Call Graph Construction through Object Layout AnalysisGeorgios Alexopoulos, Thodoris Sotiropoulos, Georgios Gousios, Zhendong Su 等ICSE 2026
它引用的 Paper8
- 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 次引用
- Less is More: Quantifying the Security Benefits of Debloating Web ApplicationsBabak Amin Azad, Pierre Laperdrix, Nick NikiforakisUSENIX Security 2019 · 100 次引用
- Most Websites Don't Need to Vibrate: A Cost-Benefit Approach to Improving Browser SecurityPeter Snyder, Cynthia Bagier Taylor, Chris KanichCCS 2017 · 75 次引用
- SHARD: Fine-Grained Kernel Specialization with Context-Aware HardeningMuhammad Abubakar, Adil Ahmad, Pedro Fonseca, Dongyan XuUSENIX Security 2021 · 47 次引用
相关 Paper
- AnimateDead: Debloating Web Applications Using Concolic ExecutionBabak Amin Azad, Rasoul Jahanshahi, Chris Tsoukaladelis, Manuel Egele 等USENIX Security 2023
- Slimium: Debloating the Chromium Browser with Feature SubsettingChenxiong Qian, Hyungjoon Koo, ChangSeok Oh, Taesoo Kim 等CCS 2020 · 35 次引用
- RAZOR: A Framework for Post-deployment Software DebloatingChenxiong Qian, Hong Hu, Mansour Alharthi, Simon Pak Ho Chung 等USENIX Security 2019 · 132 次引用
- MiniMon: Minimizing Android Applications with Intelligent Monitoring-Based DebloatingJiakun Liu, Zicheng Zhang, Xing Hu, Ferdian Thung 等ICSE 2024 · 2 次引用
- JShrink: in-depth investigation into debloating modern Java applicationsBobby R. Bruce, Tianyi Zhang, Jaspreet Arora, Guoqing Harry Xu 等FSE 2020 · 46 次引用
