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

表征和理解机器学习库中的软件安全漏洞

Characterizing and Understanding Software Security Vulnerabilities in Machine Learning Libraries

Nima Shiri Harzevili, Jiho Shin, Junjie Wang, Song Wang

摘要:

机器学习(ML)库的应用在许多领域都有了巨大的增长,包括自动驾驶系统、医疗和关键行业。这些库的脆弱性导致了无法弥补的后果。然而,软件安全漏洞的特征还没有得到很好的研究。在本文中,为了弥合这一差距,我们迈出了表征和理解五个知名ML库的安全漏洞的第一步,包括Tensorflow,PyTorch,Sickit-learn,Pandas和Numpy。为此,我们总共收集了596个与安全相关的承诺,以探索五个主要因素:1)漏洞类型,2)根本原因,3)症状,4)修复模式,以及5)修复ML库中安全漏洞的工作。这项研究的结果可以帮助开发人员更好地了解不同ML库中的软件安全漏洞,并更好地了解它们的弱点。为了使我们的发现具有可操作性,我们进一步开发了DeepMut,一种自动化突变测试工具,作为我们发现的概念验证应用程序。DeepMut旨在评估ML库的现有测试套件是否足以对抗从本工作中研究的漏洞中提取的安全感知突变算子。我们在Tensorflow内核模块上应用了DeepMut,发现了超过1 k个现有测试套装没有考虑的活突变体。结果表明,我们的研究结果的有用性。

英文摘要:

The application of machine learning (ML) libraries has been tremendously increased in many domains, including autonomous driving systems, medical, and critical industries. Vulnerabilities of such libraries result in irreparable consequences. However, the characteristics of software security vulnerabilities have not been well studied. In this paper, to bridge this gap, we take the first step towards characterizing and understanding the security vulnerabilities of five well-known ML libraries, including Tensorflow, PyTorch, Sickit-learn, Pandas, and Numpy. To do so, in total, we collected 596 security-related commits to exploring five major factors: 1) vulnerability types, 2) root causes, 3) symptoms, 4) fixing patterns, and 5) fixing efforts of security vulnerabilities in ML libraries. The findings of this study can assist developers in having a better understanding of software security vulnerabilities across different ML libraries and gain a better insight into their weaknesses of them. To make our finding actionable, we further developed DeepMut, an automated mutation testing tool, as a proof-of-concept application of our findings. DeepMut is designed to assess the adequacy of existing test suites of ML libraries against security-aware mutation operators extracted from the vulnerabilities studied in this work. We applied DeepMut on the Tensorflow kernel module and found more than 1k alive mutants not considered by the existing test suits. The results demonstrate the usefulness of our findings.

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

↑