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

安全实施的众包知识有多可靠?

How Reliable is the Crowdsourced Knowledge of Security Implementation?

Mengsu Chen, Felix Fischer, Na Meng, Xiaoyin Wang, Jens Grossklags

摘要:

Stack Overflow(SO)是最受欢迎的在线问答网站,供开发人员分享他们解决编程问题的专业知识。对于某些问题,如果有多个答案,开发人员可能会采用已接受的答案、来自声誉较高的人的答案或经常建议的答案。然而,研究人员最近在流行的SO答案中发现了可利用的安全漏洞。这一观察启发我们探索以下问题:我们可以在多大程度上信任SO上的安全实现建议?如果建议的答案是脆弱的,开发人员可以依靠社区的动态来推断漏洞并识别安全的对应物吗?为了回答这些非常重要的问题,我们通过对比安全和不安全的建议与社区给出的内容评估对SO帖子进行了研究。我们研究了SO激励机制是否能有效地提高分布式代码的安全性能。此外,我们还跟踪了重复的答案,以评估社区行为是否有助于传播安全和不安全的代码建议。我们编译了953组不同的类似的安全相关代码示例,并标记了它们的安全性,识别出785个安全的答案帖子和644个不安全的答案帖子。与安全建议相比,不安全建议的浏览量更高(36,508 vs. 18,713),得分更高(14 vs. 5),平均重复次数明显更多(3.8 vs. 3.0)。34%的可信用户发布的帖子不安全。我们的研究结果表明,SO上有很多不安全的片段,而社区给出的反馈不允许区分安全和不安全的选择。此外,信誉机制无法指示关于安全问题的值得信赖的用户,最终使其他用户独自徘徊在软件安全雷区。

英文摘要:

Stack Overflow (SO) is the most popular online Q&A site for developers to share their expertise in solving programming issues. Given multiple answers to certain questions, developers may take the accepted answer, the answer from a person with high reputation, or the one frequently suggested. However, researchers recently observed exploitable security vulnerabilities in popular SO answers. This observation inspires us to explore the following questions: How much can we trust the security implementation suggestions on SO? If suggested answers are vulnerable, can developers rely on the community's dynamics to infer the vulnerability and identify a secure counterpart? To answer these highly important questions, we conducted a study on SO posts by contrasting secure and insecure advices with the community-given content evaluation. We investigated whether SO incentive mechanism is effective in improving security properties of distributed code examples. Moreover, we also traced duplicated answers to assess whether the community behavior facilitates propagation of secure and insecure code suggestions. We compiled 953 different groups of similar security-related code examples and labeled their security, identifying 785 secure answer posts and 644 insecure ones. Compared with secure suggestions, insecure ones had higher view counts (36,508 vs. 18,713), received a higher score (14 vs. 5), and had significantly more duplicates (3.8 vs. 3.0) on average. 34% of the posts provided by highly reputable so-called trusted users were insecure. Our findings show that there are lots of insecure snippets on SO, while the community-given feedback does not allow differentiating secure from insecure choices. Moreover, the reputation mechanism fails in indicating trustworthy users with respect to security questions, ultimately leaving other users wandering around alone in a software security minefield.

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

↑