r/elixir • • 11d ago

Fuzz testing for Elixir is here

Post image

ExFuzz is a coverage-guided fuzzer for Elixir, and I just launched v0.1.0!

It is well-integrated with ExUnit, so your fuzz tests can run alongside your regular tests and use the seed corpus as an ever-growing regression suite. It is built on top of LibAFL as the underlying mutation engine.

Given the amount of critical software infrastructure built on Elixir, I really wanted to focus on an out-of-the-box Go-like developer experience to reduce adoption friction (would really appreciate feedback here).

I have many plans for v0.2.0:

  • Typed generators.
  • More Elixir-aware coverage analysis.
  • Concurrent and continuous fuzzing.
  • Improved performance (execs per second).

Looking for early feedback from the community. I am planning to take it for a test drive around the ecosystem and will let you all know how that goes!

76 Upvotes

11 comments sorted by

View all comments

3

u/amzwC137 Alchemist ⚗️ 11d ago

I didn't know this wasn't a thing in elixir, as a go main. In general, however, I don't have many uses for fuzzing in my projects/field.

That said, how long has this been available? Have you had any adopters yet? Have you seen positive results regarding effectiveness?

2

u/iwantobehappypls 11d ago

It was just released 3 days ago. I'll be taking it on a run around the ecosystem to assess and push for adoption soon, once v0.2.0 is out (strong plans to make it more performant).

Regarding results, it is pretty effective at catching most common failures. One of the community members tested it out on a few samples of their own, here's their analysis: https://forum.elixirforum.com/t/exfuzz-fuzz-testing-for-elixir-is-here/77404/2