wasm-tools icon indicating copy to clipboard operation
wasm-tools copied to clipboard

Request for Updated Usage Tutorial and AFL Integration Guide for wasm-mutate in wasm-tools

Open 0xfocu5 opened this issue 1 year ago • 1 comments

I have noticed that the code in the readme of https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-mutate is no longer usable. Could you provide an updated version of the code usage tutorial? Additionally, can this project be used with AFL? If so, could you provide a tutorial? Thank you!

0xfocu5 avatar Jan 03 '24 09:01 0xfocu5

I'd recommend reading over the source code of the mutate subcommand. Wasmtime has an example of mutation in a fuzzer here and here.

This should be usable with AFL as I think from an API perspective it's similar enough to libFuzzer in LLVM

alexcrichton avatar Jan 03 '24 16:01 alexcrichton