Documentation
¶
Overview ¶
Package fuzz generates schema-driven payloads for a tool's declared JSON Schema input. Payloads use inert markers rather than destructive commands or real hosts, and a seed makes them reproducible.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CanaryFile ¶
CanaryFile is one planted canary a payload can aim at: its ID, so a canary_hit can be traced back to the payload that targeted it, and its path relative to CanaryHome
type Case ¶
Case is one full set of tool arguments with exactly one property carrying a fuzz payload; every other required property is filled with a benign value so the tool is likely to actually accept the call
type Class ¶
type Class string
Class identifies a payload family
const ( ClassPathTraversal Class = "path_traversal" ClassCommandInjection Class = "command_injection" ClassShellMetacharacter Class = "shell_metacharacters" ClassFileURI Class = "file_uri" ClassTemplateInjection Class = "template_injection" ClassUnicodeEdge Class = "unicode_edge_case" ClassOversized Class = "oversized_input" )
type Options ¶
type Options struct {
// CanaryFiles are the real planted canary files (see
// internal/runtime/canary) that path_traversal and file_uri payloads
// target when available
CanaryFiles []CanaryFile
// CanaryHome is where the sandbox plants those files inside the container
CanaryHome string
}
Options steers payload targets so they never point outside scanner-owned infrastructure
type Payload ¶
type Payload struct {
Class Class
Marker string
Value any
// Canary is the ID of the planted canary this payload was aimed at,
// empty when it aimed at none. A canary_hit observation names the
// canary that fired; without knowing which one a payload targeted,
// any hit read as proof that whatever payload happened to be running
// had worked.
Canary string
}
Payload is one injected value and the marker that identifies it in output