arrow
Return

Mitigating Debugger-based Attacks to Java Applications with Self-debugging

delete2024-04-18
delete0
delete
OA
AI
D
Davide Pizzolotto *
S
Stefano Berlato
M
Mariano Ceccato
DOI:10.1145/3631971delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
Java bytecode is a quite high-level language and, as such, it is fairly easy to analyze and decompile with malicious intents, e.g., to tamper with code and skip license checks. Code obfuscation was a first attempt to mitigate malicious reverse-engineering based on static analysis. However, obfuscated code can still be dynamically analyzed with standard debuggers to perform step-wise execution and to inspect (or change) memory content at important execution points, e.g., to alter the verdict of license validity checks. Although some approaches have been proposed to mitigate debugger-based attacks, they are only applicable to binary compiled code and none address the challenge of protecting Java bytecode. In this article, we propose a novel approach to protect Java bytecode from malicious debugging. Our approach is based on automated program transformation to manipulate Java bytecode and split it into two binary processes that debug each other (i.e., a self-debugging solution). In fact, when the debugging interface is already engaged, an additional malicious debugger cannot attach. To be resilient against typical attacks, our approach adopts a series of technical solutions, e.g., an encoded channel is shared by the two processes to avoid leaking information, an authentication protocol is established to avoid Man-in-the-middle attacks, and the computation is spread between the two processes to prevent the attacker to replace or terminate either of them. We test our solution on 18 real-world Java applications, showing that our approach can effectively block the most common debugging tasks (either with the Java debugger or the GNU debugger) while preserving the functional correctness of the protected programs. While the final decision on when to activate this protection is still up to the developers, the observed performance overhead was acceptable for common desktop application domains.
Keywords:
Anti-debugging
maliciuos reverse engineering
tampering attacks
man at the end attacks
errShare
errSave
A Method for Detecting Data Tampering Attacks Based on Prior Information
err2026-05-19
err0
errOAAI
errZhou, Zimeng; Zhang, Qingxiang; Hu, Yanpeng; Jing, Fengwei; Guo, Jin
errShare
errSave
A review of amplification-based distributed denial of service attacks and their mitigation
err2021-10-01
err12
PREAI
errIsmail, Salih; Hassen, Hani Ragab; Just, Mike; Zantout, Hind
errShare
errSave
A reversible sketch-based method for detecting and mitigating amplification attacks
err2019-09-01
err22
errOAAI
errJing, Xuyang; Zhao, Jingjing; Zheng, Qinghua; Yan, Zheng; Pedrycz, Witold
errShare
errSave
Salaxy: Enabling USB Debugging Mode Automatically to Control Android Devices
err2019-01-01
err0
errOAAI
errLu, Hui; Helu, Xiaohan; Jin, Chengjie; Sun, Yanbin; Zhang, Man; Tian, Zhihong
errShare
errSave

Journal

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
Papers:
1.4K
Citations:
4.5K

Organization

O
osaka university
Scholars:
775
Papers: 267
Citations: 1.6W
U
university of verona
Scholars:
742
Papers: 278
Citations: 6.9K
U
University of Genoa
Scholars:
903
Papers: 350
Citations: 9.5K
researcher View more organizations
Cited Papers

Cited Papers

Heart transplantation in Friedreich’s ataxia and other neuromuscular diseases
err2001-02-01
err0
PREAI
errJ. Segovia; L. Alonso-Pulpon; R. Burgos; L. Silva; S. Serrano; E. Castedo; J. Jiménez; R. Fuentes; A. Cañas; J. Ugarte
errShare
errSave
Neoplasia in solid organ transplant recipients: single-center experience
err2004-04-01
err0
PREAI
errA Alvarez; B Sanroman; E Carro; E Vazquez-Martul
errShare
errSave
Climate Change, Heat Stress, and U.S. Dairy Production
err2014-01-01
err0
errOAAI
errNigel Key; Stacy Sneeringer; David Marquardt
errShare
errSave
Contracted form of endocardial fibroelastosis: Angiographic diagnosis and necropsy confirmation
err1983-10-01
err0
PREAI
errLeonard C. Blieden; Adam Schneeweiss; Victor Deutsch; Henry N. Neufeld
errShare
errSave
Familial occurrence of the contracted form of endocardial fibroelastosis
err1970-08-01
err0
PREAI
errDavid E. Fixler; Roger B. Cole; Milton H. Paul; Maurice Lev; Donald A. Girod
errShare
errSave
Endocardial fibroelastosis and hypoplasia of the left ventricle in neonates without significant aortic stenosis.
err1984-05-01
err0
errOAAI
errP C Ursell; C A Neill; R H Anderson; S Y Ho; A E Becker; L M Gerlis
errShare
errSave
researcher View more