arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.05642cs.SEcs.CRcs.LG
收藏

ConFL:面向机器学习框架的约束引导模糊测试

ConFL: Constraint-guided Fuzzing for Machine Learning Framework

AI Security Lab(360人工智能安全实验室);Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所)

Zhao Liu, Quanchen Zou, Tian Yu, Xuan Wang, Guozhu Meng, Kai Chen, Deyue Zhang

AI总结:

本文提出 ConFL,一种从 ML 框架内核代码自动提取约束并引导生成有效输入的模糊测试方法,结合分组技术提升效率,在 TensorFlow 等框架中发现多个已获 CVE 编号的漏洞。

摘要:

随着机器学习在社会各领域的自动化决策中日益突出,人们对机器学习(ML)框架中潜在漏洞的担忧也有所增加。然而,由于这些框架的实现十分复杂,测试它们是一项艰巨任务。以往关于 ML 框架模糊测试的研究难以有效提取输入约束并生成有效输入,导致为深入执行或揭示目标崩溃而需要更长的模糊测试时间。本文提出 ConFL,这是一种面向 ML 框架的约束引导模糊测试器。ConFL 无需任何先验知识即可从内核代码中自动提取约束。在这些约束的引导下,ConFL 能够生成可通过验证并探索内核代码更深层路径的有效输入。此外,我们设计了一种分组技术以提高模糊测试效率。为证明 ConFL 的有效性,我们主要在 TensorFlow 上评估其性能。我们发现,与最先进(SOTA)模糊测试器相比,ConFL 能够覆盖更多代码行,并生成更多有效输入。更重要的是,ConFL 在不同版本的 TensorFlow 中发现了 84 个此前未知的漏洞,所有漏洞均被分配了新的 CVE 编号,其中 3 个为严重级别,13 个为高危级别。我们还将 ConFL 扩展用于测试 PyTorch 和 Paddle,迄今已发现 7 个漏洞。

英文摘要:

As machine learning gains prominence in various sectors of society for automated decision-making, concerns have risen regarding potential vulnerabilities in machine learning (ML) frameworks. Nevertheless, testing these frameworks is a daunting task due to their intricate implementation. Previous research on fuzzing ML frameworks has struggled to effectively extract input constraints and generate valid inputs, leading to extended fuzzing durations for deep execution or revealing the target crash. In this paper, we propose ConFL, a constraint-guided fuzzer for ML frameworks. ConFL automatically extracting constraints from kernel codes without the need for any prior knowledge. Guided by the constraints, ConFL is able to generate valid inputs that can pass the verification and explore deeper paths of kernel codes. In addition, we design a grouping technique to boost the fuzzing efficiency. To demonstrate the effectiveness of ConFL, we evaluated its performance mainly on Tensorflow. We find that ConFL is able to cover more code lines, and generate more valid inputs than state-of-the-art (SOTA) fuzzers. More importantly, ConFL found 84 previously unknown vulnerabilities in different versions of Tensorflow, all of which were assigned with new CVE ids, of which 3 were critical-severity and 13 were high-severity. We also extended ConFL to test PyTorch and Paddle, 7 vulnerabilities are found to date.

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

↑