arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2103.15350cs.SE
收藏

对抗性规范挖掘

Adversarial Specification Mining

Hong Jin Kang, David Lo

摘要:

已经有大量的研究从执行轨迹挖掘时间规格。这些方法在运行测试时从执行跟踪中学习有限状态自动机(FSA)。要了解软件系统的准确规格说明,需要进行许多测试。现有的方法一般从有限数量的跟踪或使用简单的测试生成策略。不幸的是,这些策略可能无法运用软件系统的不常见的使用模式。为了解决这个问题,我们提出了一种新的方法,对抗规范挖掘,并开发了一个原型,DICE(多样性通过反例)。DICE有两个组件:DICE测试器和DICE矿工。在从输入测试套件中挖掘线性时序逻辑规范后,DICE-Tester逆向引导测试生成,搜索这些规范的反例以使虚假属性无效。这些反例代表了输入测试套件多样性的差距。这个过程产生了在输入测试套件中没有表示的使用模式的执行痕迹。接下来,我们提出了一种新的规范推理算法DICE-Miner,在时间规范的指导下使用轨迹来推理FSA。我们发现,推断的规格比现有的国家的最先进的规格矿工生产的质量更高。最后,我们使用的FSA在一个模糊的服务器的状态协议,增加其覆盖范围。

英文摘要:

There have been numerous studies on mining temporal specifications from execution traces. These approaches learn finite-state automata (FSA) from execution traces when running tests. To learn accurate specifications of a software system, many tests are required. Existing approaches generalize from a limited number of traces or use simple test generation strategies. Unfortunately, these strategies may not exercise uncommon usage patterns of a software system. To address this problem, we propose a new approach, adversarial specification mining, and develop a prototype, DICE (Diversity through Counter-Examples). DICE has two components: DICE-Tester and DICE-Miner. After mining Linear Temporal Logic specifications from an input test suite, DICE-Tester adversarially guides test generation, searching for counterexamples to these specifications to invalidate spurious properties. These counterexamples represent gaps in the diversity of the input test suite. This process produces execution traces of usage patterns that were unrepresented in the input test suite. Next, we propose a new specification inference algorithm, DICE-Miner, to infer FSAs using the traces, guided by the temporal specifications. We find that the inferred specifications are of higher quality than those produced by existing state-of-the-art specification miners. Finally, we use the FSAs in a fuzzer for servers of stateful protocols, increasing its coverage.

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

↑