69 releases

new 0.15.12 Nov 20, 2024
0.15.10 Jul 19, 2024
0.15.4 Mar 11, 2024
0.15.1 Dec 16, 2023
0.1.1 Feb 1, 2016

#107 in Testing

Download history 3546/week @ 2024-08-01 3292/week @ 2024-08-08 3697/week @ 2024-08-15 2868/week @ 2024-08-22 2991/week @ 2024-08-29 3310/week @ 2024-09-05 3683/week @ 2024-09-12 3231/week @ 2024-09-19 4273/week @ 2024-09-26 3294/week @ 2024-10-03 3249/week @ 2024-10-10 3927/week @ 2024-10-17 4071/week @ 2024-10-24 3208/week @ 2024-10-31 3678/week @ 2024-11-07 4522/week @ 2024-11-14

16,234 downloads per month
Used in 9 crates (8 directly)

Apache-2.0

1.5MB
104 lines

afl.rs logo
afl.rs

Fuzzing Rust code with AFLplusplus

What is it?

Fuzz testing is a software testing technique used to find security and stability issues by providing pseudo-random data as input to the software. AFLplusplus is a popular, effective, and modern fuzz testing tool based on AFL. This library, afl.rs, allows one to run AFLplusplus on code written in the Rust programming language.

Documentation

Documentation can be found in the Rust Fuzz Book.

What does it look like?

Screen recording of afl

Screen recording of AFL running on Rust code.

Hints

Before starting to fuzz, you should reconfigure your system for optimal performance and better crash detection. This can be done with cargo afl system-config. But this subcommand requires root, so it uses sudo internally. Hence, you might need to enter your password.

By default, the AFL++ CMPLOG feature is activated, which helps to achieve good code coverage. However, it is not beneficial to activate CMPLOG on more than two instances. So if you run multiple AFL++ instances on your fuzzing target, you can disable CMPLOG by specifying the command line parameter '-c -'.

This document will familiarize you with AFL++ features to help in running a successful fuzzing campaign.

By default, the fuzzing config is set when cargo-afl is used to build. If you want to prevent this, just set the environment variable AFL_NO_CFG_FUZZING to 1 when building.

Dependencies