arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1909.12626cs.FL
收藏

自修改代码的可达性分析

Reachability Analysis of Self Modifying Code

Tayssir Touili, Xin Ye

摘要:

自修改代码是在执行期间修改其自身指令的代码。它现在被广泛使用,特别是在恶意软件中,使代码难以分析和被反病毒检测。因此,分析这种自修改程序是一个很大的挑战。下推系统(PDS)是一个自然的模型,广泛用于顺序程序的分析,因为它们允许准确地建模过程调用和模仿程序的堆栈。在这项工作中,我们建议扩展下推系统模型与自修改规则。我们称之为自修改下推系统(SM-PDS)的新模型。SM-PDS是可以在执行期间修改其自身的转换集的PDS。我们展示了如何SM-PDS可以用来自然地表示自修改程序,并提供有效的算法来计算SM-PDS的向后和向前可达配置。我们在一个工具中实现了我们的技术,并取得了令人鼓舞的结果。特别是,我们成功地将我们的工具用于检测自我修改的恶意软件。

英文摘要:

A Self modifying code is code that modifies its own instructions during execution time. It is nowadays widely used, especially in malware to make the code hard to analyse and to detect by anti-viruses. Thus, the analysis of such self modifying programs is a big challenge. Pushdown systems (PDSs) is a natural model that is extensively used for the analysis of sequential programs because they allow to accurately model procedure calls and mimic the program's stack. In this work, we propose to extend the PushDown System model with self-modifying rules. We call the new model Self-Modifying PushDown System (SM-PDS). A SM-PDS is a PDS that can modify its own set of transitions during execution. We show how SM-PDSs can be used to naturally represent self-modifying programs and provide efficient algorithms to compute the backward and forward reachable configurations of SM-PDSs. We implemented our techniques in a tool and obtained encouraging results. In particular, we successfully applied our tool for the detection of self-modifying malware.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑