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

用于综合软件模糊的输入文法的无样本学习

Sample-Free Learning of Input Grammars for Comprehensive Software Fuzzing

Rahul Gopinath, Björn Mathis, Mathias Höschele, Alexander Kampmann, Andreas Zeller

摘要:

如果知道输入语言,为程序生成有效的测试输入就容易得多。我们提出的第一个成功的技术,给定一个程序P没有任何输入样本或模型,学习一个输入语法,表示语法有效的输入P -语法,然后可以用于高效的测试生成P。为此,我们引入了一个测试生成器,针对输入解析器,系统地探索解析的替代方案的基础上动态跟踪的约束,由此产生的输入进入语法学习器产生的语法,然后可以用于模糊。在我们对JSON、URL或Mathexpr等主题的评估中,我们的PYGMALION原型只花了几分钟就推断出语法并生成了数千个有效的高质量输入。

英文摘要:

Generating valid test inputs for a program is much easier if one knows the input language. We present first successes for a technique that, given a program P without any input samples or models, learns an input grammar that represents the syntactically valid inputs for P -- a grammar which can then be used for highly effective test generation for P . To this end, we introduce a test generator targeted at input parsers that systematically explores parsing alternatives based on dynamic tracking of constraints; the resulting inputs go into a grammar learner producing a grammar that can then be used for fuzzing. In our evaluation on subjects such as JSON, URL, or Mathexpr, our PYGMALION prototype took only a few minutes to infer grammars and generate thousands of valid high-quality inputs.

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

↑