framework-patterns
This skill should be used when the user asks about "framework vulnerabilities", "Next.js security", "Flask security", "Django security", "Rails security", "Spring security", "GraphQL security", "Server Actions", "render_template_string", "SSTI patterns", "redirect SSRF", "mass assignment", "actuator exposure", "SpEL injection", "introspection", or needs to identify framework-specific vulnerability patterns during whitebox security review.
Best use case
framework-patterns is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
This skill should be used when the user asks about "framework vulnerabilities", "Next.js security", "Flask security", "Django security", "Rails security", "Spring security", "GraphQL security", "Server Actions", "render_template_string", "SSTI patterns", "redirect SSRF", "mass assignment", "actuator exposure", "SpEL injection", "introspection", or needs to identify framework-specific vulnerability patterns during whitebox security review.
Teams using framework-patterns should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/framework-patterns/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How framework-patterns Compares
| Feature / Agent | framework-patterns | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
This skill should be used when the user asks about "framework vulnerabilities", "Next.js security", "Flask security", "Django security", "Rails security", "Spring security", "GraphQL security", "Server Actions", "render_template_string", "SSTI patterns", "redirect SSRF", "mass assignment", "actuator exposure", "SpEL injection", "introspection", or needs to identify framework-specific vulnerability patterns during whitebox security review.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Framework Security Patterns Framework-specific vulnerability patterns that arise from how modern web frameworks handle requests, responses, and data flow. These patterns are more durable than version-specific CVEs. ## Why Framework Patterns Matter 1. **Frameworks have implicit behaviors** - redirect(), Server Actions, template rendering have side effects 2. **Trust assumptions differ** - Internal vs external, server vs client boundaries 3. **Chains emerge** - Framework A's feature enables exploitation of Framework B's weakness ## Pattern Categories ### 1. Request Handling Patterns - Server Actions (Next.js) - Host header influence on internal requests - Route Handlers - Missing authentication on API routes - Middleware bypass - Path normalization differences ### 2. Template/Rendering Patterns - SSTI (Flask, Jinja2, Django, Twig) - User input in template strings - XSS via unsafe HTML insertion (React) - Prototype pollution in SSR ### 3. Redirect Patterns - Open redirect via unvalidated URLs - SSRF via server-side redirect (Next.js, PHP) - Header injection through redirect URLs ### 4. Deserialization Patterns - Pickle (Python) - Marshal (Ruby) - PHP unserialize - Java ObjectInputStream ## Detection Workflow 1. **Identify frameworks** in use (package.json, requirements.txt, Gemfile) 2. **Search for pattern signatures** specific to each framework 3. **Map data flow** from user input to dangerous framework APIs 4. **Check for sanitization** or validation before reaching sink ## Framework-Specific Skills - `nextjs-patterns.md` - Next.js Server Actions, redirect, Route Handlers - `flask-patterns.md` - Flask/Jinja2 SSTI, unsafe deserialization - `references/django-patterns.md` - Django ORM bypass, template injection, CSRF bypass, settings exposure, mass assignment, open redirect - `references/rails-patterns.md` - Rails mass assignment, SQL injection, SSTI, command injection, insecure deserialization, unscoped finds, arbitrary file render - `references/spring-security-patterns.md` - Spring SpEL injection, method security misconfiguration, CORS, CSRF, actuator exposure, mass binding, insecure JWT - `references/graphql-patterns.md` - GraphQL introspection, query depth/complexity abuse, batching attacks, authorization bypass, error disclosure ## Integration with Audit Workflow During `/full-audit`: 1. Step 1 identifies frameworks during language detection 2. Step 2 threat model considers framework-specific trust boundaries 3. Step 4 deep dive uses framework-specific sink patterns ## Example: DoxPit Pattern ``` Frontend: Next.js with Server Actions Backend: Flask with Jinja2 templates Chain: 1. Server Action uses redirect() → Host header controls internal fetch URL 2. SSRF reaches Flask backend on internal port 3. Flask uses render_template_string() with user input 4. SSTI → RCE via Jinja2 payload ``` This pattern detection focuses on the **code behavior**, not version numbers.
Related Skills
Vulnerability Patterns
This skill should be used when the user asks about "vulnerability patterns", "how to find SQL injection", "XSS patterns", "command injection techniques", "OWASP vulnerabilities", "common web vulnerabilities", "exploitation patterns", or needs to understand how specific vulnerability classes work during whitebox security review.
Mobile Payment Tokenization Patterns
Use this skill when reviewing mobile code that handles card data, payment tokenization, or third-party payment SDK integrations (Braintree, Stripe, Adyen, Google Pay, Apple Pay, FirstData-style iframe encryptors). The skill catalogues the high-signal attack patterns vuln-scout detects in mobile payment flows — server-controlled tokenization URLs, JavaScript-injection-into-WebView card-data exfiltration, JS-bridge token construction, and payment scope mismatches — and maps each to the detector that fires.
Workspace Discovery
This skill should be used when the user asks to "detect workspaces", "find packages", "list monorepo packages", "workspace structure", "monorepo analysis", or needs to identify workspace/package boundaries in a codebase for focused security analysis.
vulnerability-chains
This skill should be used when the user asks about "vulnerability chains", "chained exploits", "multi-step attacks", "SSRF to RCE", "pivot attacks", or needs to identify how vulnerabilities in different components can be combined during whitebox security review.
Threat Modeling
This skill should be used when the user asks about "threat model", "STRIDE", "data flow diagram", "attack surface", "threat analysis", "security architecture", "component threats", "trust boundaries", "technology decomposition", or needs systematic threat identification during whitebox security review.
verify-finding
Drive a single finding through CPG verification and false-positive triage.
start-audit
Guided first-run security audit: doctor, scope, threats, scan, verify, report.
scope-repo
Decide audit boundaries for large or monorepo targets and write audit-plan.md.
review-pr
Diff-aware PR security review with verified findings and PR comment payload.
package-evidence
Bundle findings, reports, audit plan, and ledger into one evidence zip.
Sensitive Data Leakage
Detect ANY credential/secret flowing to ANY output sink. Use when asked about "credential leakage", "secret logging", "sensitive data exposure", "CWE-532", "password in logs", "token exposure", or security logging issues.
Security Misconfiguration
This skill should be used when the user asks about "security misconfiguration", "default credentials", "debug mode", "security headers", "exposed endpoints", "TLS configuration", or needs to find configuration-related vulnerabilities during whitebox security review.