Install any skill in seconds. Free to start, no credit card required.
Get Started Free →trailofbits/fuzzing-obstacles
Techniques for patching code to overcome fuzzing obstacles.
Passed 23 of 23 test cases with the skill, and 22 of 23 without it.
1 fixed22 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
In a Rust library crate being fuzzed with cargo-fuzz, we need to bypass a CRC32 checksum check inside parse_frame. How should this check be conditionally skipped at runtime or compile-time using built-in Rust conditional compilation without introducing third-party feature flags?
| Checked | Without skill | With skill |
|---|---|---|
| Use cfg!(fuzzing) to conditionally execute the logic. | Missed | Passed |
The instructions your model reads when the skill loads.
Codebases often contain anti-fuzzing patterns that prevent effective coverage. Checksums, global state (like time-seeded PRNGs), and validation checks can block the fuzzer from exploring deeper code paths. This technique shows how to patch your System Under Test (SUT) to bypass these obstacles during fuzzing while preserving production behavior.
Many real-world programs were not designed with fuzzing in mind. They may:
These patterns make fuzzing difficult because:
The solution is conditional compilation: modify code behavior during fuzzing builds while keeping production code unchanged.
| Concept | Description |
|---|---|
| SUT Patching | Modifying System Under Test to be fuzzing-friendly |
| Conditional Compilation | Code that behaves differently based on compile-time flags |
| Fuzzing Build Mode | Special build configuration that enables fuzzing-specific patches |
| False Positives | Crashes found during fuzzing that cannot occur in production |
| Determinism | Same input always produces same behavior (critical for fuzzing) |
Apply this technique when:
Skip this technique when:
test cases passed, vs 22 / 23 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.