Gupacker: Generalized Unpacking Framework for Android Malware
Android malware authors often use packers to evade analysis. Although many unpacking tools have been proposed, they face two significant challenges: 1) They are easily impeded by anti-analysis techniques employed by packers, preventing efficient collection of hidden Dex data. 2) They are typically designed to unpack a specific packer and cannot handle malware packed with mixed packers. Consequently, many packed malware samples evade detection. To bridge this gap, we propose Gupacker, a novel generalized unpacking framework. Gupacker offers a generic solution for first-generation holistic packer by customizing the Android system source code. It identifies the type of packer and selects an appropriate unpacking function, constructs a deeper active call chain to achieve generic unpacking of second-generation function extraction packers, and uses <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">JNI</i> function and instruction monitoring to handle third-generation virtual obfuscation packer. On this basis, we counteract a diverse array of anti-analysis techniques. We conduct extensive experiments on 5K packed Android malware samples, comparing Gupacker with 2 commercial and 4 state-of-the-art academic unpacking tools. The results demonstrate that Gupacker significantly improves the efficiency of Android malware unpacking with acceptable system overhead. We analyze real packed applications based on Gupacker and found several are second-packed by attackers, including WPS for Android, with tens of millions of users. We receive and responsibly report 13 0day vulnerabilities and also assist in the remediation of all vulnerabilities.
Authors
- Qingyu Hou (ORCID: https://orcid.org/0000-0001-8521-4734)
- Hao Ren (ORCID: https://orcid.org/0000-0001-7909-3753)
- Xingshu Chen (ORCID: https://orcid.org/0000-0002-8705-2617)
- Changxiang Shen (ORCID: https://orcid.org/0009-0007-7840-0337)
- Hongwei Li (ORCID: https://orcid.org/0000-0002-1961-7946)
- Meng Li (ORCID: https://orcid.org/0000-0003-3553-0813)
- Tao Zheng (ORCID: https://orcid.org/0000-0001-7177-3367)
Institutions
- Ministry of Education of the People's Republic of China (CN)
- Anhui University (CN)
- University of Electronic Science and Technology of China (CN)
- Hefei University of Technology (CN)
- Sichuan University (CN)
Publication Details
- Journal
- IEEE Transactions on Information Forensics and Security
- Published
- 2025-01-01
- DOI
- https://doi.org/10.1109/tifs.2025.3558592
- Primary Topic
- Advanced Malware Detection Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China
- Fundamental Research Funds for the Central Universities