MAVSDK ships a libFuzzer based MAVLink fuzzer, and Auterion fuzzed the MAVLink C parser in 2019. Fuzzing tells you whether inputs crash the parser. A different question is whether a harness would notice if someone changed the parser.
I tried this on the MAVLink C parser (c_library_v2, commit 56f6435e). I planted 40 small changes. With the seed corpus and sanitizers on, 22 were noticed and 18 were missed. Each one is documented in thread 49575. The corpus matters: one change was noticed or missed depending on which corpus ran.
A question for people who run fuzzers in CI: do you measure how many planted changes your harness notices? If yes, how, and what number do you treat as good enough?
Interesting experiment, especially the corpus-dependent detection result.
I think it would be useful to distinguish three measurements:
-
Mutation reachability: Did the corpus exercise the modified parser path?
-
Mutation observability: Did the harness detect a behavioural difference, sanitizer finding, or crash?
-
Mutation detection rate: How many valid, non-equivalent planted changes were actually detected?
A single detection percentage can hide whether the limitation comes from corpus coverage or from the harness’s assertions and oracles.
One useful next step could be a reproducible CI benchmark that reports these dimensions per mutation, alongside the corpus and harness configuration.
I’m interested in exploring this with the MAVLink parser, particularly deterministic replay and machine-readable evidence of detected versus missed changes.
Thanks for sharing the experiment.
Hi yigitcan, thank you, this split is useful.
On my data: reachability is not recorded as its own column yet, and I should say that plainly. What I can say today: line 1014 is a reachability case, because it was noticed with the 219 seed files and missed with the run corpora. For 15 of the 18 survivors I found a purpose built input where original and mutant differ, so a reachable input exists. For those the missing piece in the harness is an observation point, but whether the corpus ever reached the line is not recorded. For 3 survivors I found no difference and keep them as equivalent candidates, not counted as misses.
I will check whether I can add a reachability column per mutation next to the build configuration, so the three numbers can be reported separately and not as one percentage.
One question: how would you decide that a mutation is not equivalent in a way others can check? In my case it is either a demonstrated input with a visible difference or an exhaustive comparison, and I am not sure that is enough.
Best regards
Yannik
Hi Yannik,
Thanks for the detailed breakdown. I think your distinction between the 15 demonstrated differences and the 3 equivalence candidates is exactly right.
For non-equivalence, I would use a reproducible distinguishing input as the primary criterion. One counterexample is sufficient, provided that another person can independently reproduce the behavioural difference.
I would suggest recording the following for each mutation:
-
Mutation identity: Parser commit, source location, mutation patch, and build configuration.
-
Distinguishing input: The exact input bytes, preferably minimized and stored as a binary fixture.
-
Observable difference: The specific parser output, return value, state transition, or sanitizer result that differs between the original and mutant.
-
Reproduction procedure: A deterministic command that runs both builds with the same input and compares their results.
-
Validity conditions: Confirmation that the difference is not caused by undefined behaviour, uninitialized state, or environmental nondeterminism.
For example, a CI job could execute the original and mutated parsers against the same fixture and produce a machine-readable differential result.
I would also keep three separate classifications:
-
Confirmed non-equivalent: A reproducible distinguishing input exists.
-
Confirmed equivalent: Equivalence has been established within a clearly defined input and observation model, using an exhaustive or sound analysis.
-
Unresolved: No difference has been found, but equivalence has not been established.
This avoids treating the three remaining candidates as equivalent simply because the current search did not distinguish them.
One additional nuance: demonstrating that a distinguishing input exists does not prove that the original fuzzing corpus reached the mutation. I would report reachability independently, as you suggested.
For the 15 confirmed non-equivalent survivors, it could be particularly useful to replay each distinguishing input through the original fuzz harness. That would separate corpus limitations from missing observation points.
Would you be interested in defining a small, reproducible mutation-result format around these classifications? It could make the experiment easier for others to repeat and extend.
Best regards,
Yiğitcan Öztürk
PAMILANGA LTD
Hi Yiğitcan, thank you, this is clear and I agree with the three classes. By that rule 15 survivors are confirmed non equivalent, 591 and 596 are confirmed equivalent within the compared input domain, and 418 stays unresolved.
Your five fields match what I record, except the validity conditions per mutation (undefined behaviour, uninitialized state). I have not documented those per row yet, and I will look at that.
Replaying the 15 distinguishing inputs through the original harness is a good way to separate corpus limits from missing observation points. I will check how to do it cleanly and post the result here if it works.
On a shared format: I am happy to publish the per mutation fields as a plain CSV or JSON layout in this thread, so anyone can reuse it. I would keep it simple and public rather than a joint specification.
Best regards
Yannik
Hi Yannik,
Thanks for the update. That classification looks sound, particularly keeping mutation 418 unresolved rather than assuming equivalence.
I agree that a simple, public CSV or JSON layout is the right approach. There is no need to turn this into a formal specification.
The replay results for the 15 confirmed non-equivalent survivors would be especially interesting, since they could help distinguish insufficient corpus reachability from insufficient harness observability.
Looking forward to your findings. Happy to review the published results and provide feedback if useful.
Best regards,
Yiğitcan Öztürk
PAMILANGA LTD
Hi Yigitcan, thanks for the review. I will keep 418 as unresolved until there is a distinguishing input or a sound argument for equivalence. For the format I will start with a plain CSV with one row per mutation: mutation ID, classification (confirmed not equivalent, confirmed equivalent, unresolved), distinguishing input as a binary fixture, observable difference, and build configuration. I will publish it in this thread. The replay of the 15 distinguishing inputs through the original fuzz harness is the next measurement. I will report reachability and observability separately and post the result here when it is done. I have no date yet. I would appreciate your feedback once it is up. Best regards, Yannik
Hi Yannik,
Thanks for the update.
That sounds like a solid approach. Keeping mutation 418 unresolved and reporting reachability and observability separately should make the results much easier to interpret.
The proposed CSV structure also looks sufficient for reproducible analysis without introducing unnecessary complexity.
Once you publish the replay results and mutation-level data, I’ll be happy to review them, particularly any cases where the distinguishing input reaches the relevant parser path but the original harness fails to observe the behavioural difference.
Looking forward to your findings.
Best regards,
Yiğitcan Öztürk
PAMILANGA LTD