Skip to content

Latest commit

 

History

History
107 lines (85 loc) · 5.1 KB

README.Redqueen.md

File metadata and controls

107 lines (85 loc) · 5.1 KB

Redqueen: Fuzzing with Input-to-State Correspondence

Redqueen is a fast general purpose fuzzer for x86 binary applications. It can automatically overcome checksums and magic bytes without falling back to complex and fragile program analysis techniques, such as symbolic execution. It works by observing the arguments to function calls and compare instructions via virtual machine introspection. Observed values are used to provide inputs specific mutations. More details can be found in the paper. This fuzzer is built upon kAFL and requires support for Intel VT-x as well as Intel Processor Trace.

The Paper, Talk and Slides describing Redqueen were published at NDSS 2019.

BibTex:

@inproceedings{redqueen,
  title={REDQUEEN: Fuzzing with Input-to-State Correspondence},
  author={Aschermann, Cornelius and Schumilo, Sergej and Blazytko, Tim and Gawlik, Robert and Holz, Thorsten},
  booktitle={Symposium on Network and Distributed System Security (NDSS)},
  year={2019},
}

Initial Setup

To install redqueen run install.sh

cd ~/redqueen/
sh install.sh

This will setup everything, assuming an Ubuntu 16.04.

Fuzzing with Redqueen is a two stage process. First, the target application is packed:

python kAFL-Fuzzer/kafl_user_prepare.py \
       --recompile -args=/A -file=/A \
       targets/test_lava/binaries/who \
       targets/test_lava/packed/who/ m64

Pack an initrd with the required targets and dependencies:

bash targets/linux_x86_64-initramfs/pack.sh \
       targets/test_lava/packed/who/who_fuzz_initrd.gz \
       targets/test_lava/packed/who/who_fuzz

bash targets/linux_x86_64-initramfs/pack.sh \
       targets/test_lava/packed/who/who_info_initrd.gz \
       targets/test_lava/packed/who/who_info

Use kafl_info.py and the generated info executable to get the address ranges of your fuzzing target:

python3 kAFL-Fuzzer/kafl_info.py \
       -kernel /vmlinuz \
       -initrd targets/test_lava/packed/who/who_info_initrd.gz \
       -work_dir /tmp/kafl_workdir/ \
       -forkserver \
       -mem 500

Then the packed binary can be fuzzed.

python3 kAFL-Fuzzer/kafl_fuzz.py \
       -kernel /vmlinuz \
       -initrd targets/test_lava/packed/who/who_fuzz_initrd.gz \
       -mem 500 \
       -work_dir /tmp/kafl_workdir \
       -seed_dir targets/test_lava/seeds \
       -forkserver \
       -ip0 0x400000-0x47c000 -hammer_jmp_tables -D -redqueen -v -p 2

Trophies

License

AGPLv3

Free Software, Hell Yeah!