A virtualxposed-based inline hooking framework for android native methods

Shuo Feng, Yu an Tan, Gang Zhao, Xiaohui Kuang, Xiao Yu, Juan Wang*

*Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Hooking is an important technique for monitoring application performance and adding features to applications. Various hooking frameworks are developed to intercept events and process their own specific events. The hooking tools for Java methods are varied, however, the native hook has few methods. Besides, the commonly used Android hook frameworks cannot meet the requirement of hooking the native methods in shared libraries on non-root devices. Even some approaches are able to hook these methods, it has limitations or is complicated to implement. In the paper, a feasible hooking approach for Android native methods is proposed and implemented, which doesn’t need any modifications to both Android framework and app’s code. In this approach, the method’s reference address is modified and control flow is redirected. Beyond that, we combine this approach with VirtualXposed which aims to run it without root privileges. This hooking framework can be used to enforce security policies and monitor sensitive methods in shared objects. The evaluation of the scheme demonstrates its capability to perform hook operation without a significant runtime performance overhead on real devices and it is compatible and functional for the native hook.

Original languageEnglish
Title of host publicationSecurity and Privacy in Social Networks and Big Data - 6th International Symposium, SocialSec 2020, Proceedings
EditorsYang Xiang, Zheli Liu, Jin Li
PublisherSpringer Science and Business Media Deutschland GmbH
Pages245-253
Number of pages9
ISBN (Print)9789811590306
DOIs
Publication statusPublished - 2020
Event6th International Symposium on Security and Privacy in Social Networks and Big Data, SocialSec 2020 - Tianjin, China
Duration: 26 Sept 202027 Sept 2020

Publication series

NameCommunications in Computer and Information Science
Volume1298 CCIS
ISSN (Print)1865-0929
ISSN (Electronic)1865-0937

Conference

Conference6th International Symposium on Security and Privacy in Social Networks and Big Data, SocialSec 2020
Country/TerritoryChina
CityTianjin
Period26/09/2027/09/20

Keywords

  • Call encryption
  • ELF file format
  • Native hook
  • VirtualXposed

Fingerprint

Dive into the research topics of 'A virtualxposed-based inline hooking framework for android native methods'. Together they form a unique fingerprint.

Cite this