ai-ml-attacks
This skill should be used when the user asks about "AI security", "ML pipeline attacks", "prompt injection", "model…
This skill should be used when the user asks about "Next.js security", "React security", "Server Components", "Server Actions", "Route Handlers", "RSC vulnerabilities", "SSR security", or needs comprehensive Next.js/React security analysis during whitebox security review.
Claude Code
$ npx -y skills add allsmog/vuln-scout --skill nextjs-react --agent claude-code
Codex
$ npx skills add allsmog/vuln-scout --skill nextjs-react -a codex -y
Cursor
$ npx skills add allsmog/vuln-scout --skill nextjs-react -a cursor -y
Gemini CLI
$ npx skills add allsmog/vuln-scout --skill nextjs-react -a gemini-cli -y
GitHub Copilot
$ npx skills add allsmog/vuln-scout --skill nextjs-react -a github-copilot -y
OpenCode
$ npx skills add allsmog/vuln-scout --skill nextjs-react -a opencode -y
Windsurf
$ npx skills add allsmog/vuln-scout --skill nextjs-react -a windsurf -y
name: nextjs-react description: This skill should be used when the user asks about "Next.js security", "React security", "Server Components", "Server Actions", "Route Handlers", "RSC vulnerabilities", "SSR security", or needs comprehensive Next.js/React security analysis during whitebox security review.
Comprehensive security patterns for Next.js and React applications, covering both client-side and server-side attack surfaces.
┌─────────────────────────────────────────────────────────────┐ │ Next.js Application │ ├─────────────────────────────────────────────────────────────┤ │ │ │ Client-Side (Browser) Server-Side (Node.js) │ │ ┌──────────────────┐ ┌──────────────────────┐ │ │ │ React Components │ │ Server Components │ │ │ │ Client Actions │◄────────►│ Server Actions │ │ │ │ useEffect/State │ │ Route Handlers │ │ │ └──────────────────┘ │ Middleware │ │ │ │ getServerSideProps │ │ │ └──────────────────────┘ │ │ │ └─────────────────────────────────────────────────────────────┘
# Find all Server Actions grep -rn '"use server"' --include="*.ts" --include="*.tsx" # Find all Route Handlers find . -path "*/app/api/*" \( -name "route.ts" -o -name "route.js" \) # Find middleware find . -name "middleware.ts" -o -name "middleware.js" # Find page components find ./app -name "page.tsx" -o -name "page.js"
# Server Actions called from forms grep -rn "action=" --include="*.tsx" | grep -v node_modules # Server Actions called programmatically grep -rn "startTransition\|useTransition" --include="*.tsx" # Route Handler methods grep -rn "export.*function\s\+\(GET\|POST\|PUT\|DELETE\|PATCH\)" --include="route.ts"
# Find auth patterns
grep -rn "getServerSession\|getSession\|auth\(\)" --include="*.ts" --include="*.tsx"
# Find unprotected handlers (no auth import)
for f in $(find . -path "*/app/api/*" -name "route.ts"); do
if ! grep -q "getServerSession\|auth\|verify" "$f"; then
echo "Potentially unprotected: $f"
fi
done# Find request data access
grep -rn "request\.json\|request\.formData\|request\.text" --include="*.ts"
# Find database operations
grep -rn "prisma\.\|db\.\|sql\`\|query\(" --include="*.ts"
# Find external API calls
grep -rn "fetch\(\|axios\.\|got\(" --include="*.ts"See `framework-patterns/nextjs-patterns.md` for detailed pattern.
// VULNERABLE: No auth check
export async function DELETE(req: Request) {
const { id } = await req.json();
await db.user.delete({ where: { id } }); // Anyone can delete!
return Response.json({ success: true });
}// VULNERABLE: Sensitive data exposed
async function UserProfile({ userId }: { userId: string }) {
const user = await db.user.findUnique({ where: { id: userId } });
// Full user object including password hash goes to client!
return <ClientProfile user={user} />;
}// VULNERABLE: Case-sensitive matching
export const config = {
matcher: '/admin/:path*' // /Admin/secret bypasses!
}Next.js vulnerabilities often enable chains:
| Next.js Vulnerability | Chains To | |----------------------|-----------| | Server Action SSRF | Internal Flask/Django SSTI | | Server Action SSRF | Cloud metadata (169.254.169.254) | | Route Handler SQLi | Data exfiltration, auth bypass | | Middleware Bypass | Admin panel access | | Data Leak | Credential theft, session hijacking |
AI-powered whitebox penetration testing plugin for Claude Code. 9 languages, 22 skills, 7 autonomous agents. STRIDE threat modeling, OWASP 2025 coverage, polyglot monorepo support.
This skill should be used when the user asks about "AI security", "ML pipeline attacks", "prompt injection", "model…
This skill should be used when the user asks about "business logic", "workflow vulnerability", "trust boundary", "state machine",…
This skill should be used when the user asks about "cache poisoning", "web cache deception", "CDN cache", "proxy cache", "nginx…
This skill should be used when the user asks about "cloud security", "AWS security", "GCP security", "Azure security",…
This skill should be used when the user asks about "compliance mapping", "PCI-DSS", "HIPAA", "SOC 2", "NIST CSF", "regulatory…
This skill should be used when the user asks about "Code Property Graph", "CPG analysis", "Joern queries", "CPGQL", "data flow…
Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication,…
Extract and decrypt Windows DPAPI-protected secrets (Credential Manager, browser logins/cookies, Wi-Fi credentials, KeePass keys)…
Clean and finalize authorized natural-language text intended for readers by auditing suspicious invisible Unicode and rewriting…