tessl install tessl/pypi-atheris@2.3.0A coverage-guided fuzzer for Python and Python extensions based on libFuzzer
Agent Success
Agent success rate when using this tile
91%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.28x
Baseline
Agent success rate without this tile
71%
Build a fuzzing harness that tests a validation function capable of discovering magic string prefixes and suffixes through enhanced coverage guidance.
You need to create a fuzzing harness for a simple validation function that checks whether input strings start with specific prefixes or end with specific suffixes. The function should return True if the input satisfies the validation criteria, and False otherwise.
Your fuzzing harness must effectively discover the specific magic strings used in the validation through coverage-guided feedback. The harness should be capable of identifying both prefix and suffix patterns within a reasonable number of fuzzing iterations.
Implement a function validate_input(data: str) -> bool that:
True if the input starts with "AUTH:" and ends with ":VALID"False for all other inputsImplement a fuzzing harness that:
The following test cases verify your implementation works correctly:
validate_input return True within 10000 iterations @test@generates
def validate_input(data: str) -> bool:
"""
Validates whether the input string has the correct prefix and suffix.
Args:
data: Input string to validate
Returns:
True if the string starts with "AUTH:" and ends with ":VALID", False otherwise
"""
pass
def TestOneInput(data: bytes) -> None:
"""
Fuzzing entry point that tests the validation function.
Args:
data: Raw bytes from the fuzzer
"""
passProvides coverage-guided fuzzing capabilities with string comparison tracking.
@satisfied-by