JSW 2013 Vol.8(3): 645-651 ISSN: 1796-217X
doi: 10.4304/jsw.8.3.645-651
doi: 10.4304/jsw.8.3.645-651
Efficient Model-based Fuzz Testing Using Higher-order Attribute Grammars
Fan Pan, Ying Hou, Zheng Hong, Lifa Wu, Haiguang Lai
Institute of Command Automaton, PLA University of science and technology, Nanjing, Jiangsu, China
Abstract—Format specifications of data input are critical to model-based fuzz testing. Present methods cannot describe the format accurately, which leads to high redundancy in testing practices. In order to improve testing efficiency, we propose a grammar-driven approach to fuzz testing. Firstly, we build a formal model of data format using higher-order attribute grammars, and construct syntax tree on the basis of data samples. Secondly, all nodes in the syntax tree are traversed and mutated to generate test cases according to the attribute rules. Experimental results show that the proposed approach can reduce invalid and redundant test cases, and discover potential vulnerabilities of software implementations effectively.
Index Terms—Model-based fuzz testing, Higher-order attribute grammars, Syntax analysis tree, Test case generation.
Abstract—Format specifications of data input are critical to model-based fuzz testing. Present methods cannot describe the format accurately, which leads to high redundancy in testing practices. In order to improve testing efficiency, we propose a grammar-driven approach to fuzz testing. Firstly, we build a formal model of data format using higher-order attribute grammars, and construct syntax tree on the basis of data samples. Secondly, all nodes in the syntax tree are traversed and mutated to generate test cases according to the attribute rules. Experimental results show that the proposed approach can reduce invalid and redundant test cases, and discover potential vulnerabilities of software implementations effectively.
Index Terms—Model-based fuzz testing, Higher-order attribute grammars, Syntax analysis tree, Test case generation.
Cite: Fan Pan, Ying Hou, Zheng Hong, Lifa Wu, Haiguang Lai, "Efficient Model-based Fuzz Testing Using Higher-order Attribute Grammars," Journal of Software vol. 8, no. 3, pp. 645-651, 2013.
General Information
ISSN: 1796-217X (Online)
Frequency: Quarterly
Editor-in-Chief: Prof. Antanas Verikas
Executive Editor: Ms. Yoyo Y. Zhou
Abstracting/ Indexing: DBLP, EBSCO, CNKI, Google Scholar, ProQuest, INSPEC(IET), ULRICH's Periodicals Directory, WorldCat, etc
E-mail: jsw@iap.org
-
Apr 26, 2021 News!
Vol 14, No 4- Vol 14, No 12 has been indexed by IET-(Inspec) [Click]
-
Nov 18, 2021 News!
Papers published in JSW Vol 16, No 1- Vol 16, No 6 have been indexed by DBLP [Click]
-
Dec 24, 2021 News!
Vol 15, No 1- Vol 15, No 6 has been indexed by IET-(Inspec) [Click]
-
Nov 18, 2021 News!
[CFP] 2022 the annual meeting of JSW Editorial Board, ICCSM 2022, will be held in Rome, Italy, July 21-23, 2022 [Click]
-
Aug 01, 2023 News!