本文へ移動
cccskills
無料GitHub で公開

malicious-payload-bank

Reference catalog of curated adversarial input payloads keyed by attack class - SQL injection, XSS, SSRF, path traversal, command injection, XXE, prototype pollution, regex DoS, Unicode confusables, header injection - plus per-context guidance for which payloads apply (URL parameter / form input / JSON body / file upload). Use when authoring negative-test cases for input validation, fuzz targets, or a security-focused test suite that needs to exercise the OWASP Top 10 attack surface.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qaスター 13(GitHub 13 + cccskills 0)

実行スコア 未検証

インストール方法を見る

含まれるファイル(2)

  • SKILL.md10.5 KB
  • .tessl-plugin/plugin.json626 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

malicious-payload-bank

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.

When to use

  • Writing negative-test cases for an input validator (per negative-test-generator).
  • Authoring a security-focused test suite.
  • Generating inputs for a fuzz target (Schemathesis, RESTler, AFL).
  • Reviewing input-handling code with adversarial intent in mind.

Payload classes

SQL Injection (CWE-89)

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).

Cross-Site Scripting (CWE-79)

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.

Server-Side Request Forgery (CWE-918)

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?

Path Traversal (CWE-22)

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

Command Injection (CWE-78)

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

XML External Entity (CWE-611)

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>

Prototype Pollution (CWE-1321)

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"}}}

ReDoS - Regex Denial of Service (CWE-1333)

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.

Unicode Confusables / Homoglyph

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.

HTTP Header Injection (CWE-93)

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

Per-context payload selection

ContextPayload classes to try
URL query parameterSQLi, 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 filenamePath traversal, command injection (if shelled out), Unicode confusables.
File upload contentXXE (if XML), polyglot (image+JS), zip bomb.
JSON body fieldSQLi, XSS, prototype pollution, Unicode confusables.
HTTP headerCRLF, header value injection, Unicode in Host.
Webhook URLSSRF, internal-IP variants.
OAuth redirect_uriOpen redirect, SSRF.
Search field (with regex)ReDoS, SQLi.

How to use in tests

Negative test (rejection-path verification)

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

Fuzz target

@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-patterns

Anti-patternWhy it failsFix
Treating XSS payloads as "stored examples" without checking response shapeA test that just sends and ignores response misses the actual vulnerability.Always assert: payload is rejected OR rendered escaped.
Running these against productionEven 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 dataReal users see the strings; possible inadvertent execution.Synthetic-PII fixtures (per synthetic-pii-generator) for prod-shape; this catalog only for tests.
Skipping Unicode confusablesMost-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 blogsStale; misses encoded variants; misses platform-specific cases.Maintain this catalog; review against the OWASP Cheat Sheet Series quarterly.

Defensive guidance

For each class, the canonical mitigation:

ClassMitigation
SQLiParameterized queries; never string concat. ORM use is fine if you don't fall back to raw SQL.
XSSOutput encoding per context (HTML / JS / CSS / URL); CSP nonces.
SSRFURL allowlist; reject internal IP ranges (RFC 1918, 169.254.x); per-domain rate limit.
Path traversalCanonicalize paths; assert resolved path is under the allowed root.
Command injectionAvoid exec/system with user input; use argv arrays not strings.
XXEDisable DTD processing in the XML parser.
Prototype pollutionObject.create(null) for user-data objects; --disable-proto Node flag.
ReDoSUse linear-time regex engines (re2); set timeouts.
Unicode confusablesNFKC-normalize before comparison; reject mixed-script identifiers.
Header injectionStrip \r\n from header values; use a header library that does this for you.

References

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Builds a CI gate that fails the build on **new** WCAG / a11y violations introduced by a PR while grandfathering pre-existing violations on a per-rule / per-page baseline. Aggregates verdicts from axe-core / pa11y / Lighthouse a11y / WAVE / IBM Equal Access scans. Use when a project has accumulated a11y debt and a strict "zero violations" gate would block every PR - the ratchet pattern lets the team ship while preventing regressions.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

Workflow skill that builds an A/B-test validity checklist from an experiment proposal, walking the canonical design-correctness gates - pre-registered OEC/power/guardrails, randomization unit + SRM check, assignment integrity, telemetry, peeking discipline, novelty/primacy, post-experiment SRM re-check - into a per-experiment checklist + sign-off form. Use when launching, auditing, or governing an experiment. For pitfall mechanics (guardrails, peeking) see experiment-results-interpreter's references; to read an already-valid result use experiment-results-interpreter; for per-SDK harness tests use experiment-sdk-testing - this gates DESIGN, not SDK code.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

The single install-flow skill: the reference contract for the PWA install flow (installability gate fields, `beforeinstallprompt` handshake, per-platform paths - Android WebAPK / iOS Share menu / Firefox no-op - and the `display-mode` post-install signal, in references/install-flow-reference.md) plus the build-an-X workflow that emits the Add-to-Home-Screen suite. Walks the four-stage timeline, emitting one test per gate cell per [web.dev/articles/install-criteria][install-criteria], the deferred-prompt → `prompt()` → `userChoice` chain per [web.dev/articles/customize-install][customize-install], the iOS Safari manual-metadata branch (`apple-touch-icon`) per [web.dev/learn/pwa/installation][learn-pwa], and the post-install `(display-mode: standalone)` MQ assertion. Output: a Playwright spec with per-stage cells plus a coverage matrix. Use when a PWA's manifest, icons, or install handler change, when install conversion drops at an unknown stage, or when triaging a flaky install assertion.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

Build-an-X workflow that uses an LLM to map existing tests to spec sections - given a spec doc + the test suite, the LLM identifies which tests cover which sections, surfaces uncovered sections (gap), and recommends specific tests to add. Output is a coverage matrix per spec ID. Scope is mapping tests that already exist and naming the gaps, not authoring tests for new acceptance criteria. Use when a spec doc and a test suite both exist but nobody can say which requirements are actually covered - before a release sign-off, an audit, or a decision about where to spend the next round of test effort.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

Generates tests from natural-language specs (acceptance criteria, user stories, requirements) using an LLM, with confidence scoring per test case (LLM self-assessment plus heuristics: assertion quality, naming, completeness), batching uncertain cases for human review, and integration with the team's existing test framework. Use when the user asks to generate unit tests from acceptance criteria, convert user stories to test cases, automate test creation from requirements, or augment a spec-driven test suite with AI-generated stubs that are then curated before merge.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

Configures Allure Report (test-runner adapter install, `allure-results` directory wiring, `categories.json` for failure classification, `history-trend.json` retention via the copy-history-between-runs pattern), runs the Allure CLI to convert `allure-results` to a static HTML site, and uploads the report as a CI artifact. Use when the team needs richer test reporting than JUnit XML - step-level attachments, per-test history, retry tracking, and severity / epic / feature labeling across framework-agnostic adapters (pytest, Jest, JUnit, TestNG, NUnit, Mocha). As a rich static HTML report generator, it is the open-source alternative to the sunset ExtentReports (JVM/.NET per-test HTML narrative); for hosted cross-run flakiness analytics rather than a static per-run report use currents-integration.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

testland のスキルをすべて見る

このスキルの問題を報告する