libfuzzer

libfuzzer is a skill for Claude Code from marduk191/qwen3_mcp. It costs 34 tokens per session (6,274 once invoked), scanned A, a copy of libfuzzer, MIT.

A coverage-guided fuzzer for C and C++ programs that is included with LLVM, the compiler toolchain. It repeatedly tests code with varied inputs and uses the code paths reached to guide further tests.

In plain words
What is it for?
Use it to fuzz C or C++ libraries and programs, build fuzzing test harnesses, and find input-related bugs or memory errors.
Why use it?
It helps find crashes and unexpected behavior that ordinary example-based tests may miss. It is suited to projects compiled with Clang and is relatively simple to set up.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the testing-handbook-skills plugin — 15 skills shipped together

Good fit Use it to fuzz C or C++ libraries and programs, build fuzzing test harnesses, and find input-related bugs or memory errors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/marduk191/qwen3_mcp/libfuzzer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add marduk191/qwen3_mcp --skill libfuzzer
Clone the repo
git clone --depth 1 https://github.com/marduk191/qwen3_mcp

Made for: Claude Code.

Or install testing-handbook-skills, the plugin that ships this one along with the rest of its 15 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for libfuzzer

README.md
[![agentmods](https://agentmods.dev/badge/skills/marduk191/qwen3_mcp/libfuzzer/github.svg)](https://agentmods.dev/skills/marduk191/qwen3_mcp/libfuzzer)
Your own site
<a href="https://agentmods.dev/skills/marduk191/qwen3_mcp/libfuzzer"><img src="https://agentmods.dev/badge/skills/marduk191/qwen3_mcp/libfuzzer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for libfuzzer

Your own site · 80×15
<a href="https://agentmods.dev/skills/marduk191/qwen3_mcp/libfuzzer"><img src="https://agentmods.dev/badge/skills/marduk191/qwen3_mcp/libfuzzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,274 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 98% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.06274
Opus 5.5 $0.00014 $0.02510
Sonnet 5.5 $0.00007 $0.01255
Haiku 4.5 $0.00003 $0.00627

Measured 1mo ago against content hash dc67b83f2769, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

libfuzzer scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

man curl | grep -oP '^\s*(--|-)\K\S+' | sed 's/[,.]$//' | sed 's/^/"&/; s/$/&"/' | sort -u > man.dict
Origin

This is a copy

98% identical to libfuzzer — 11 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/testing-handbook-skills/skills/libfuzzer/SKILL.md · 796 lines

How it starts

The opening of the file, as written. The whole thing — 796 lines — stays where its author put it; the contents beside it link to each section on GitHub.

libFuzzer

libFuzzer is an in-process, coverage-guided fuzzer that is part of the LLVM project. It's the recommended starting point for fuzzing C/C++ projects due to its simplicity and integration with the LLVM toolchain. While libFuzzer has been in maintenance-only mode since late 2022, it is easier to install and use than its alternatives, has wide support, and will be maintained for the foreseeable future.

When to Use

Fuzzer Best For Complexity
libFuzzer Quick setup, single-project fuzzing Low
AFL++ Multi-core fuzzing, diverse mutations Medium
LibAFL Custom fuzzers, research projects High
Honggfuzz Hardware-based coverage Medium

Choose libFuzzer when:

  • You need a simple, quick setup for C/C++ code
  • Project uses Clang for compilation
  • Single-core fuzzing is sufficient initially
  • Transitioning to AFL++ later is an option (harnesses are compatible)

Note: Fuzzing harnesses written for libFuzzer are compatible with AFL++, making it easy to transition if you need more advanced features like better multi-core support.

Quick Start

#include <stdint.h>
#include <stddef.h>

extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
    // Validate input if needed
    if (size < 1) return 0;

    // Call your target function with fuzzer-provided data
    my_target_function(data, size);

    return 0;
}

Compile and run:

clang++ -fsanitize=fuzzer,address -g -O2 harness.cc target.cc -o fuzz
mkdir corpus/
./fuzz corpus/

Installation

Prerequisites

  • LLVM/Clang compiler (includes libFuzzer)
  • LLVM tools for coverage analysis (optional)

Linux (Ubuntu/Debian)

apt install clang llvm

For the latest LLVM version:

# Add LLVM repository from apt.llvm.org
# Then install specific version, e.g.:
apt install clang-18 llvm-18

macOS

# Using Homebrew
brew install llvm

# Or using Nix
nix-env -i clang

Read the full file on GitHub · 796 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 796 lines · 34 tokens per session scan A dc67b83f2769

Subscribe to this mod's changes

libfuzzer is a skill published in the GitHub repository marduk191/qwen3_mcp (15 stars, last pushed 8mo ago), licensed MIT. It adds 34 tokens to every session and 6,274 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). It is 98% identical to libfuzzer, differing in 11 lines, and is treated as a copy.

Related

Other skills, from other repositories

feature-flag-creation

Guide for adding new base::Feature flags and feature parameters (BASEFEATURE, BASEFEATUREPARAM, BASEFEATUREENUMPARAM) in Chromium, including choosing the right feature file, macro syntax, comment placement, testing with ScopedFeatureList, and optional chrome://flags or Android Java exposure.

chromium/chromium · 62 tokens

blink-gc-plugin

Develop, build, test, and roll changes to the Blink GC Clang plugin (//tools/clang/blinkgcplugin). Use when modifying or adding Oilpan/Blink GC Clang plugin checks, running plugin unit tests, checking Chromium/Blink targets for new plugin violations, suppressing violations with GCPLUGINIGNORE, or force-rolling Clang…

chromium/chromium · 79 tokens

transform-model

Add a Hugging Face or local checkpoint to TensorRT-Model-Connect as a self-contained family, or extend the family that already owns it.

NVIDIA/TensorRT-Model-Connect · 33 tokens

loom-c

C language expertise (C11/C17/C23) for memory-safe, portable, production-quality systems code.

cosmix/loom · 25 tokens

tlaplus-spec-generator

Automatically generate TLA+ specifications from source code (C/C++, Python) for formal verification of distributed systems. Use when users need to: (1) Generate TLA+ specs from program implementations, (2) Model distributed systems, consensus protocols, or concurrent algorithms, (3) Extract state variables, actions…

ArabelaTso/Skills-4-SE · 118 tokens

acsl-annotation-assistant

Create ACSL (ANSI/ISO C Specification Language) formal annotations for C/C++ programs. Use this skill when working with formal verification, adding function contracts (requires/ensures), loop invariants, assertions, memory safety annotations, or any ACSL specifications. Supports Frama-C verification and generates…

ArabelaTso/Skills-4-SE · 76 tokens