面向安卓热更新的dex注入漏洞的自动化检测系统

AUTOMATIC DETECTION SYSTEM FOR ANDROID DEX INJECTION VULNERABILITY CAUSED BY HOT UPDATE

  • 摘要: 安卓应用热更新推送补丁包过程中,由于没有添加数字签名,攻击者可以劫持篡改dex文件,导致dex注入,造成严重后果。针对上述问题,提出一种基于mitmproxy的自动化检测系统Homide,该系统首先利用mitmproxy获取客户端与服务端之间交互的所有数据包,同时定位dex文件,然后向dex注入代码并采用中间人攻击的方式推送给客户端执行,最后通过应用输出的日志信息来验证是否存在dex注入漏洞。针对应用市场中的513个应用,Homide成功检测出新的17个存在dex注入的应用,实验结果表明,Homide能有效检测出真实世界中因热更新导致dex注入的应用。

     

    Abstract: During the process of pushing patch packages for Android application hot updates, as no digital signature is added, attackers can hijack and tamper with the dex file, leading to dex injection with serious consequences. To address the above problems, an automatic detection system Homide based on mitmproxy is proposed. It used mitmproxy to obtain all the packets interacted between the client and the server, while locating the dex file. It injected code into the dex and pushed it to the client for execution using a man-in-the-middle attack. The log information output by the application was used to verify whether there was a dex injection vulnerability. For 513 applications in the application market, Homide successfully detected 17 new applications with dex injection. The experimental results show that Homide can effectively detect real-world applications with dex injection due to hot updates.

     

/

返回文章
返回