agentleFS
mejbaurbaharmejbaurbahar/software-tester-skills/skills/fuzz-testing/SKILL.md

fuzz-testing

Skill1 starsChanged 52 days agoMITView on GitHub

Use when hunting crashes, hangs, memory bugs and parser/protocol vulnerabilities with random or coverage-guided inputs — fuzzing with AFL++, libFuzzer, Jazzer, Atheris, go-fuzz, cargo-fuzz, Schemathesis, and HTTP/API fuzzing, plus corpus and crash triage.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Regress: commit every crashing input to the corpus as a permanent test.

    line 63

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Fuzz Testing

Feed a program huge volumes of malformed/unexpected input and watch for crashes, hangs, sanitizer errors, or contract violations. Coverage-guided fuzzers mutate inputs that reach new code — thousands of executions per second.

Where fuzzing pays off

Parsers (JSON/XML/PDF/image/protobuf), deserializers, decoders, regex engines, file-format handlers, network protocols, CLI arg handling, SQL/template engines, and HTTP APIs.

Pick a tool

TargetTool
C/C++AFL++, libFuzzer (+ ASan/UBSan)
Gonative go test -fuzz
Rustcargo fuzz (libFuzzer), proptest
Java/KotlinJazzer
PythonAtheris, Hypothesis
JS/TSJazzer.js, fast-check
REST/GraphQL APISchemathesis, RESTler, Dredd, ffuf
Web paramsffuf, wfuzz (authorized targets only)

Recipes

// Go — native fuzzing
func FuzzParse(f *testing.F) {
    f.Add("2024-01-31")                       // seed corpus
    f.Fuzz(func(t *testing.T, s string) {
        d, err := Parse(s)
        if err == nil && d.String() != Normalize(s) { t.Fatalf("mismatch %q", s) }
    })
}
// run: go test -fuzz=FuzzParse -fuzztime=60s
# Python — Atheris
import atheris, sys
def one(data):
    fdp = atheris.FuzzedDataProvider(data)
    parse(fdp.ConsumeUnicodeNoSurrogates(256))
atheris.Setup(sys.argv, one); atheris.Fuzz()
# API fuzzing from an OpenAPI spec (finds 5xx, schema violations, auth gaps)
schemathesis run https://staging.example.com/openapi.json --checks all --hypothesis-max-examples=200
# C/C++ with sanitizers
clang++ -g -O1 -fsanitize=fuzzer,address,undefined harness.cc -o fuzz && ./fuzz corpus/ -max_total_time=300

Workflow

  1. Harness: a function taking bytes → calls target. Fast, deterministic, no global state, no network/disk.
  2. Seed corpus: real valid samples + past bug inputs. Add a dictionary of tokens ("<script>", "\"key\":").
  3. Sanitizers on (ASan, UBSan, MSan, TSan) — most memory bugs are silent without them.
  4. Run continuously (CI: 60–300 s per PR; nightly hours; OSS-Fuzz/ClusterFuzzLite).
  5. Triage: minimize (-minimize_crash=1 / afl-tmin), dedupe by stack hash, classify (crash / hang / OOM / logic), file with the reproducer bytes.
  6. Regress: commit every crashing input to the corpus as a permanent test.
  7. Measure coverage of the harness; add seeds for un-reached branches.

Safety & ethics

Fuzz only systems you own or are authorized to test; use staging; throttle to avoid DoS; never fuzz production payment/email endpoints.

Related

property-based-testing, security-testing, api-testing, static-analysis-testing

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.