Input boundary testing

From xalgorix/xalgorix · View interactive version

Input boundary testing is an AI agent skill from the GitHub repository xalgorix/xalgorix. Reason about every parameter expected domain and violate it - boundary values, type and shape confusion, encoding differentials, duplicate parameters, query/body and header conflicts, nested-structure abuse - generating hypotheses that scanners miss and routing class signals to specialist skills.

How to use this skill

Skill file

Input Boundary and Type-Confusion Testing

Purpose

Scanners send known payload strings; this skill instead reasons about what each parameter MEANT to be and what happens when it arrives as something else. Type, shape, encoding, and multiplicity violations find the bugs pattern-matching cannot: parser confusion, mass assignment, silent coercion, and validation layers that disagree with processing layers. This skill generates HYPOTHESES; when a class signal appears, the specialist skill handles exploitation depth.

Entry Conditions

Step 1: Expected-Domain Reasoning

For each parameter write down its expected domain. quantity expects positive integer, role expects enum, user_id expects string uuid, sort expects column name. The expected domain is the INVARIANT; every test violates one aspect of it. Do not waste rounds on display-only parameters - prioritize parameters that reach authorization decisions, money, state transitions, or queries.

Value Boundaries (for numeric-ish parameters)

0, -1, MAX_INT (2147483647), MAX_INT+1 (2147483648), -MAX_INT-1
float where int expected (1.5, 0.001, 1e3, 1e309)
string where number expected ("10", " 10", "10\n", "0x10", "1,000", "10.0")
null, empty string, absent field
true / false (JSON booleans where int/string expected)

Integer overflow/underflow at parse, store, and compute time are three different bugs - if 2147483648 is accepted, observe what got stored (2000000000? wrapped negative? rejected at a later layer?).

Type and Shape Confusion

Encoding and Parser Differentials

Methodology

list meaningful parameters per endpoint (from the application model)
-> write the expected domain for each
-> ONE violation per request (attribute results cleanly)
-> observe: response AND stored state AND downstream effect (re-fetch)
-> classify the anomaly:
     silent acceptance -> coercion bug / missing validation
     error leak -> information disclosure lead
     class signal (SQL/NoSQL error, template output, redirect, fetch) -> specialist skill
-> record hypothesis/evidence in the ledger with the exact request

Evidence Contract

Not enough: the endpoint accepted quantity -1 (HTTP 200).

Good proof: the stored/persisted object reflects the out-of-domain value (negative quantity persisted as a credit, wrapped total persisted, role field readable in the re-fetched object).

Not enough: duplicate keys returned 200.

Good proof: the SECOND value took effect in application behavior (role=admin visible in a re-fetch or in what the session can now access).

Pure type-rejection with clean errors is a NEGATIVE - close it and move on.

Anomaly-to-Specialist Routing

| Signal observed | Load specialist |

|---|---|

| SQL/NoSQL error, boolean-based difference in query behavior | sql-injection / nosql-injection |

| {{7*7}}-style evaluation, template error | ssti |

| Server-side fetch attempt from an injected URL | ssrf |

| Role/admin field persisted | exploiting-mass-assignment-in-rest-apis |

| Path-shaped value reaching a file operation | path-traversal-lfi-rfi |

| Reflection with markup interpretation | xss |

| Deserialization of attacker-shaped structures | insecure-deserialization |

| Parser confusion between framework layers | security-control-differential-testing (this category) |

Common Misses

False Positives

Xalgorix Tool Strategy

Stopping Rule

Stop when: every meaningful parameter on privileged/state-changing endpoints has had its domain violated at least once (value class, shape class, encoding class), one alternate Content-Type has been tried per major endpoint family, and two consecutive rounds produce no new anomaly classes. Then hand the strongest signals to the matching specialist and go deep there instead of mutating every remaining permutation.

Handoffs

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.