code-pattern-matching

Installation
SKILL.md

Code Pattern Matching

Search for code patterns in decompiled output using the Weggli pattern matching engine.

When to use

  • Find specific code patterns in decompiled functions (e.g., memcpy(dst, src, len))
  • Search for vulnerable code constructs across functions
  • Match variable usage patterns with semantic constraints
  • Locate specific function call patterns with regex filtering

Instructions

Using the VulHunt MCP tools, open the project (open_project) and run the following Lua query (query_project), adapting it as needed:

local decomp = project:decompile(<target_function>)

local matches = decomp:query({
  raw = true,  -- If true, the query will be used as-is; otherwise, it will be wrapped in {{}}
Related skills
Installs
6
GitHub Stars
15
First Seen
Mar 8, 2026