harperaa avatar

Security Testing Verification

This is your pre-deployment security checklist in runnable form. It walks you through testing CSRF protection (token validation, reuse prevention), rate limiting (verifies 429s kick in after threshold), input sanitization (XSS, length checks), security headers (CSP, X-Frame-Options), and auth boundaries. The real value is the copy-paste curl commands and automated test scripts that let you verify everything actually works before you ship. It's built around Node.js apps using Clerk for auth and assumes you've already implemented the security features. Think of it as the verification step, not the implementation guide. If you're deploying without testing your rate limits or CSRF tokens, this gives you the commands to prove they're working.

skills.sh installs
198
GitHub stars
18
last updated
Aug 21, 2026

Install

$ npx -y skills add harperaa/secure-claude-skills --skill security-testing-verification --agent claude-code

Installs into .claude/skills of the current project.

Files

Security Testing & Verification

Built-In Security Tests

This project includes automated tests and verification scripts for all security features.

Testing Rate Limiting

Automated Test Script

# Run the provided test script
node scripts/test-rate-limit.js

What it tests:

  • Makes 10 consecutive requests to rate-limited endpoint
  • Verifies first 5 succeed (HTTP 200)
  • Verifies requests 6-10 are blocked (HTTP 429)
  • Tests rate limit reset after 60 seconds

Expected output:

Testing Rate Limiting (5 requests/minute per IP)
Request  1: ✓ 200 - Success
Request  2: ✓ 200 - Success
Request  3: ✓ 200 - Success
Request  4: ✓ 200 - Success
Request  5: ✓ 200 - Success
Request  6: ✗ 429 - Too many requests
Request  7: ✗ 429 - Too many requests
Request  8: ✗ 429 - Too many requests
Request  9: ✗ 429 - Too many requests
Request 10: ✗ 429 - Too many requests

✓ Rate limiting is working correctly!

Manual Testing

# Test rate limiting manually
for i in {1..10}; do
  echo "Request $i:"
  curl -s -o /dev/null -w "%{http_code}\n" \
    http://localhost:3000/api/test-rate-limit
  sleep 0.1
done

Sponsors

Details

Repository
github.com/harperaa/secure-claude-skills
Categories
Testing & QA, Security
First seen
Jun 3, 2026

More from harperaa/secure-claude-skills

All 12
1jwilger avatartddjwilger/agent-skillsUse this skill whenever the user wants to write code using TDD, test-driven development, or test-first methodology. Triggers on: "/tdd", "let's do TDD", "write 195skills.sh installs
2charleswiltgen avataraxiom-testing-asynccharleswiltgen/axiomUse when testing async code with Swift Testing. Covers confirmation for callbacks, @MainActor tests, async/await patterns, timeout control, XCTest migration, pa176skills.sh installs
3rysweet avataroutside-in-testingrysweet/amplihackDeprecated compatibility alias for qa-team. Use when existing recipes or agents still invoke outside-in-testing by name. Redirects future work to the qa-team sk134skills.sh installs
4codeaholicguy avatartddcodeaholicguy/ai-devkitAI DevKit · Test-driven development — write a failing test before writing production code. Use when implementing new functionality, adding behavior, or fixing b0skills.sh installs
5davila7 avatarAWS Penetration Testingdavila7/claude-code-templatesThis skill should be used when the user asks to "pentest AWS", "test AWS security", "enumerate IAM", "exploit cloud infrastructure", "AWS privilege escalation",0skills.sh installs
6davila7 avatarBroken Authentication Testingdavila7/claude-code-templatesThis skill should be used when the user asks to "test for broken authentication vulnerabilities", "assess session management security", "perform credential stuf0skills.sh installs