Skip to content

MCloudTT/rusty-FUME

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub GitHub Workflow Status (with event) GitHub issues GitHub pull requests GitHub Repo stars GitHub forks

rusty-FUME

A high-performance MQTT network Fuzzer.

This is an implementation of FUME-Fuzzing-MQTT-Brokers in Rust.

Architecture

The Fuzzing process is based on a Markov Model seen in the following image: Markov Model For more details see src/lib/lib.rs or the original paper.

Notable changes from the paper include:

  • The use of multiple asynchronous threads for fuzzing by default
  • Improved performance
  • Only counting broker crashes as crashes(The original paper also counted refused connections as crashes)

Running the project

After installing Rust, run the following command in the project directory:

cargo run -r -- --broker-command "YOUR_BROKER_START_COMMAND" fuzz

After fuzzing has found a crash you can run the following command to reproduce the crash:

cargo run -r -- --broker-command "YOUR_BROKER_START_COMMAND" replay

Recommendations

Note: DO NOT USE THIS ON A PRODUCTION SERVER AS IT MAY HAVE UNINTENDED SIDE EFFECTS

That being said, it works fine on my local machine. I recommend running the following commands before fuzzing to prevent the kernel from running out of ports:

sudo sysctl -w net.ipv4.tcp_fin_timeout=5
sudo sysctl -w net.ipv4.tcp_tw_reuse=1
sudo sysctl -w net.ipv4.ip_local_port_range="1024 65535"

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Compatibility

Currently, the Windows build is failing in the ci, however i've only tested this on Linux so far. Maybe it works on Windows, maybe it doesn't. I don't know. Pull Requests to fix this if necessary are welcome.

🏆 Trophies

All bugs found with this software. If you find a bug using rusty-FUME, please open an issue and I'll add it to the list once it is patched.

Credits

About

A high-performance network fuzzer for MQTT Brokers

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages