arrow
返回

Reverse Engineering of Obfuscated Lua Bytecode via Interpreter Semantics Testing

delete2023-01-01
delete2
PRE
AI
C
Chenke Luo
J
Jiang Ming
傅
傅建明 (Jianming Fu) *
G
Guojun Peng
Z
Zhetao Li
DOI:10.1109/TIFS.2023.3289254delete
delete原文链接
delete分享
delete收藏
摘要

摘要

En 中文
As an efficient and multi-platform scripting language, Lua is gaining increasing popularity in the industry. Unfortunately, Lua's unique advantages also catch cybercriminals' attention. A growing number of IoT malware authors switch to Lua for malicious payload development and then distribute malware in bytecode form. To impede malware code analysis, malware authors obfuscate standard Lua bytecode into a customized bytecode specification. Only the attached interpreter can execute that particular bytecode file. Rapid recovery of Lua obfuscated bytecode is essential for a swift response to new malware threats. However, existing generic code deobfuscation approaches cannot keep up with the pace of emerging threats. In this paper, we present a novel reverse engineering technique, called interpreter semantics testing. Given a customized interpreter used to execute obfuscated Lua bytecode, we construct a set of LuaGadgets that can adapt to the customized interpreter. Each LuaGadget contains a carefully chosen opcode sequence to fulfill an observable calculation-it is designed to test one or two particular opcodes at a time. Next, we mutate unknown opcode values to generate a bunch of test cases and run them using the customized interpreter; we can observe the expected result only when the mutation hits the opcode's right value. We perform test case prioritization to cost-effectively recover the semantics of all obfuscated opcodes. Our approach makes no assumptions about the interpreter's structure and is free from analyzing the numerous execution traces of opcode handlers. We have evaluated our tool, LuaHunt, with Lua malware variants and real-world applications. LuaHunt is able to recover the obfuscated bytecode's semantics within 90 seconds for each test case, and all of our deobfuscation results can pass the correctness testing. The encouraging results demonstrate that LuaHunt is a promising tool to lighten the burden of security analysts.
Keyword:
Malware
Codes
Semantics
Testing
Virtualization
Standards
Source coding
Malware analysis
bytecode obfsucation
deobfuscation
Lua
interpreter semantics testing
Covert Computation Hiding code in code through compile-time obfuscation隐蔽计算通过编译时混淆将代码隐藏在代码中
err2014-05-01
err13
PREAI
errSchrittwieser, Sebastian; Katzenbeisser, Stefan; Kieseberg, Peter; Huber, Markus; Leithner, Manuel; Mulazzani, Martin; Weippl, Edgar
err分享
err收藏
An alternative to code comment generation? Generating comment from bytecode代码注释生成的替代方法?从字节码生成注释
err2025-03-01
err0
PREAI
errChen, Xiangping; Chen, Junqi; Lian, Zhilu; Huang, Yuan; Zhou, Xiaocong; Wu, Yunzhi; Zheng, Zibin
err分享
err收藏
Semantics-aware obfuscation scheme prediction for binary语义感知的二进制混淆方案预测
err2020-12-01
err6
errOAAI
errZhao, Yujie; Tang, Zhanyong; Ye, Guixin; Peng, Dongxu; Fang, Dingyi; Chen, Xiaojiang; Wang, Zheng
err分享
err收藏

期刊

IEEE Transactions on Information Forensics and Security 封面图
IEEE Transactions on Information Forensics and Security
IF:
8
论文数:
5.5K
被引数:
3.0W

机构

T
Tulane University
学者数:
491
论文数: 221
被引数: 5.9K
暨南大学 封面图
暨南大学
学者数:
3.2K
论文数: 963
被引数: 2.0W
武汉大学 封面图
武汉大学
学者数:
7.3K
论文数: 2.2K
被引数: 4.9W
学者 查看更多机构
引用论文

引用论文

A short history of auxin-binding proteins
err2002-01-01
err0
PREAI
errRichard M. Napier; Karine M. David; Catherine Perrot-Rechenmann
err分享
err收藏
The sense of taste.
err
IF0
err1917-01-01
err0
PREAI
errH. L. Hollingworth; A. T. Poffenberger
err分享
err收藏
err分享
err收藏
err分享
err收藏
The Common Representative Intermediates Mechanism Version 2 in the United Kingdom Chemistry and Aerosols Model
err2021-05-07
err0
errOAAI
errS. Archer‐Nicholls; N. L. Abraham; Y. M. Shin; J. Weber; M. R. Russo; D. Lowe; S. R. Utembe; F. M. O'Connor; B. Kerridge; B. Latter; R. Siddans; M. Jenkin; O. Wild; A. T. Archibald
err分享
err收藏
Developmental constraint shaped genome evolution and erythrocyte loss in Antarctic fishes following paleoclimate change
err2020-10-27
err0
errOAAI
errJacob M. Daane; Juliette Auvinet; Alicia Stoebenau; Donald Yergeau; Matthew P. Harris; H. William Detrich
err分享
err收藏
Binary-Code Obfuscations in Prevalent Packer Tools
err2013-07-11
err93
errOAAI
errRoundy, Kevin A.; Miller, Barton P.
err分享
err收藏
学者 查看更多内容