Skip to main content
rule CX Codex

pentest-agents-payloads-1 — Claude Code rule: XSS payloads reference

pentest-agents-payloads-1 is a Claude Code rule that loads an XSS payload reference for pentesting, from basic vectors to WAF bypass via stacked encoding.

no license ★ 1,298 updated 2026-06-12

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/rules/pentest-agents-payloads-1.md
Open on GitHub

What pentest-agents-payloads-1 does

The rule loads an XSS vector library into the agent's context, organized by scenario: basic injections, WAF bypass through DOM encoding, context-specific variants for attributes and JS strings. When alert(1) gets blocked by a WAF or overridden by the page, a seven-tier detector rotation is provided — from prompt and console.log to DOM mutation and OOB callbacks via fetch.

The signature technique is triple-layer encoding for Akamai and Cloudflare: an HTML entity hides the javascript: keyword, URL escaping masks unicode sequences, and the final decodeURIComponent in client-side JS unpacks the payload inside the app, bypassing WAF regex filters. The agent does not send payloads itself without tools like Burp or OWASP ZAP.

What it helps with

  • test a form for XSS with all basic vectors
  • bypass a WAF when alert(1) is blocked
  • prove code execution via DOM marker or OOB callback
  • test injection in a JS string or attribute context

Example prompts for the agent

  • Check the search field for XSS using basic payloads from the rule
  • If alert is blocked, rotate detectors up to tier 4
  • Build a triple-layer payload for Akamai bypass following the pentest-agents-payloads-1 example

How to install pentest-agents-payloads-1

Manually: put the files in place

.claude/rules/pentest-agents-payloads-1.md

The paths frontmatter field limits the files

Step by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use

Questions about pentest-agents-payloads-1

How to install pentest-agents-payloads-1 in Claude Code?

Create the file .claude/rules/pentest-agents-payloads-1.md and place the rule text inside.

What does pentest-agents-payloads-1 do?

It gives the agent an XSS payload reference: basic injections, WAF bypass techniques, seven detector rotation tiers, and a triple-encoding scheme for Akamai.

Why seven detector tiers?

alert(1) is blocked by 70 % of WAFs and often overridden by pages. Rotating through prompt, console.log, DOM mutation and OOB callbacks lets you prove execution when the standard detector fails.

Similar IDE rules

All IDE rules for Security →

From the same set43

The whole set →
browser-stealth-agent The browser-stealth-agent subagent drives Camoufox through a local REST server to inspect bot-protected pages, verify client-side bugs, and save evidence. CX Codex +1 ★ 1,298repo stars sast-devils-advocate sast-devils-advocate is a Claude Code skill that challenges SAST vulnerability candidates against the code. Run it with /sast to look for reasons a finding cannot be exploited. CX Codex +1 ★ 1,298repo stars sast-devils-advocate sast-devils-advocate is a Claude Code subagent that challenges SAST findings by looking for reasons a reported flaw cannot be exploited. Run it with /sast. CX Codex +1 ★ 1,298repo stars pentest-agents-payloads-7 The pentest-agents-payloads-7 rule for Claude Code provides test scenarios for SSRF, parameter injection, prototype pollution, and OAuth flaws during web security audits. CX Codex +1 ★ 1,298repo stars pentest-agents-payloads-4 pentest-agents-payloads-4 is a Claude Code rule with examples for reviewing web vulnerabilities, from JWT and deserialization to GraphQL and OAuth. It supports application security assessments. CX Codex +1 ★ 1,298repo stars pentest-agents-chain-table pentest-agents-chain-table is a Claude Code rule that directs security audit agents to chain verified vulnerabilities into exploit paths. CX Codex +1 ★ 1,298repo stars report-writer report-writer turns vulnerability findings into bug bounty submissions, penetration test reports, or technical write-ups. Use it when findings need clear evidence, impact, and remediation. CX Codex +1 ★ 1,298repo stars sast-danger-mapper sast-danger-mapper catalogs hazardous source code operations using pattern matching without speculating on exploitability. CX Codex +1 ★ 1,298repo stars

Project sponsors

Companies that keep this analytics open