/qa-test-data:malicious-payload-bankfrom qa-test-data
Catalog of adversarial inputs for negative tests, fuzz targets, and security tests: SQL injection, XSS, SSRF, path traversal, command injection, XXE, prototype pollution, ReDoS, Unicode confusables, and header injection.
Ships in qa-test-data. 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.
None: SKILL.md is the whole skill.
Terminology note: The payload classes here are practitioner-emergent and align with the OWASP Top 10 (owasp-top-10) and CWE Top 25 (cwe-top-25) - both authoritative industry sources. ISTQB has no canonical entry for "malicious payload"; the closest formal term is "security testing."
A reference catalog of adversarial inputs to use when authoring negative tests, security tests, or fuzz targets. This is a defensive skill - for testing your own application's input validation, not for unauthorized testing of others' systems.
negative-test-generator).Apply to: any input that flows into a SQL query (URL params, form fields, headers, cookies).
' # syntactic break
' OR '1'='1 # always-true
' OR '1'='1' -- # comment terminator
'; DROP TABLE users; -- # stacked statement
' UNION SELECT NULL, version() -- # information disclosure via UNION
admin'-- # bypass auth via comment
Modern context: parameterized queries / ORM eliminate most SQLi; the payload bank verifies your input still flows through parameterization (no string concatenation slipped in).
Apply to: any input that may be rendered to HTML (display name, comment text, URL params reflected on the page, error messages).
<script>alert(1)</script>
"><script>alert(1)</script>
javascript:alert(1)
<img src=x onerror=alert(1)>
<svg onload=alert(1)>
'-alert(1)-' # context-break in JS string
Test contexts: HTML body, HTML attribute, JS string, URL, CSS. Each has a different escape requirement; the payloads exercise each.
Apply to: any input that becomes an outbound URL (image fetch, webhook, OAuth callback, link preview).
http://169.254.169.254/latest/meta-data/ # AWS instance metadata
http://metadata.google.internal/ # GCP metadata
http://localhost:6379/ # Redis (no auth in many setups)
file:///etc/passwd # local file read
gopher://localhost:6379/_*1%0d%0aSET%20test%20pwn%0d%0a # protocol smuggling
Test: does the application fetch arbitrary user-supplied URLs without an allowlist? Does it follow redirects to internal hosts?
Apply to: any input that becomes a file path (file uploads, template names, image paths, log file selection).
../etc/passwd
..%2fetc%2fpasswd # URL-encoded ..
....//etc/passwd # double-dot bypass for naive filters
%2e%2e/etc/passwd # full URL-encoded
..\..\..\..\windows\win.ini # Windows
%c0%ae%c0%ae/etc/passwd # over-long UTF-8 bypass
Apply to: any input that flows into a shell command, backticks,
exec / system / popen.
; ls
| ls
&& cat /etc/passwd
` cat /etc/passwd `
$(cat /etc/passwd)
%0a cat /etc/passwd # newline-injection
Apply to: any input that's parsed as XML (SOAP endpoints, SVG upload, XML config import).
<?xml version="1.0"?>
<!DOCTYPE foo [
<!ENTITY xxe SYSTEM "file:///etc/passwd">
]>
<root>&xxe;</root>
Apply to: any JS / Node.js input that flows into object merge
(query-string parsers, body parsers, lodash _.merge, Object spread).
{"__proto__": {"polluted": "yes"}}
{"constructor": {"prototype": {"polluted": "yes"}}}
Apply to: any regex with backtracking applied to user input.
aaaaaaaaaaaaaaaaaaaaaaaa! # for /^(a+)+$/
aaaaaaaaaaaaaaaaaaaaaaaa@aaaaaa # for typical email regexes
Test: does the regex complete in linear time on adversarial
input? Tooling like safe-regex (Node) or re2 (Google's
linear-time regex engine) eliminates this class.
Apply to: any input that's compared for equality, used as a display name, or used in security boundaries (admin checks, domain validation).
аdmin # Cyrillic 'а' (U+0430), not Latin 'a' (U+0061)
gооgle.com # Cyrillic 'о' in google
"Admin" # NFKC-normalized variant
ff # ligature for 'ff'
The CLDR / Unicode Consortium maintains the canonical confusables list.
Apply to: any input that flows into a response header (CRLF
injection in URL params reflected as Location, Set-Cookie).
test%0d%0aSet-Cookie:%20admin=true # CRLF + cookie injection
test%0aLocation:%20http://evil.com # response splitting
| Context | Payload classes to try |
|---|---|
| URL query parameter | SQLi, XSS (reflected), SSRF (if used as URL), path traversal (if used as file ref), CRLF. |
| Form field (text) | SQLi, XSS (stored), Unicode confusables. |
| File upload filename | Path traversal, command injection (if shelled out), Unicode confusables. |
| File upload content | XXE (if XML), polyglot (image+JS), zip bomb. |
| JSON body field | SQLi, XSS, prototype pollution, Unicode confusables. |
| HTTP header | CRLF, header value injection, Unicode in Host. |
| Webhook URL | SSRF, internal-IP variants. |
OAuth redirect_uri | Open redirect, SSRF. |
| Search field (with regex) | ReDoS, SQLi. |
import pytest
XSS_PAYLOADS = [
"<script>alert(1)</script>",
"<img src=x onerror=alert(1)>",
"javascript:alert(1)",
]
@pytest.mark.parametrize("payload", XSS_PAYLOADS)
def test_comment_field_rejects_or_escapes_xss(payload):
response = post_comment(text=payload)
# Either the input is rejected (4xx) or the response renders escaped
assert response.status_code in (400, 422) or '<script>' not in response.body
@given(payload=sampled_from(SQLI_PAYLOADS))
def test_search_does_not_execute_sql(payload):
response = search(query=payload)
# Should never expose DB state
assert "syntax error" not in response.body.lower()
assert response.status_code in (200, 400)
| Anti-pattern | Why it fails | Fix |
|---|---|---|
| Treating XSS payloads as "stored examples" without checking response shape | A test that just sends and ignores response misses the actual vulnerability. | Always assert: payload is rejected OR rendered escaped. |
| Running these against production | Even synthetic-looking payloads may trip WAFs / alerts; risk to oncall. | Always against staging / local; document with the security team if production fuzzing is required. |
| Shipping these payloads in production seed data | Real users see the strings; possible inadvertent execution. | Synthetic-PII fixtures (per synthetic-pii-generator) for prod-shape; this catalog only for tests. |
| Skipping Unicode confusables | Most-overlooked class; a аdmin (Cyrillic а) may bypass an admin-name allowlist. | Include confusables in any test against an identity allowlist. |
| Hand-rolling new payloads from blogs | Stale; misses encoded variants; misses platform-specific cases. | Maintain this catalog; review against the OWASP Cheat Sheet Series quarterly. |
For each class, the canonical mitigation:
| Class | Mitigation |
|---|---|
| SQLi | Parameterized queries; never string concat. ORM use is fine if you don't fall back to raw SQL. |
| XSS | Output encoding per context (HTML / JS / CSS / URL); CSP nonces. |
| SSRF | URL allowlist; reject internal IP ranges (RFC 1918, 169.254.x); per-domain rate limit. |
| Path traversal | Canonicalize paths; assert resolved path is under the allowed root. |
| Command injection | Avoid exec/system with user input; use argv arrays not strings. |
| XXE | Disable DTD processing in the XML parser. |
| Prototype pollution | Object.create(null) for user-data objects; --disable-proto Node flag. |
| ReDoS | Use linear-time regex engines (re2); set timeouts. |
| Unicode confusables | NFKC-normalize before comparison; reject mixed-script identifiers. |
| Header injection | Strip \r\n from header values; use a header library that does this for you. |
negative-test-generator - sibling skill that generates rejection-path tests; consumes
this catalog as input.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub testland/qa --plugin qa-test-data12 skills in this plugin
/boundary-value-generatorUse when writing or extending tests for a function, form field or endpoint with limits (min/max values, string length in characters or bytes, collection size), or after a bug at a limit, such as a maximum-length value rejected or a too-short one accepted: generates the boundary-value cases, one below, at and above each bound, plus one representative per equivalence class, and emits them as parameterized tests (pytest @parametrize, Jest test.each, xUnit InlineData)./faker-dataFixes test data that breaks tests - factory values in a shape the code under test rejects (a phone number that is not E.164), fixtures that only pass when the whole suite runs in order, and random values that make an assertion pass or fail depending on the run. Authors test-data factories with Faker: the Python `faker` library, the `@faker-js/faker` JS port, and the `faker-ruby` gem - install per language, the provider catalogue (person / internet / location / date / finance / lorem), locale selection and multi-locale mode, and seed-based determinism for reproducible runs. Scope is generating fresh values for tests that start from nothing, not replacing values inside a dataset that already holds real records - that goes to pii-masking-pipeline-builder. Use when fixtures need realistic values, a stable shape, or a fixed seed.2 plugins ship this exact skill · first indexed Nov 12, 2026
Other plugins' skills for the same job