arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1701.05681cs.LGcs.CR
收藏

Git Blame Who?小的、不完整的Source Code片段的文体作者归属

Git Blame Who?: Stylistic Authorship Attribution of Small, Incomplete Source Code Fragments

George Washington University(乔治华盛顿大学);Sophos(索福斯);ICF International(ICF国际);United States Army Research Laboratory(美国陆军研究实验室);New York University(纽约大学);Drexel University(德雷塞尔大学)

Edwin Dauber, Aylin Caliskan, Richard Harang, Gregory Shearer, Michael Weisman, Frederica Nelson, Rachel Greenstadt

摘要:

程序作者归属对希望匿名贡献代码的程序员的隐私有影响。虽然以前的工作已经表明,单独创作的完整文件可以被归因,但我们在这里首次展示了属于开源贡献者的帐户,其中包含简短,不完整且通常不可编译的片段也可以有效地归因。我们提出了一种技术,作者归属的贡献者帐户包含小的源代码样本,如那些可以从版本控制系统或其他直接比较的顺序版本。我们表明,虽然以前的方法应用到个人小的源代码样本产生约73%的准确度为106程序员作为基线,通过集合和平均的分类概率足够大的一组样本属于同一作者,我们实现了99%的准确度分配给正确的作者的一组样本。通过这些结果,我们证明了归因是对程序员隐私的一个重要威胁,即使在现实世界的协作环境中,如GitHub。此外,我们建议使用校准曲线来识别未知的和以前从未遇到过的作者在开放世界设置的样品。我们表明,我们也可以使用这些校准曲线的情况下,我们没有链接信息,从而被迫直接对单个样本进行分类。这是因为校准曲线使我们能够识别哪些样品更有可能被正确归因。使用这样的曲线可以帮助分析师选择一个截止点,这将防止大多数错误分类,代价是导致拒绝一些更可疑的正确归因。

英文摘要:

Program authorship attribution has implications for the privacy of programmers who wish to contribute code anonymously. While previous work has shown that complete files that are individually authored can be attributed, we show here for the first time that accounts belonging to open source contributors containing short, incomplete, and typically uncompilable fragments can also be effectively attributed. We propose a technique for authorship attribution of contributor accounts containing small source code samples, such as those that can be obtained from version control systems or other direct comparison of sequential versions. We show that while application of previous methods to individual small source code samples yields an accuracy of about 73% for 106 programmers as a baseline, by ensembling and averaging the classification probabilities of a sufficiently large set of samples belonging to the same author we achieve 99% accuracy for assigning the set of samples to the correct author. Through these results, we demonstrate that attribution is an important threat to privacy for programmers even in real-world collaborative environments such as GitHub. Additionally, we propose the use of calibration curves to identify samples by unknown and previously unencountered authors in the open world setting. We show that we can also use these calibration curves in the case that we do not have linking information and thus are forced to classify individual samples directly. This is because the calibration curves allow us to identify which samples are more likely to have been correctly attributed. Using such a curve can help an analyst choose a cut-off point which will prevent most misclassifications, at the cost of causing the rejection of some of the more dubious correct attributions.

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

↑