GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - rahlk/MTFuzz: MTFuzz: Fuzzing with a Multi-Task Neural Network

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
approach_pass
approach_pass
 
 
br_fast_pass
br_fast_pass
 
 
br_pass
br_pass
 
 
ctx_pass
ctx_pass
 
 
ec_pass
ec_pass
 
 
programs
programs
 
 
Fig-1.png
Fig-1.png
 
 
README.md
README.md
 
 
mtfuzz.c
mtfuzz.c
 
 
mtfuzz_wrapper.py
mtfuzz_wrapper.py
 
 
nn.py
nn.py
 
 

Repository files navigation

MTFuzz: Fuzzing with a Multi-Task Neural Network

Paper link

https://dl.acm.org/doi/pdf/10.1145/3368089.3409723

Framework

image

Abstract

Fuzzing is a widely used technique for detecting software bugs and vulnerabilities. Most popular fuzzers generate new inputs using an evolutionary search to maximize code coverage. Essentially, these fuzzers start with a set of seed inputs, mutate them to generate new inputs, and identify the promising inputs using an evolutionary fitness function for further mutation.

Despite their success, evolutionary fuzzers tend to get stuck in long sequences of unproductive mutations. In recent years, machine learning (ML) based mutation strategies have reported promising results. However, the existing ML-based fuzzers are limited by the lack of quality and diversity of the training data. As the input space of the target programs is high dimensional and sparse, it is prohibitively expensive to collect many diverse samples demonstrating successful and unsuccessful mutations to train the model.

In this paper, we address these issues by using a Multi-Task Neural Network that can learn a compact embedding of the input space based on diverse training samples for multiple related tasks (i.e., predicting different types of coverage). The compact embedding can be used to guide the mutation process effectively by focusing most of the mutations on the parts of the embedding where the gradient is high. Our results show that MTFuzz uncovers 11 previously unseen bugs and achieves an average of 2x more edge coverage compared with 5 state-of-the-art fuzzer on 10 real-world programs.

Prerequisite

Python 3.7 Tensorflow 1.15.0 Keras 2.2.4

Usage

We use readelf as an example

  1. Compile programs with 3 different coverage.
    CC=ec_pass/afl-clang-fast ./configure && make  # build ec coverage program
    CC=ctx_pass/afl-clang-fast ./configure && make # build ctx coverage program
    CC=approach_pass/afl-clang-fast ./configure && make # build approach level coverage program
  1. Compile programs to intercept operands of every CMP instrutions.
   CC=br_pass/afl-clang-fast ./configure && make # instrment every CMP instutions of program 
   CC=br_fast_pass/afl-clang-fast ./configure && make # faster version using fork server 
  1. Run multi-task nn module.
   python ./nn.py ./readelf -a 
  1. Run fuzzing module.
   python ./mtfuzz_wrapper.py -i mtfuzz_in -o seeds -l 7406 ./readelf -a @@

Tested programs

We provide 10 real world programs and training datasets for reproduce our results.

Contant

Feel free to send me email about MTFuzz. dongdong at cs.columbia.edu

About

MTFuzz: Fuzzing with a Multi-Task Neural Network

arxiv.org/abs/2005.12392

Resources

Readme
Activity

Stars

39 stars

Watchers

3 watching

Forks

12 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.