Fuzzing With Optimized Grammar-Aware Mutation Strategies

被引:4
|
作者
Deng, Jiale [1 ,2 ]
Zhu, Xiaogang [3 ]
Xiao, Xi [2 ,4 ]
Wen, Sheng [4 ]
Li, Qing [4 ,5 ]
Xia, Shutao [2 ,4 ]
机构
[1] Sichuan Univ, Coll Comp Sci, Chengdu 610017, Peoples R China
[2] Tsinghua Univ, Tsinghua Shenzhen Int Grad Sch, Shenzhen 518055, Peoples R China
[3] Swinburne Univ Technol, Dept Comp Sci & Software Engn, Melbourne, Vic 3000, Australia
[4] Peng Cheng Lab, Shenzhen 518066, Peoples R China
[5] Southern Univ Sci & Technol, Inst Future Networks, Shenzhen 518055, Peoples R China
基金
中国国家自然科学基金;
关键词
Fuzzing; Grammar; Schedules; Production; XML; Testing; Syntactics; Computer security; software testing; grammar-based fuzzing;
D O I
10.1109/ACCESS.2021.3093904
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Fuzzing is a widely used technique to discover vulnerabilities in software. However, for programs requiring highly structured inputs, the byte-based mutation strategies in existing fuzzers have difficulties in generating valid inputs. To resolve this challenge, Grammar-Based Fuzzing (GBF) utilizes existing grammar specifications to generate new inputs. Some GBFs perform mutation based on Abstract Syntax Trees (ASTs), which can generate inputs conforming to grammars. However, the existing GBFs neglect using feedback to optimize mutation strategies, and blindly generate inputs without considering the effectiveness of those inputs. In this paper, we use the power schedule and the subtree pool to optimize mutation strategies. Specifically, we first translate input files into ASTs, and extract subtrees from ASTs into a subtree pool. Then, we optimize the power schedule on AST nodes based on a probabilistic model. That is, we adaptively determine the time budget for mutating an AST node. Finally, we replace AST nodes along with their subtrees using the ones we select from the subtree pool. We implement a fuzzing tool to demonstrate our strategies. The experiment results show that our method outperforms the state-of-the-art methods in fuzzing efficiency.
引用
收藏
页码:95061 / 95071
页数:11
相关论文
共 50 条
  • [41] Mutation Scheme for Fuzzing Based on Thompson Sampling
    Ma R.
    He J.-Y.
    Wang X.-F.
    Wang X.-J.
    Li B.-B.
    Hu C.-Z.
    Ma, Rui (mary@bit.edu.cn), 1600, Beijing Institute of Technology (40): : 1307 - 1313
  • [42] WasmCFuzz: Structure-aware Fuzzing for Wasm Compilers
    Zhang, Xiangwei
    Wang, Junjie
    Du, Xiaoning
    Liu, Shuang
    PROCEEDINGS 2024 IEEE/ACM 4TH INTERNATIONAL WORKSHOP ON ENGINEERING AND CYBERSECURITY OF CRITICAL SYSTEMS AND 2024 IEEE/ACM SECOND INTERNATIONAL WORKSHOP ON SOFTWARE VULNERABILITY, ENCYCRIS/SVM 2024, 2024, : 1 - 5
  • [43] VIDEZZO: Dependency-aware Virtual Device Fuzzing
    Liu, Qiang
    Toffalini, Flavio
    Zhou, Yajin
    Payer, Mathias
    2023 IEEE SYMPOSIUM ON SECURITY AND PRIVACY, SP, 2023, : 3228 - 3245
  • [44] Investigating Coverage Guided Fuzzing with Mutation Testing
    Qian, Ruixiang
    Zhang, Quanjun
    Fang, Chunrong
    Guo, Lihua
    13TH ASIA-PACIFIC SYMPOSIUM ON INTERNETWARE, INTERNETWARE 2022, 2022, : 272 - 281
  • [45] A Guided Mutation Strategy for Smart Contract Fuzzing
    Ji, Songyan
    Dong, Jian
    Wu, Jin
    Lu, Lishi
    2023 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION, ICSME, 2023, : 282 - 292
  • [46] Framework for State-Aware Virtual Hardware Fuzzing
    Xu, Hang
    Qin, Ganyu
    Zhu, Junhu
    Liu, Zimian
    Liu, Zhiqiang
    WIRELESS COMMUNICATIONS & MOBILE COMPUTING, 2021, 2021
  • [47] μ2: Using Mutation Analysis to Guide Mutation-Based Fuzzing
    Laybourn, Isabella
    2022 ACM/IEEE 44TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: COMPANION PROCEEDINGS (ICSE-COMPANION 2022), 2022, : 331 - 333
  • [48] Grammar-based Adaptive Fuzzing: Evaluation on SCADA Modbus Protocol
    Yoo, Hyunguk
    Shon, Taeshik
    2016 IEEE INTERNATIONAL CONFERENCE ON SMART GRID COMMUNICATIONS (SMARTGRIDCOMM), 2016,
  • [49] Cross-layer aware packetization strategies for optimized wireless multimedia transmission
    Turaga, DS
    van der Schaar, M
    2005 INTERNATIONAL CONFERENCE ON IMAGE PROCESSING (ICIP), VOLS 1-5, 2005, : 349 - 352
  • [50] TREELINE and SLACKLINE: Grammar-Based Performance Fuzzing on Coffee Break
    Alsaeed, Ziyad
    Young, Michal
    PROCEEDINGS OF THE 32ND ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, ISSTA 2023, 2023, : 1507 - 1510