A coverage-guided fuzzer for Python and Python extensions based on libFuzzer
91
Build a fuzzing test harness that validates inputs against multiple magic numbers and secret strings. The system should efficiently discover the correct values using data flow tracing.
Your task is to implement a fuzzer that tests a validation function with complex comparison logic:
Create a validation function validate_input(data: bytes) -> str that:
0x41424344Implement a fuzzing harness using the target package that:
validate_input return "SUCCESS" @test0x41424344 followed by "SECRET_KEY\x00" @test@generates
def validate_input(data: bytes) -> str:
"""
Validates input data against magic number and secret key.
Args:
data: Input bytes containing magic number and secret string
Returns:
"SUCCESS" if validation passes, otherwise an error message
"""
pass
def fuzz_target(data: bytes) -> None:
"""
Fuzzing entry point that tests the validation function.
Args:
data: Raw fuzzing input bytes
"""
passProvides coverage-guided fuzzing with data flow tracing capabilities to help discover magic numbers and strings through comparison tracking.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/pypi-atherisevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10