BPFDex: Enabling Robust Android Apps Unpacking via Android Kernel
Malware developers exploit packing techniques to protect malicious apps from analysis. These evolving techniques, coupled with diverse anti-unpacker strategies, often render current studies ineffective in unpacking Android apps. In this study, we introduce BPFDex, a novel Android unpacking framework that leverages eBPF, a kernel component of the Android system. We successfully apply eBPF’s excellent kernel observability and tracing capability to Android unpacking, both on real devices and emulators. Operating within the kernel space, BPFDex avoids drawbacks of common unpacking techniques. BPFDex monitors apps across both native and kernel layers, restores Dex data from memory, and adapts to different packing strategies according to observed packing behaviors. Furthermore, we summarize patterns in anti-unpacker behaviors among Android packers, establishing criteria to improve existing unpacking strategies. We conduct extensive experiments on BPFDex by leveraging more than 3k apps packed by over eight different packers. The results demonstrate that BPFDex successfully bypasses anti-unpacker strategies and unpacks apps packed by various packers, in contrast to other unpackers that can handle at most two packers.
Authors
- Weina Niu (ORCID: https://orcid.org/0000-0002-3235-3463)
- Mingyang Li (ORCID: https://orcid.org/0009-0008-4604-1787)
- Song Li (ORCID: https://orcid.org/0000-0002-7961-8502)
- Xiaosong Zhang (ORCID: https://orcid.org/0000-0001-9886-1412)
- Mingxue Zhang (ORCID: https://orcid.org/0000-0001-8863-8751)
- Jiacheng Gong
Institutions
- University of Electronic Science and Technology of China (CN)
- Zhejiang University (CN)
Publication Details
- Journal
- IEEE Transactions on Information Forensics and Security
- Published
- 2025-01-01
- DOI
- https://doi.org/10.1109/tifs.2025.3594559
- Primary Topic
- Advanced Malware Detection Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China
- Natural Science Foundation of Sichuan Province
- Tianjin Science and Technology Program