ASC-Hook: fast and transparent system call hook for Arm

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Shen, Yang, Xie, Min, Zhang, Wenzhe, Wu, Tao
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866913906026348544
author Shen, Yang
Xie, Min
Zhang, Wenzhe
Wu, Tao
author_facet Shen, Yang
Xie, Min
Zhang, Wenzhe
Wu, Tao
contents Intercepting system calls is crucial for tools that aim to modify or monitor application behavior. However, existing system call interception tools on the ARM platform still suffer from limitations in terms of performance and completeness. This paper presents an efficient and comprehensive binary rewriting framework, ASC-Hook, specifically designed for intercepting system calls on the ARM platform. ASC-Hook addresses two key challenges on the ARM architecture: the misalignment of the target address caused by directly replacing the SVC instruction with br x8, and the return to the original control flow after system call interception. This is achieved through a hybrid replacement strategy and our specially designed trampoline mechanism. By implementing multiple completeness strategies specifically for system calls, we ensured comprehensive and thorough interception. Experimental results show that ASC-Hook reduces overhead to at least 1/29 of that of existing system call interception tools. We conducted extensive performance evaluations of ASC-Hook, and the average performance loss for system call-intensive applications is 3.7\% .
format Preprint
id arxiv_https___arxiv_org_abs_2412_05784
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle ASC-Hook: fast and transparent system call hook for Arm
Shen, Yang
Xie, Min
Zhang, Wenzhe
Wu, Tao
Hardware Architecture
Operating Systems
Performance
Programming Languages
Intercepting system calls is crucial for tools that aim to modify or monitor application behavior. However, existing system call interception tools on the ARM platform still suffer from limitations in terms of performance and completeness. This paper presents an efficient and comprehensive binary rewriting framework, ASC-Hook, specifically designed for intercepting system calls on the ARM platform. ASC-Hook addresses two key challenges on the ARM architecture: the misalignment of the target address caused by directly replacing the SVC instruction with br x8, and the return to the original control flow after system call interception. This is achieved through a hybrid replacement strategy and our specially designed trampoline mechanism. By implementing multiple completeness strategies specifically for system calls, we ensured comprehensive and thorough interception. Experimental results show that ASC-Hook reduces overhead to at least 1/29 of that of existing system call interception tools. We conducted extensive performance evaluations of ASC-Hook, and the average performance loss for system call-intensive applications is 3.7\% .
title ASC-Hook: fast and transparent system call hook for Arm
topic Hardware Architecture
Operating Systems
Performance
Programming Languages
url https://arxiv.org/abs/2412.05784