arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1905.12386cs.LGcs.CRstat.ML
收藏

基于对抗学习的Source Code误导性作者归属

Misleading Authorship Attribution of Source Code using Adversarial Learning

Technische Universität Braunschweig(布伦瑞克工业大学)

Erwin Quiring, Alwin Maier, Konrad Rieck

摘要:

在本文中,我们提出了一种新的攻击源代码的作者归属。我们利用最近的归因方法依赖于机器学习,因此可以被源代码的对抗性示例所欺骗。我们的攻击执行了一系列语义保留代码转换,误导了基于学习的归因,但对开发人员来说似乎是合理的。该攻击是由蒙特卡罗树搜索,使我们能够在离散域的源代码操作。在204名程序员的源代码的实证评估中,我们证明了我们的攻击对最近的两种归因方法有很大的影响,其准确率从88%以上下降到1%。此外,我们表明,我们的攻击可以模仿开发人员的编码风格,具有很高的准确性,从而诱导虚假的属性。我们的结论是,目前的作者归属方法不适合实际应用,需要弹性分析技术。

英文摘要:

In this paper, we present a novel attack against authorship attribution of source code. We exploit that recent attribution methods rest on machine learning and thus can be deceived by adversarial examples of source code. Our attack performs a series of semantics-preserving code transformations that mislead learning-based attribution but appear plausible to a developer. The attack is guided by Monte-Carlo tree search that enables us to operate in the discrete domain of source code. In an empirical evaluation with source code from 204 programmers, we demonstrate that our attack has a substantial effect on two recent attribution methods, whose accuracy drops from over 88% to 1% under attack. Furthermore, we show that our attack can imitate the coding style of developers with high accuracy and thereby induce false attributions. We conclude that current approaches for authorship attribution are inappropriate for practical application and there is a need for resilient analysis techniques.

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

↑