MiniLib: A flow analysis–based approach for attack surface reduction through software debloating

TitleMiniLib: A flow analysis–based approach for attack surface reduction through software debloating
Publication TypeConference Paper
Year of Publication2025
AuthorsKopanias L, Sotiropoulos P, Kolokotronis N, Vassilakis C
Conference NameProceedings of the 2025 IEEE International Conference on Cyber Security and Resilience
Keywords6G, Attack surface, Flow-based analysis, Java bytecode, O-RAN, security, Software debloating, Vulnerabilities
Abstract

Software applications typically use libraries for the implementation of commonly used tasks. Each library encompasses an extensive collection of functionalities that cover a specific task area, such as interfacing with a database. However, while applications typically use a small subset of these functionalities, the unused ones are also bundled into the final distribution, due to the fact that the libraries are loaded and linked as indivisible objects. The presence of unused functionalities in the executable program increases its attack surface, since attackers may invoke code in these functionalities or exploit their vulnerabilities, using techniques such as stack smashing or buffer overflow. In this paper, we present MiniLib, an approach that removes from the final executable any unused functionalities that may be present in the libraries, reducing attack surface and thus enhancing security. The efficiency of MiniLib is validated through its application on applications drawn from the O-RAN 6G framework.