arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2202.03755cs.SEcs.LG
收藏

我们可以通过自然语言生成Shellcode吗?实证研究

Can We Generate Shellcodes via Natural Language? An Empirical Study

University of Naples Federico II(那不勒斯费德里科二世大学);University of North Carolina at Charlotte(北卡罗来纳大学夏洛特分校)

Pietro Liguori, Erfan Al-Hossami, Domenico Cotroneo, Roberto Natella, Bojan Cukic, Samira Shaikh

摘要:

编写软件漏洞是攻击性安全分析人员调查和防止攻击的重要实践。特别是,shellcode是特别耗时和技术挑战,因为它们是用汇编语言编写的。在这项工作中,我们解决了自动生成shellcode的任务,纯粹从自然语言的描述开始,提出了一种基于神经机器翻译(NMT)的方法。然后,我们使用一个新的数据集(Shellcode_IA32),其中包括3,200个汇编代码片段的真实Linux/x86外壳代码从公共数据库,使用自然语言注释的实证研究。此外,我们提出了新的指标来评估NMT在生成shellcodes的准确性。实证分析表明,NMT可以生成汇编代码片段的自然语言具有较高的准确性,在许多情况下,可以生成完整的shellcode没有错误。

英文摘要:

Writing software exploits is an important practice for offensive security analysts to investigate and prevent attacks. In particular, shellcodes are especially time-consuming and a technical challenge, as they are written in assembly language. In this work, we address the task of automatically generating shellcodes, starting purely from descriptions in natural language, by proposing an approach based on Neural Machine Translation (NMT). We then present an empirical study using a novel dataset (Shellcode_IA32), which consists of 3,200 assembly code snippets of real Linux/x86 shellcodes from public databases, annotated using natural language. Moreover, we propose novel metrics to evaluate the accuracy of NMT at generating shellcodes. The empirical analysis shows that NMT can generate assembly code snippets from the natural language with high accuracy and that in many cases can generate entire shellcodes with no errors.

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

↑