fuzz
This skill should be used when the user asks to "generate fuzz inputs", "create fuzz tests", "fuzz test generation", "generate test payloads", "create…
от florianbuetow★ 22 звезды на GitHub
Установить fuzz в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Fuzz Input Generation
Generate intelligent, context-aware fuzz test inputs by analyzing input parsing code. Produces boundary values, type confusion inputs, encoding edge cases, format-specific attacks, and injection payloads tailored to the specific parser and data types in scope. Output is structured JSON test case sets ready for integration with test harnesses.
Supported Flags
Read ../../shared/schemas/flags.md for the full flag specification.
| Flag | Fuzz Behavior |
|---|---|
--scope |
Identifies which input handlers to generate fuzz inputs for. Default changed. |
--depth quick |
Standard boundary values and common injection strings only. |
--depth standard |
Context-aware inputs based on code analysis of the parser. |
--depth deep |
Standard + format-specific attacks, encoding mutations, and chained payloads. |
--depth expert |
Deep + adversarial inputs designed to bypass specific validation logic found in code. |
--severity |
Generate inputs targeting vulnerabilities at or above this severity. |
--format |
Default json. Use text for human-readable listing. |
Workflow
Step 1: Identify Input Handlers
Locate input parsing and processing code in scope:
- API endpoint handlers: Functions that read request body, query params, headers.
- File parsers: Functions that parse uploaded files, config files, data imports.
- CLI argument parsers: Argument parsing with
argparse,commander,cobra,clap. - Message consumers: Functions processing messages from queues, WebSockets, SSE.
- Deserialization points: JSON.parse, XML parsing, YAML loading, protobuf decoding.
- Database query builders: Functions constructing queries from user input.
For each handler, identify:
- Expected input type (string, number, array, object, file).
- Validation rules (regex, schema, type checks, length limits).
- How the input is used downstream (SQL, shell, HTML, file path, URL, regex).
Step 2: Analyze Input Constraints
Read the code to understand what the parser expects and what it guards against:
- Type expectations: What types does the code assume? Where are type coercions?
- Length limits: Are there explicit length checks? What happens at max length?
- Character restrictions: Are certain characters filtered or escaped? Which ones?
- Format requirements: Does the input need to match a pattern (email, URL, date)?
- Range constraints: Numeric bounds, enum values, allowed file extensions.
- Nested structure: How deep can objects/arrays nest? Are there recursion limits?
Step 3: Generate Boundary Value Inputs
For each input field, generate boundary value test cases:
| Input Type | Boundary Values |
|---|---|
| String | Empty "", single char "a", max length, max length + 1, unicode BOM, null bytes "\x00" |
| Number | 0, -1, MAX_INT, MIN_INT, MAX_INT+1, NaN, Infinity, -Infinity, float precision edge cases |
| Array | Empty [], single element, very large array (10000+), nested arrays, mixed types |
| Object | Empty {}, deeply nested (100+ levels), circular reference attempt, prototype keys |
| Boolean | true, false, 0, 1, "", "false", null, undefined |
| Date | Epoch 0, negative timestamp, far future, invalid dates (Feb 30), timezone edge cases |
| File | Empty file, 0-byte, huge file, wrong extension, polyglot file, symlink |
Step 4: Generate Type Confusion Inputs
Inputs designed to exploit type coercion and type assumption bugs:
Generate inputs that send the wrong type: string where number expected, array where string expected, object with toString override, deeply nested arrays, null where required, boolean where string expected, numeric string where number expected, and prototype/constructor pollution objects (__proto__, constructor.prototype).
Step 5: Generate Encoding Edge Cases
Inputs exploiting encoding and character set handling:
- Unicode: Normalization forms (NFC, NFD, NFKC, NFKD), homoglyphs, right-to-left override, zero-width characters.
- URL encoding: Double encoding (
%2527), mixed encoding, overlong UTF-8. - HTML entities: Named (
&), numeric (&), hex (&), surrogate pairs. - Null bytes: Mid-string null bytes for truncation attacks.
- Line endings:
\r\n,\r,\n,\x0b,\x0c,\x85,\u2028,\u2029. - Case mapping: Turkish locale
I/idotless variants, Germanß/SS.
Step 6: Generate Context-Aware Injection Payloads
Based on how the input is used downstream (identified in Step 1), generate targeted payloads:
| Sink Context | Payload Category |
|---|---|
| SQL query | SQL injection: UNION, boolean blind, time blind, stacked queries, comment-based |
| Shell command | Command injection: semicolons, pipes, backticks, $(), newlines |
| HTML output | XSS: script tags, event handlers, SVG/MathML, template injection |
| Fil |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл fuzz?
This skill should be used when the user asks to "generate fuzz inputs", "create fuzz tests", "fuzz test generation", "generate test payloads", "create security test cases", or "generate edge case inputs". Also triggers when the user wants intelligent test inputs for input parsers, API endpoints, file format handlers, or needs context-aware injection payloads for security testing.
Как установить скилл fuzz?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл fuzz запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…