/bugfinding:native-memory-instrumentationfrom bugfinding
Guides native memory bugfinding with ASan, MSan, UBSan, LSan and Valgrind Memcheck. Use when selecting an executable memory-safety observation, instrumenting native or FFI dependencies, or investigating sanitizer reports, leak phases and missing diagnostic coverage.
Ships in bugfinding. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Choose a missing memory property on an actual native producer, then search executions that can violate it. ASan addressability, MSan definedness and selected UB checks observe different failures; they are not interchangeable correctness oracles (ASan, Introduction, MSan, Introduction, UBSan, Available checks).
Read the target's allocation, initialization, publication/use and destruction paths, enabled build, native modules and valid-call contract. State which property the lane can refute and where its observation ends. The ASan paper documents addressable wrong-object accesses and allocator reuse as missed cases: a far out-of-bounds access "may land in a different valid allocation", and a use-after-free may go undetected after a large allocate/free burst. More executions alone do not remove those observer limits (ASan paper, §3.5).
| Intended observation | Read when selecting or running it |
|---|---|
| Native addressability/lifetime, definedness, selected UB or unreachable allocations | Compatible sanitizer lanes |
| Existing executable under binary instrumentation, custom pools and leak-error policy | Memcheck operation |
| Go/cgo or Windows native/managed boundary | Native integration boundaries |
| Report, scan completion and replay evidence | Diagnostics and worked cases |
These are this pack's responsibility routes. Use coverage-guided-fuzzing or the semantic/stateful generators for input search, race-detection-campaigns for conflicting-access detection, and resource-complexity-testing for retained-growth contracts.
Verify the selected compiler/runtime/platform and loaded objects before execution. MSan "requires that all program code is instrumented", "even libc", and uninstrumented code "may result in false reports"; its interceptors cover only "the most common libc functions", so a driver-only flag is not dependency coverage. Clang's actual incompatibility table also rejects several sanitizer combinations, so choose compatible builds rather than an all-tools binary (MSan, Handling external code, Clang driver, IncompatibleGroups).
Use an existing fitting build and real workload, or change the existing owner only within the task's authority. Exercise relevant allocation/lifetime sequences and the intended observation; use harness-sensitivity for a representative healthy/faulty control. Retain selected instrumentation, allocator and diagnostic settings: the larger the redzone, "the larger the overflows or underflows that will be detected", and freed memory waits in a FIFO quarantine that "holds a fixed amount of memory". The paper's overhead figures used "32-byte redzones" with quarantine set to zero, so historical overhead is not a forecast for a new target (ASan paper, §§3.3, 3.5 and 4).
Observe raw diagnostics, process status and whether the requested leak phase actually ran. For most UBSan checks the program "prints a verbose error report and continues execution"; with Memcheck's default --error-exitcode=0, "the return value from Valgrind will always be the return value of the process being simulated". Memcheck's leak search runs "when the client program finishes", so a timeout with no completed leak scan is not a clean leak result (UBSan, Usage, Valgrind core, §2.7.3 Error-related Options, Memcheck, §4.3).
Do not add suppressions or unpoisoning to make an unexplained report green. Preserve any existing omissions: under an MSan ignorelist "all values loaded from memory will be considered fully initialized", and __lsan_ignore_object marks an object "(and anything reachable from it)" as a non-leak (MSan, Ignorelist, LSan, Programmatic Disabling). See common mistakes.
Keep original input/setup/prior sequence, valid-call evidence, actual loaded-module/source/build identity, compiler/runtime/architecture, flags, allocator/root settings, raw diagnostic and status, allocation/free/origin stacks, scan phase and actual replay attempts. ASan symbolization needs llvm-symbolizer via ASAN_SYMBOLIZER_PATH or $PATH (offline symbolization starts from ASAN_OPTIONS=symbolize=0), and its reports carry "freed by" and "previously allocated by" stacks; rebuild differences must remain visible (ASan, Symbolizing the Reports).
Return the tested producer/property, actual execution budget, observed coverage and omissions, report/replay paths, supported violations and unresolved cases. Route reduction and attribution to failure-reduction and evidence-based-triage; a diagnostic does not by itself establish exploitability or every underlying cause. Retain bounded negative results with their observation limits.
Invocation preserves existing scope and runner rules; it does not authorize installing tools, changing targets or publishing findings.
references/common-mistakes.md (opens in a new tab)references/diagnostics-and-cases.md (opens in a new tab)references/memcheck-operation.md (opens in a new tab)references/native-boundaries.md (opens in a new tab)references/sanitizer-lanes.md (opens in a new tab)references/sources.yaml (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ctoth/computational-bugfinding-skills-plugin --plugin bugfinding26 skills in this plugin
/bounded-model-checkingGuides source-linked CBMC, JBMC and Kani checks with explicit input domains, unwind bounds and executable counterexamples. Use when finite hard paths or invariants merit solver search beyond fuzzing, or when interpreting bounded verification, vacuous success or counterexample playback./bugfinding-campaignGuides compute-budgeted bugfinding campaigns by finding gaps in existing generators, execution models and correctness oracles. Use when choosing what to test next, extending an established fuzzing setup, or deciding whether more compute will produce useful evidence./configuration-differential-testingOther plugins' skills for the same job