bitcoin-testing-fuzz
БесплатноБез исполняемых скриптовНе проверенFuzz testing for Bitcoin code: Bitcoin Core's libFuzzer harnesses, rust-bitcoin / bdk / secp256k1 cargo-fuzz, AFL++. Seed corpus bootstrapping, regression…
от claude-dev-suite★ 51 звезда на GitHubОб этом скилле
Fuzz Testing
Fuzzing finds bugs by feeding randomly-generated inputs and watching for crashes / assertion failures. Critical for Bitcoin libraries parsing untrusted data (txs, scripts, P2P messages).
Bitcoin Core fuzz harnesses
Located in src/test/fuzz/. Each .cpp file is one harness.
Bitcoin Core 29.0 (April 2025) replaced Autotools with CMake
(minimum 3.22): ./autogen.sh and ./configure are gone, and the
driver binary moved from src/test/fuzz/fuzz to build_fuzz/bin/fuzz.
Current as of Bitcoin Core 31.1 (July 2026):
# Build with fuzzing (preset sets BUILD_FOR_FUZZING=ON and
# SANITIZERS=undefined,address,fuzzer)
cmake --preset=libfuzzer
cmake --build build_fuzz
# Run a specific harness
FUZZ=tx_in build_fuzz/bin/fuzz <corpus_dir>
FUZZ=script build_fuzz/bin/fuzz <corpus_dir>
--preset=libfuzzer-nosan builds the same harnesses without the
address/undefined sanitizers into build_fuzz_nosan — far higher
throughput for long coverage-hunting runs.
afl++ and Honggfuzz bypass the presets: configure with
-DBUILD_FOR_FUZZING=ON and their compiler wrappers
(afl-clang-lto++, hfuzz-clang++), then drive build_fuzz/bin/fuzz
under afl-fuzz / honggfuzz.
Available targets: tx_in, tx_out, script, descriptor_parse,
miniscript_string, psbt, addrman, block_header, process_message, etc.
build_fuzz/test/fuzz/test_runner.py executes them all.
rust-bitcoin / BDK fuzz
Use cargo-fuzz:
cd rust-bitcoin/fuzz
cargo +nightly fuzz run script_decode
Each fuzz_targets/*.rs is a separate target.
secp256k1 fuzz
Native libFuzzer harnesses; verify against test vectors first, then random.
Corpus management
- Seed corpus: well-formed examples covering edge cases.
- Crash corpus: inputs that triggered crashes; persist as regression tests.
- Stored online: Bitcoin Core's public corpus repo is
bitcoin-core/qa-assets— one directory per harness underfuzz_corpora/, token dictionaries underfuzz_dicts/(as of September 2026).
Coverage-guided fuzzing
libFuzzer / AFL++ instrument code with branch coverage. New inputs that exercise new branches are kept, expanding coverage.
Effective for:
- Parsers (tx, script, PSBT, descriptors).
- Crypto primitives (signatures, hashes).
- Network message decoders.
Common bugs found
- Out-of-bounds reads in parsers.
- Integer overflows (especially scriptnum arithmetic).
- DoS via specific input shapes (huge witness, deep script recursion).
Continuous fuzzing
OSS-Fuzz and Bitcoin Core's own farms run continuous fuzzing 24/7. Findings reported privately; fixed before public disclosure.
Use cases
- Hardening parsers before production.
- Pre-merge sanity for Bitcoin Core PRs that touch consensus code.
- Library audits — fuzz a new BIP implementation.
Common issues
- Seed corpus too narrow → fuzzer doesn't find new branches.
- Test isolation — globals + caches between fuzz runs.
- Sanitizers slow — production fuzz balances speed vs detection.
See also
Установить bitcoin-testing-fuzz в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobFAQ
Что делает скилл bitcoin-testing-fuzz?
Fuzz testing for Bitcoin code: Bitcoin Core's libFuzzer harnesses, rust-bitcoin / bdk / secp256k1 cargo-fuzz, AFL++. Seed corpus bootstrapping, regression tests. USE WHEN: hardening Bitcoin libraries, writing fuzz harnesses, reproducing fuzz-found crashes.
Как установить скилл bitcoin-testing-fuzz?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bitcoin-testing-fuzz запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic