Battle-tested regular expressions for finding secrets, scraping endpoints from source, spotting ReDoS, and recon with grep/ripgrep. (24 payloads)
AKIA[0-9A-Z]{16}(?i)aws(.{0,20})?(secret|sk)(.{0,20})?['\"][0-9a-zA-Z/+]{40}['\"]eyJ[A-Za-z0-9_-]+\.eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+-----BEGIN (?:RSA |EC |OPENSSH |DSA )?PRIVATE KEY-----AIza[0-9A-Za-z_-]{35}xox[baprs]-[0-9A-Za-z-]{10,48}gh[pousr]_[0-9A-Za-z]{36,}https?://[^\s\"'<>)]+[\"'](\/[a-zA-Z0-9_?&=\/.-]+)[\"'][a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}[a-z0-9.-]+\.s3(?:[.-][a-z0-9-]+)?\.amazonaws\.com(?:\b25[0-5]|\b2[0-4][0-9]|\b1?[0-9]?[0-9])(?:\.(?:25[0-5]|2[0-4][0-9]|1?[0-9]?[0-9])){3}^[a-zA-Z0-9_]+$validvalue%0a<script>alert(1)</script><ScRiPt>java\u0000script:^(a+)+$^(\d+)*$^(.*a){25}$aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!rg -i --no-heading -o '(api[_-]?key|secret|token|passwd|password)\s*[=:]\s*[\x27\"][^\x27\"]+' .rg -o 'AKIA[0-9A-Z]{16}' -g '!node_modules' .grep -rEho 'https?://[^\"]+' dist/ | sort -ugit log -p | rg -i 'BEGIN .*PRIVATE KEY|AKIA[0-9A-Z]{16}'Level up your security testing
Install the CLI
npx payload-playgroundExplore All Tools
Encoding, hashing, JWT & more
Browse Cheat Sheets
Quick-reference payload guides
It's a quick-reference collection of 24 Security Regex payloads for testing Regex for Security vulnerabilities during authorized penetration testing, bug bounties, and CTFs. Every payload is copy-ready and grouped by attack context.
Copy any payload straight into your authorized test, or use the Regex Tester to apply them interactively. Only test systems you have explicit permission to assess.
Yes — this cheat sheet and all Security Regex payloads are completely free, with no account required. Everything runs in your browser.