灰盒模糊作为一个上下文强盗问题
Greybox fuzzing as a contextual bandits problem
摘要:
灰盒模糊技术是大规模应用程序缺陷检测中最有用、最有效的技术之一。它使用最少的仪器。American Fuzzy Lop(AFL)是一种流行的基于覆盖率的进化灰盒模糊化工具。AFL在模糊测试大型应用程序和发现关键漏洞方面表现非常出色,但AFL在决定最喜欢的测试用例、在模糊测试期间跳过测试用例、为测试用例分配模糊迭代时涉及大量的推理。在这项工作中,我们的目标是在随机模糊化过程中,将模糊化迭代分配给测试用例时,替换AFL使用的逻辑。我们正式这个问题作为一个“上下文强盗问题”,我们提出了一个算法来解决这个问题。我们已经在劳联的基础上实施了我们的方法。我们通过策略梯度方法,用我们学习的模型修改AFL的策略。我们的学习算法选择的模糊迭代次数的乘数分配给一个测试用例在随机模糊,给定一个固定长度的子串的测试用例被模糊。我们用这个新的能量值模糊子串,并根据模糊产生的有趣测试用例不断更新策略。
英文摘要:
Greybox fuzzing is one of the most useful and effective techniques for the bug detection in large scale application programs. It uses minimal amount of instrumentation. American Fuzzy Lop (AFL) is a popular coverage based evolutionary greybox fuzzing tool. AFL performs extremely well in fuzz testing large applications and finding critical vulnerabilities, but AFL involves a lot of heuristics while deciding the favored test case(s), skipping test cases during fuzzing, assigning fuzzing iterations to test case(s). In this work, we aim at replacing the heuristics the AFL uses while assigning the fuzzing iterations to a test case during the random fuzzing. We formalize this problem as a `contextual bandit problem' and we propose an algorithm to solve this problem. We have implemented our approach on top of the AFL. We modify the AFL's heuristics with our learned model through the policy gradient method. Our learning algorithm selects the multiplier of the number of fuzzing iterations to be assigned to a test case during random fuzzing, given a fixed length substring of the test case to be fuzzed. We fuzz the substring with this new energy value and continuously updates the policy based upon the interesting test cases it produces on fuzzing.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。