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

使用优化混淆生成对抗性计算机程序

Generating Adversarial Computer Programs using Optimized Obfuscations

CSAIL, MIT(麻省理工学院计算机科学与人工智能实验室);MIT-IBM Watson AI Lab(麻省理工学院-IBM沃森人工智能实验室);Michigan State University(密歇根州立大学)

Shashank Srikant, Sijia Liu, Tamara Mitrovska, Shiyu Chang, Quanfu Fan, Gaoyuan Zhang, Una-May O'Reilly

摘要:

学习和预测计算机程序属性的机器学习(ML)模型正越来越多地被采用和部署。这些模型在自动完成代码、总结大型程序以及检测程序中的错误和恶意软件等应用中取得了成功。在这项工作中,我们研究了对抗干扰计算机程序以欺骗这种学习模型的原则性方法,从而确定其对抗鲁棒性。我们使用程序混淆,这通常被用来避免尝试在逆向工程程序,作为对抗性扰动。这些扰动以不改变程序功能的方式修改程序,但可以在做出决定时欺骗ML模型。我们为对抗程序提供了一个通用的公式,允许对任何语言的程序应用多个混淆转换。我们开发了一阶优化算法,以有效地确定两个关键方面-程序的哪些部分进行转换,以及使用什么转换。我们表明,重要的是要优化这两个方面,以产生最好的adversarially扰动程序。由于这个问题的离散性,我们还建议使用随机平滑来改善攻击损失情况,以简化优化。我们评估我们的工作在Python和Java程序的问题上的程序摘要。我们表明,我们最好的攻击建议实现了$52\%$的改进超过一个国家的最先进的攻击生成方法的程序上训练的seq 2seq模型。我们进一步表明,我们的配方是更好的训练模型,是强大的对抗攻击。

英文摘要:

Machine learning (ML) models that learn and predict properties of computer programs are increasingly being adopted and deployed. These models have demonstrated success in applications such as auto-completing code, summarizing large programs, and detecting bugs and malware in programs. In this work, we investigate principled ways to adversarially perturb a computer program to fool such learned models, and thus determine their adversarial robustness. We use program obfuscations, which have conventionally been used to avoid attempts at reverse engineering programs, as adversarial perturbations. These perturbations modify programs in ways that do not alter their functionality but can be crafted to deceive an ML model when making a decision. We provide a general formulation for an adversarial program that allows applying multiple obfuscation transformations to a program in any language. We develop first-order optimization algorithms to efficiently determine two key aspects -- which parts of the program to transform, and what transformations to use. We show that it is important to optimize both these aspects to generate the best adversarially perturbed program. Due to the discrete nature of this problem, we also propose using randomized smoothing to improve the attack loss landscape to ease optimization. We evaluate our work on Python and Java programs on the problem of program summarization. We show that our best attack proposal achieves a $52\%$ improvement over a state-of-the-art attack generation approach for programs trained on a seq2seq model. We further show that our formulation is better at training models that are robust to adversarial attacks.

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

↑