arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1806.05328cs.CR
收藏

o-glasses:使用1d- CNN从二进制可视化x86代码

o-glasses: Visualizing x86 Code from Binary Using a 1d-CNN

Yuhei Otsubo, Akira Otsuka, Mamoru Mimura, Takeshi Sakaki, Atsuhiro Goto

摘要:

用于定向攻击的恶意文档文件通常包含一个名为shellcode的小程序。通常很难为这些文档文件的动态分析准备一个可运行的环境,因为它们利用了特定的漏洞。在这些情况下,需要识别shellcode在每个文档文件中的位置以进行分析。如果利用代码使用可执行脚本,如JavaScript和Flash,则定位shellcode并不困难。另一方面,当shellcode不包含任何JavaScript或Flash,而只包含原生x86代码时,有时几乎不可能找到它。二进制片段分类通常用于可视化感兴趣区域的位置,并且shellcode必须包含至少一小部分x86本机代码,即使大部分代码被混淆,例如shellcode的混淆主体的解码器。在本文中,我们提出了一种新的方法,o-glasses,通过使用专门设计的一维卷积神经网络(1d-CNN)识别x86本地代码来可视化shellcode。片段大小需要与整个shellcode中x86本机代码的最小大小一样小。我们的研究结果表明,一个16-重复序列(平均约48字节)是足够的代码片段的可视化。我们的方法o-glasses(1d-CNN)优于其他方法,因为它以惊人的高F测量率(约99.95%)识别x86本机代码。

英文摘要:

Malicious document files used in targeted attacks often contain a small program called shellcode. It is often hard to prepare a runnable environment for dynamic analysis of these document files because they exploit specific vulnerabilities. In these cases, it is necessary to identify the position of the shellcode in each document file to analyze it. If the exploit code uses executable scripts such as JavaScript and Flash, it is not so hard to locate the shellcode. On the other hand, it is sometimes almost impossible to locate the shellcode when it does not contain any JavaScript or Flash but consists of native x86 code only. Binary fragment classification is often applied to visualize the location of regions of interest, and shellcode must contain at least a small fragment of x86 native code even if most of it is obfuscated, such as, a decoder for the obfuscated body of the shellcode. In this paper, we propose a novel method, o-glasses, to visualize the shellcode by recognizing the x86 native code using a specially designed one-dimensional convolutional neural network (1d-CNN). The fragment size needs to be as small as the minimum size of the x86 native code in the whole shellcode. Our results show that a 16-instruction-sequence (approximately 48 bytes on average) is sufficient for the code fragment visualization. Our method, o-glasses (1d-CNN), outperforms other methods in that it recognizes x86 native code with a surprisingly high F-measure rate (about 99.95%).

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

↑