arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.12723cs.CRcs.AIcs.SE
收藏

面向可信机器学习框架的Python模糊测试

Python Fuzzing for Trustworthy Machine Learning Frameworks

Ivannikov Institute for System Programming of the RAS(俄罗斯科学院伊万尼科夫系统编程研究所);Lomonosov Moscow State University(莫斯科罗蒙诺索夫大学)

Ilya Yegorov, Eli Kobrin, Darya Parygina, Alexey Vishnyakov, Andrey Fedotov

AI总结:

本文提出一种基于Sydr-Fuzz工具集并集成于GitLab CI的Python动态分析流水线,通过分析攻击面并为PyTorch、TensorFlow等框架开发模糊测试目标,成功发现3个新漏洞并提出修复方案。

摘要:

确保机器学习框架的安全性和可靠性对于构建基于人工智能的可信系统至关重要。模糊测试是安全软件开发生命周期(SSDLC)中的一种流行技术,可用于开发安全且健壮的软件。PyTorch和TensorFlow等流行的机器学习框架结构复杂,由包括C/C++和Python在内的多种编程语言编写。我们提出了一种使用Sydr-Fuzz工具集的Python项目动态分析流水线。我们的流水线包括模糊测试、语料库最小化、崩溃分类和覆盖率收集。崩溃分类和严重性估计是确保最关键的漏洞得到及时处理的重要步骤。此外,所提出的流水线被集成到GitLab CI中。为了识别机器学习框架中最易受攻击的部分,我们分析了它们的潜在攻击面,并为PyTorch、TensorFlow以及h5py等相关项目开发了模糊测试目标。将我们的动态分析流水线应用于这些目标,我们能够发现3个新漏洞并提出修复方案。

英文摘要:

Ensuring the security and reliability of machine learning frameworks is crucial for building trustworthy AI-based systems. Fuzzing, a popular technique in secure software development lifecycle (SSDLC), can be used to develop secure and robust software. Popular machine learning frameworks such as PyTorch and TensorFlow are complex and written in multiple programming languages including C/C++ and Python. We propose a dynamic analysis pipeline for Python projects using the Sydr-Fuzz toolset. Our pipeline includes fuzzing, corpus minimization, crash triaging, and coverage collection. Crash triaging and severity estimation are important steps to ensure that the most critical vulnerabilities are addressed promptly. Furthermore, the proposed pipeline is integrated in GitLab CI. To identify the most vulnerable parts of the machine learning frameworks, we analyze their potential attack surfaces and develop fuzz targets for PyTorch, TensorFlow, and related projects such as h5py. Applying our dynamic analysis pipeline to these targets, we were able to discover 3 new bugs and propose fixes for them.

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

↑