信息网络安全 ›› 2018, Vol. 18 ›› Issue (9): 66-73.doi: 10.3969/j.issn.1671-1122.2018.09.011

• • 上一篇    下一篇

基于Inject和Hook的安卓终端管控技术

秦中元1, 张峻瑞1, 张群芳2, 宋志勇1   

  1. 1. 东南大学网络空间安全学院,江苏南京 210096
    2. 炮兵防空兵学院南京校区,江苏南京 211132
  • 收稿日期:2018-07-17 出版日期:2018-09-30 发布日期:2020-05-11
  • 作者简介:

    作者简介:秦中元(1974—),男,副教授,博士,主要研究方向为网络安全;张峻瑞(1993—),男,江苏,硕士研究生,主要研究方向为网络安全;张群芳(1981—),女,江苏,讲师,硕士,主要研究方向为网络安全;宋志勇(1994—),男,山东,硕士研究生,主要研究方向为网络安全。

  • 基金资助:
    国家自然科学基金[61601113]

Android Terminals Control Technology Based on Inject and Hook

Zhongyuan QIN1, Junrui ZHANG1, Qunfang ZHANG2, Zhiyong SONG1   

  1. 1. School of Cyberspace Security, Southeast University, Nanjing Jiangsu 210096, China
    2. Artillery and Air-defence Institute Nanjing Campus, Nanjing Jiangsu 211132, China
  • Received:2018-07-17 Online:2018-09-30 Published:2020-05-11

摘要:

针对安卓终端缺乏有效的软件化管控方案,文章提出了一种基于Inject和Hook的安卓终端管控技术。该技术向系统服务进程注入管控自定义代码,通过劫持进程间通信(IPC)关键函数ioctl()的地址监听服务请求数据包并进行解析,得出当前请求的服务信息,若请求的服务方法位于管控黑名单上,则对相应的请求数据包进行修改,从而实现实时管控的功能。测试结果表明,文章提出的方案可以有效实现安卓终端管控。

关键词: 安卓, 实时管控, Inject, Hook

Abstract:

In view of the lack of an effective software management and control solution for Android terminals, this paper proposes an Android terminal management and control technology based on Inject and Hook. Firstly, the custom code with the function of management and control is injected into the system service process. Current requested services can be found by hijacking the address of function ioctl(), which is a key function in inter-process communication (IPC). After that, IPC data packets can be monitored and parsed by the injected code. If the requested services are in the blacklist of control strategy, the relevant data packets are modified to realize real-time management and control. Finally, effectiveness of the technology is showed by the test results on real mobile phones.

Key words: Android, real-time management and control, Inject, Hook

中图分类号: