[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EAR4SD7KJGZMH3Z280KYC6":3,"skill-same:01M7EAR4SD7KJGZMH3Z280KYC6":131},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":13,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7EAR4SD7KJGZMH3Z280KYC6","security-audit",null,"Security code review for vulnerabilities. Use when asked to \"security review\", \"find vulnerabilities\", \"check for security issues\", \"audit security\", \"OWASP review\", or review code for injection, XSS, authentication, authorization, cryptography issues. Provides systematic review with confidence-based reporting.","infinityplatformhub\u002Fopencode-gen","infinityplatformhub","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F254854803?v=4","01M7EAN7RB68HJBYF1V0TEYCE1","01M7EAN7SDY3K98M6J16DQNQ5Y",0,"CC-BY-SA-4.0","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fsecurity-audit\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fsecurity-audit\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: security-audit\ndescription: Security code review for vulnerabilities. Use when asked to \"security review\", \"find vulnerabilities\", \"check for security issues\", \"audit security\", \"OWASP review\", or review code for injection, XSS, authentication, authorization, cryptography issues. Provides systematic review with confidence-based reporting.\nallowed-tools: Read, Grep, Glob, Bash, Task\nlicense: LICENSE\n---\n\n\u003C!--\nReference material based on OWASP Cheat Sheet Series (CC BY-SA 4.0)\nhttps:\u002F\u002Fcheatsheetseries.owasp.org\u002F\n-->\n\n# Security Review Skill\n\nIdentify exploitable security vulnerabilities in code. Report only **HIGH CONFIDENCE** findings—clear vulnerable patterns with attacker-controlled input.\n\n## Scope: Research vs. Reporting\n\n**CRITICAL DISTINCTION:**\n\n- **Report on**: Only the specific file, diff, or code provided by the user\n- **Research**: The ENTIRE codebase to build confidence before reporting\n\nBefore flagging any issue, you MUST research the codebase to understand:\n- Where does this input actually come from? (Trace data flow)\n- Is there validation\u002Fsanitization elsewhere?\n- How is this configured? (Check settings, config files, middleware)\n- What framework protections exist?\n\n**Do NOT report issues based solely on pattern matching.** Investigate first, then report only what you're confident is exploitable.\n\n## Confidence Levels\n\n| Level | Criteria | Action |\n|-------|----------|--------|\n| **HIGH** | Vulnerable pattern + attacker-controlled input confirmed | **Report** with severity |\n| **MEDIUM** | Vulnerable pattern, input source unclear | **Note** as \"Needs verification\" |\n| **LOW** | Theoretical, best practice, defense-in-depth | **Do not report** |\n\n## Do Not Flag\n\n### General Rules\n- Test files (unless explicitly reviewing test security)\n- Dead code, commented code, documentation strings\n- Patterns using **constants** or **server-controlled configuration**\n- Code paths that require prior authentication to reach (note the auth requirement instead)\n\n### Server-Controlled Values (NOT Attacker-Controlled)\n\nThese are configured by operators, not controlled by attackers:\n\n| Source | Example | Why It's Safe |\n|--------|---------|---------------|\n| Django settings | `settings.API_URL`, `settings.ALLOWED_HOSTS` | Set via config\u002Fenv at deployment |\n| Environment variables | `os.environ.get('DATABASE_URL')` | Deployment configuration |\n| Config files | `config.yaml`, `app.config['KEY']` | Server-side files |\n| Framework constants | `django.conf.settings.*` | Not user-modifiable |\n| Hardcoded values | `BASE_URL = \"https:\u002F\u002Fapi.internal\"` | Compile-time constants |\n\n**SSRF Example - NOT a vulnerability:**\n```python\n# SAFE: URL comes from Django settings (server-controlled)\nresponse = requests.get(f\"{settings.SEER_AUTOFIX_URL}{path}\")\n```\n\n**SSRF Example - IS a vulnerability:**\n```python\n# VULNERABLE: URL comes from request (attacker-controlled)\nresponse = requests.get(request.GET.get('url'))\n```\n\n### Framework-Mitigated Patterns\nCheck language guides before flagging. Common false positives:\n\n| Pattern | Why It's Usually Safe |\n|---------|----------------------|\n| Django `{{ variable }}` | Auto-escaped by default |\n| React `{variable}` | Auto-escaped by default |\n| Vue `{{ variable }}` | Auto-escaped by default |\n| `User.objects.filter(id=input)` | ORM parameterizes queries |\n| `cursor.execute(\"...%s\", (input,))` | Parameterized query |\n| `innerHTML = \"\u003Cb>Loading...\u003C\u002Fb>\"` | Constant string, no user input |\n\n**Only flag these when:**\n- Django: `{{ var|safe }}`, `{% autoescape off %}`, `mark_safe(user_input)`\n- React: `dangerouslySetInnerHTML={{__html: userInput}}`\n- Vue: `v-html=\"userInput\"`\n- ORM: `.raw()`, `.extra()`, `RawSQL()` with string interpolation\n\n## Review Process\n\n### 1. Detect Context\n\nWhat type of code am I reviewing?\n\n| Code Type | Load These References |\n|-----------|----------------------|\n| API endpoints, routes | `authorization.md`, `authentication.md`, `injection.md` |\n| Frontend, templates | `xss.md`, `csrf.md` |\n| File handling, uploads | `file-security.md` |\n| Crypto, secrets, tokens | `cryptography.md`, `data-protection.md` |\n| Data serialization | `deserialization.md` |\n| External requests | `ssrf.md` |\n| Business workflows | `business-logic.md` |\n| GraphQL, REST design | `api-security.md` |\n| Config, headers, CORS | `misconfiguration.md` |\n| CI\u002FCD, dependencies | `supply-chain.md` |\n| Error handling | `error-handling.md` |\n| Audit, logging | `logging.md` |\n\n### 2. Load Language Guide\n\nBased on file extension or imports:\n\n| Indicators | Guide |\n|------------|-------|\n| `.py`, `django`, `flask`, `fastapi` | `languages\u002Fpython.md` |\n| `.js`, `.ts`, `express`, `react`, `vue`, `next` | `languages\u002Fjavascript.md` |\n| `.go`, `go.mod` | `languages\u002Fgo.md` |\n| `.rs`, `Cargo.toml` | `languages\u002Frust.md` |\n| `.java`, `spring`, `@Controller` | `languages\u002Fjava.md` |\n\n### 3. Load Infrastructure Guide (if applicable)\n\n| File Type | Guide |\n|-----------|-------|\n| `Dockerfile`, `.dockerignore` | `infrastructure\u002Fdocker.md` |\n| K8s manifests, Helm charts | `infrastructure\u002Fkubernetes.md` |\n| `.tf`, Terraform | `infrastructure\u002Fterraform.md` |\n| GitHub Actions, `.gitlab-ci.yml` | `infrastructure\u002Fci-cd.md` |\n| AWS\u002FGCP\u002FAzure configs, IAM | `infrastructure\u002Fcloud.md` |\n\n### 4. Research Before Flagging\n\n**For each potential issue, research the codebase to build confidence:**\n\n- Where does this value actually come from? Trace the data flow.\n- Is it configured at deployment (settings, env vars) or from user input?\n- Is there validation, sanitization, or allowlisting elsewhere?\n- What framework protections apply?\n\nOnly report issues where you have HIGH confidence after understanding the broader context.\n\n### 5. Verify Exploitability\n\nFor each potential finding, confirm:\n\n**Is the input attacker-controlled?**\n\n| Attacker-Controlled (Investigate) | Server-Controlled (Usually Safe) |\n|-----------------------------------|----------------------------------|\n| `request.GET`, `request.POST`, `request.args` | `settings.X`, `app.config['X']` |\n| `request.json`, `request.data`, `request.body` | `os.environ.get('X')` |\n| `request.headers` (most headers) | Hardcoded constants |\n| `request.cookies` (unsigned) | Internal service URLs from config |\n| URL path segments: `\u002Fusers\u002F\u003Cid>\u002F` | Database content from admin\u002Fsystem |\n| File uploads (content and names) | Signed session data |\n| Database content from other users | Framework settings |\n| WebSocket messages | |\n\n**Does the framework mitigate this?**\n- Check language guide for auto-escaping, parameterization\n- Check for middleware\u002Fdecorators that sanitize\n\n**Is there validation upstream?**\n- Input validation before this code\n- Sanitization libraries (DOMPurify, bleach, etc.)\n\n### 6. Report HIGH Confidence Only\n\nSkip theoretical issues. Report only what you've confirmed is exploitable after research.\n\n---\n\n## Severity Classification\n\n| Severity | Impact | Examples |\n|----------|--------|----------|\n| **Critical** | Direct exploit, severe impact, no auth required | RCE, SQL injection to data, auth bypass, hardcoded secrets |\n| **High** | Exploitable with conditions, significant impact | Stored XSS, SSRF to metadata, IDOR to sensitive data |\n| **Medium** | Specific conditions required, moderate impact | Reflected XSS, CSRF on state-changing actions, path traversal |\n| **Low** | Defense-in-depth, minimal direct impact | Missing headers, verbose errors, weak algorithms in non-critical context |\n\n---\n\n## Quick Patterns Reference\n\n### Always Flag (Critical)\n```\neval(user_input)           # Any language\nexec(user_input)           # Any language\npickle.loads(user_data)    # Python\nyaml.load(user_data)       # Python (not safe_load)\nunserialize($user_data)    # PHP\ndeserialize(user_data)     # Java ObjectInputStream\nshell=True + user_input    # Python subprocess\nchild_process.exec(user)   # Node.js\n```\n\n### Always Flag (High)\n```\ninnerHTML = userInput              # DOM XSS\ndangerouslySetInnerHTML={user}     # React XSS\nv-html=\"userInput\"                 # Vue XSS\nf\"SELECT * FROM x WHERE {user}\"    # SQL injection\n`SELECT * FROM x WHERE ${user}`    # SQL injection\nos.system(f\"cmd {user_input}\")     # Command injection\n```\n\n### Always Flag (Secrets)\n```\npassword = \"hardcoded\"\napi_key = \"sk-...\"\nAWS_SECRET_ACCESS_KEY = \"...\"\nprivate_key = \"-----BEGIN\"\n```\n\n### Check Context First (MUST Investigate Before Flagging)\n```\n# SSRF - ONLY if URL is from user input, NOT from settings\u002Fconfig\nrequests.get(request.GET['url'])     # FLAG: User-controlled URL\nrequests.get(settings.API_URL)       # SAFE: Server-controlled config\nrequests.get(f\"{settings.BASE}\u002F{x}\") # CHECK: Is 'x' user input?\n\n# Path traversal - ONLY if path is from user input\nopen(request.GET['file'])            # FLAG: User-controlled path\nopen(settings.LOG_PATH)              # SAFE: Server-controlled config\nopen(f\"{BASE_DIR}\u002F{filename}\")       # CHECK: Is 'filename' user input?\n\n# Open redirect - ONLY if URL is from user input\nredirect(request.GET['next'])        # FLAG: User-controlled redirect\nredirect(settings.LOGIN_URL)         # SAFE: Server-controlled config\n\n# Weak crypto - ONLY if used for security purposes\nhashlib.md5(file_content)            # SAFE: File checksums, caching\nhashlib.md5(password)                # FLAG: Password hashing\nrandom.random()                      # SAFE: Non-security uses (UI, sampling)\nrandom.random() for token            # FLAG: Security tokens need secrets module\n```\n\n---\n\n## Output Format\n\n```markdown\n## Security Review: [File\u002FComponent Name]\n\n### Summary\n- **Findings**: X (Y Critical, Z High, ...)\n- **Risk Level**: Critical\u002FHigh\u002FMedium\u002FLow\n- **Confidence**: High\u002FMixed\n\n### Findings\n\n#### [VULN-001] [Vulnerability Type] (Severity)\n- **Location**: `file.py:123`\n- **Confidence**: High\n- **Issue**: [What the vulnerability is]\n- **Impact**: [What an attacker could do]\n- **Evidence**:\n  ```python\n  [Vulnerable code snippet]\n  ```\n- **Fix**: [How to remediate]\n\n### Needs Verification\n\n#### [VERIFY-001] [Potential Issue]\n- **Location**: `file.py:456`\n- **Question**: [What needs to be verified]\n```\n\nIf no vulnerabilities found, state: \"No high-confidence vulnerabilities identified.\"\n\n---\n\n## Reference Files\n\n### Core Vulnerabilities (`references\u002F`)\n| File | Covers |\n|------|--------|\n| `injection.md` | SQL, NoSQL, OS command, LDAP, template injection |\n| `xss.md` | Reflected, stored, DOM-based XSS |\n| `authorization.md` | Authorization, IDOR, privilege escalation |\n| `authentication.md` | Sessions, credentials, password storage |\n| `cryptography.md` | Algorithms, key management, randomness |\n| `deserialization.md` | Pickle, YAML, Java, PHP deserialization |\n| `file-security.md` | Path traversal, uploads, XXE |\n| `ssrf.md` | Server-side request forgery |\n| `csrf.md` | Cross-site request forgery |\n| `data-protection.md` | Secrets exposure, PII, logging |\n| `api-security.md` | REST, GraphQL, mass assignment |\n| `business-logic.md` | Race conditions, workflow bypass |\n| `modern-threats.md` | Prototype pollution, LLM injection, WebSocket |\n| `misconfiguration.md` | Headers, CORS, debug mode, defaults |\n| `error-handling.md` | Fail-open, information disclosure |\n| `supply-chain.md` | Dependencies, build security |\n| `logging.md` | Audit failures, log injection |\n\n### Language Guides (`languages\u002F`)\n- `python.md` - Django, Flask, FastAPI patterns\n- `javascript.md` - Node, Express, React, Vue, Next.js\n- `go.md` - Go-specific security patterns\n- `rust.md` - Rust unsafe blocks, FFI security\n- `java.md` - Spring, Java EE patterns\n\n### Infrastructure (`infrastructure\u002F`)\n- `docker.md` - Container security\n- `kubernetes.md` - K8s RBAC, secrets, policies\n- `terraform.md` - IaC security\n- `ci-cd.md` - Pipeline security\n- `cloud.md` - AWS\u002FGCP\u002FAzure security\n","\u003C!--\nReference material based on OWASP Cheat Sheet Series (CC BY-SA 4.0)\nhttps:\u002F\u002Fcheatsheetseries.owasp.org\u002F\n-->\n\n# Security Review Skill\n\nIdentify exploitable security vulnerabilities in code. Report only **HIGH CONFIDENCE** findings—clear vulnerable patterns with attacker-controlled input.\n\n## Scope: Research vs. Reporting\n\n**CRITICAL DISTINCTION:**\n\n- **Report on**: Only the specific file, diff, or code provided by the user\n- **Research**: The ENTIRE codebase to build confidence before reporting\n\nBefore flagging any issue, you MUST research the codebase to understand:\n- Where does this input actually come from? (Trace data flow)\n- Is there validation\u002Fsanitization elsewhere?\n- How is this configured? (Check settings, config files, middleware)\n- What framework protections exist?\n\n**Do NOT report issues based solely on pattern matching.** Investigate first, then report only what you're confident is exploitable.\n\n## Confidence Levels\n\n| Level | Criteria | Action |\n|-------|----------|--------|\n| **HIGH** | Vulnerable pattern + attacker-controlled input confirmed | **Report** with severity |\n| **MEDIUM** | Vulnerable pattern, input source unclear | **Note** as \"Needs verification\" |\n| **LOW** | Theoretical, best practice, defense-in-depth | **Do not report** |\n\n## Do Not Flag\n\n### General Rules\n- Test files (unless explicitly reviewing test security)\n- Dead code, commented code, documentation strings\n- Patterns using **constants** or **server-controlled configuration**\n- Code paths that require prior authentication to reach (note the auth requirement instead)\n\n### Server-Controlled Values (NOT Attacker-Controlled)\n\nThese are configured by operators, not controlled by attackers:\n\n| Source | Example | Why It's Safe |\n|--------|---------|---------------|\n| Django settings | `settings.API_URL`, `settings.ALLOWED_HOSTS` | Set via config\u002Fenv at deployment |\n| Environment variables | `os.environ.get('DATABASE_URL')` | Deployment configuration |\n| Config files | `config.yaml`, `app.config['KEY']` | Server-side files |\n| Framework constants | `django.conf.settings.*` | Not user-modifiable |\n| Hardcoded values | `BASE_URL = \"https:\u002F\u002Fapi.internal\"` | Compile-time constants |\n\n**SSRF Example - NOT a vulnerability:**\n```python\n# SAFE: URL comes from Django settings (server-controlled)\nresponse = requests.get(f\"{settings.SEER_AUTOFIX_URL}{path}\")\n```\n\n**SSRF Example - IS a vulnerability:**\n```python\n# VULNERABLE: URL comes from request (attacker-controlled)\nresponse = requests.get(request.GET.get('url'))\n```\n\n### Framework-Mitigated Patterns\nCheck language guides before flagging. Common false positives:\n\n| Pattern | Why It's Usually Safe |\n|---------|----------------------|\n| Django `{{ variable }}` | Auto-escaped by default |\n| React `{variable}` | Auto-escaped by default |\n| Vue `{{ variable }}` | Auto-escaped by default |\n| `User.objects.filter(id=input)` | ORM parameterizes queries |\n| `cursor.execute(\"...%s\", (input,))` | Parameterized query |\n| `innerHTML = \"\u003Cb>Loading...\u003C\u002Fb>\"` | Constant string, no user input |\n\n**Only flag these when:**\n- Django: `{{ var|safe }}`, `{% autoescape off %}`, `mark_safe(user_input)`\n- React: `dangerouslySetInnerHTML={{__html: userInput}}`\n- Vue: `v-html=\"userInput\"`\n- ORM: `.raw()`, `.extra()`, `RawSQL()` with string interpolation\n\n## Review Process\n\n### 1. Detect Context\n\nWhat type of code am I reviewing?\n\n| Code Type | Load These References |\n|-----------|----------------------|\n| API endpoints, routes | `authorization.md`, `authentication.md`, `injection.md` |\n| Frontend, templates | `xss.md`, `csrf.md` |\n| File handling, uploads | `file-security.md` |\n| Crypto, secrets, tokens | `cryptography.md`, `data-protection.md` |\n| Data serialization | `deserialization.md` |\n| External requests | `ssrf.md` |\n| Business workflows | `business-logic.md` |\n| GraphQL, REST design | `api-security.md` |\n| Config, headers, CORS | `misconfiguration.md` |\n| CI\u002FCD, dependencies | `supply-chain.md` |\n| Error handling | `error-handling.md` |\n| Audit, logging | `logging.md` |\n\n### 2. Load Language Guide\n\nBased on file extension or imports:\n\n| Indicators | Guide |\n|------------|-------|\n| `.py`, `django`, `flask`, `fastapi` | `languages\u002Fpython.md` |\n| `.js`, `.ts`, `express`, `react`, `vue`, `next` | `languages\u002Fjavascript.md` |\n| `.go`, `go.mod` | `languages\u002Fgo.md` |\n| `.rs`, `Cargo.toml` | `languages\u002Frust.md` |\n| `.java`, `spring`, `@Controller` | `languages\u002Fjava.md` |\n\n### 3. Load Infrastructure Guide (if applicable)\n\n| File Type | Guide |\n|-----------|-------|\n| `Dockerfile`, `.dockerignore` | `infrastructure\u002Fdocker.md` |\n| K8s manifests, Helm charts | `infrastructure\u002Fkubernetes.md` |\n| `.tf`, Terraform | `infrastructure\u002Fterraform.md` |\n| GitHub Actions, `.gitlab-ci.yml` | `infrastructure\u002Fci-cd.md` |\n| AWS\u002FGCP\u002FAzure configs, IAM | `infrastructure\u002Fcloud.md` |\n\n### 4. Research Before Flagging\n\n**For each potential issue, research the codebase to build confidence:**\n\n- Where does this value actually come from? Trace the data flow.\n- Is it configured at deployment (settings, env vars) or from user input?\n- Is there validation, sanitization, or allowlisting elsewhere?\n- What framework protections apply?\n\nOnly report issues where you have HIGH confidence after understanding the broader context.\n\n### 5. Verify Exploitability\n\nFor each potential finding, confirm:\n\n**Is the input attacker-controlled?**\n\n| Attacker-Controlled (Investigate) | Server-Controlled (Usually Safe) |\n|-----------------------------------|----------------------------------|\n| `request.GET`, `request.POST`, `request.args` | `settings.X`, `app.config['X']` |\n| `request.json`, `request.data`, `request.body` | `os.environ.get('X')` |\n| `request.headers` (most headers) | Hardcoded constants |\n| `request.cookies` (unsigned) | Internal service URLs from config |\n| URL path segments: `\u002Fusers\u002F\u003Cid>\u002F` | Database content from admin\u002Fsystem |\n| File uploads (content and names) | Signed session data |\n| Database content from other users | Framework settings |\n| WebSocket messages | |\n\n**Does the framework mitigate this?**\n- Check language guide for auto-escaping, parameterization\n- Check for middleware\u002Fdecorators that sanitize\n\n**Is there validation upstream?**\n- Input validation before this code\n- Sanitization libraries (DOMPurify, bleach, etc.)\n\n### 6. Report HIGH Confidence Only\n\nSkip theoretical issues. Report only what you've confirmed is exploitable after research.\n\n---\n\n## Severity Classification\n\n| Severity | Impact | Examples |\n|----------|--------|----------|\n| **Critical** | Direct exploit, severe impact, no auth required | RCE, SQL injection to data, auth bypass, hardcoded secrets |\n| **High** | Exploitable with conditions, significant impact | Stored XSS, SSRF to metadata, IDOR to sensitive data |\n| **Medium** | Specific conditions required, moderate impact | Reflected XSS, CSRF on state-changing actions, path traversal |\n| **Low** | Defense-in-depth, minimal direct impact | Missing headers, verbose errors, weak algorithms in non-critical context |\n\n---\n\n## Quick Patterns Reference\n\n### Always Flag (Critical)\n```\neval(user_input)           # Any language\nexec(user_input)           # Any language\npickle.loads(user_data)    # Python\nyaml.load(user_data)       # Python (not safe_load)\nunserialize($user_data)    # PHP\ndeserialize(user_data)     # Java ObjectInputStream\nshell=True + user_input    # Python subprocess\nchild_process.exec(user)   # Node.js\n```\n\n### Always Flag (High)\n```\ninnerHTML = userInput              # DOM XSS\ndangerouslySetInnerHTML={user}     # React XSS\nv-html=\"userInput\"                 # Vue XSS\nf\"SELECT * FROM x WHERE {user}\"    # SQL injection\n`SELECT * FROM x WHERE ${user}`    # SQL injection\nos.system(f\"cmd {user_input}\")     # Command injection\n```\n\n### Always Flag (Secrets)\n```\npassword = \"hardcoded\"\napi_key = \"sk-...\"\nAWS_SECRET_ACCESS_KEY = \"...\"\nprivate_key = \"-----BEGIN\"\n```\n\n### Check Context First (MUST Investigate Before Flagging)\n```\n# SSRF - ONLY if URL is from user input, NOT from settings\u002Fconfig\nrequests.get(request.GET['url'])     # FLAG: User-controlled URL\nrequests.get(settings.API_URL)       # SAFE: Server-controlled config\nrequests.get(f\"{settings.BASE}\u002F{x}\") # CHECK: Is 'x' user input?\n\n# Path traversal - ONLY if path is from user input\nopen(request.GET['file'])            # FLAG: User-controlled path\nopen(settings.LOG_PATH)              # SAFE: Server-controlled config\nopen(f\"{BASE_DIR}\u002F{filename}\")       # CHECK: Is 'filename' user input?\n\n# Open redirect - ONLY if URL is from user input\nredirect(request.GET['next'])        # FLAG: User-controlled redirect\nredirect(settings.LOGIN_URL)         # SAFE: Server-controlled config\n\n# Weak crypto - ONLY if used for security purposes\nhashlib.md5(file_content)            # SAFE: File checksums, caching\nhashlib.md5(password)                # FLAG: Password hashing\nrandom.random()                      # SAFE: Non-security uses (UI, sampling)\nrandom.random() for token            # FLAG: Security tokens need secrets module\n```\n\n---\n\n## Output Format\n\n```markdown\n## Security Review: [File\u002FComponent Name]\n\n### Summary\n- **Findings**: X (Y Critical, Z High, ...)\n- **Risk Level**: Critical\u002FHigh\u002FMedium\u002FLow\n- **Confidence**: High\u002FMixed\n\n### Findings\n\n#### [VULN-001] [Vulnerability Type] (Severity)\n- **Location**: `file.py:123`\n- **Confidence**: High\n- **Issue**: [What the vulnerability is]\n- **Impact**: [What an attacker could do]\n- **Evidence**:\n  ```python\n  [Vulnerable code snippet]\n  ```\n- **Fix**: [How to remediate]\n\n### Needs Verification\n\n#### [VERIFY-001] [Potential Issue]\n- **Location**: `file.py:456`\n- **Question**: [What needs to be verified]\n```\n\nIf no vulnerabilities found, state: \"No high-confidence vulnerabilities identified.\"\n\n---\n\n## Reference Files\n\n### Core Vulnerabilities (`references\u002F`)\n| File | Covers |\n|------|--------|\n| `injection.md` | SQL, NoSQL, OS command, LDAP, template injection |\n| `xss.md` | Reflected, stored, DOM-based XSS |\n| `authorization.md` | Authorization, IDOR, privilege escalation |\n| `authentication.md` | Sessions, credentials, password storage |\n| `cryptography.md` | Algorithms, key management, randomness |\n| `deserialization.md` | Pickle, YAML, Java, PHP deserialization |\n| `file-security.md` | Path traversal, uploads, XXE |\n| `ssrf.md` | Server-side request forgery |\n| `csrf.md` | Cross-site request forgery |\n| `data-protection.md` | Secrets exposure, PII, logging |\n| `api-security.md` | REST, GraphQL, mass assignment |\n| `business-logic.md` | Race conditions, workflow bypass |\n| `modern-threats.md` | Prototype pollution, LLM injection, WebSocket |\n| `misconfiguration.md` | Headers, CORS, debug mode, defaults |\n| `error-handling.md` | Fail-open, information disclosure |\n| `supply-chain.md` | Dependencies, build security |\n| `logging.md` | Audit failures, log injection |\n\n### Language Guides (`languages\u002F`)\n- `python.md` - Django, Flask, FastAPI patterns\n- `javascript.md` - Node, Express, React, Vue, Next.js\n- `go.md` - Go-specific security patterns\n- `rust.md` - Rust unsafe blocks, FFI security\n- `java.md` - Spring, Java EE patterns\n\n### Infrastructure (`infrastructure\u002F`)\n- `docker.md` - Container security\n- `kubernetes.md` - K8s RBAC, secrets, policies\n- `terraform.md` - IaC security\n- `ci-cd.md` - Pipeline security\n- `cloud.md` - AWS\u002FGCP\u002FAzure security\n",{"name":5,"license":24,"description":7,"allowed-tools":25},"LICENSE","Read, Grep, Glob, Bash, Task","master","630f92e7d70ca0702a45824c77b5ea1ec042fa81","skills-library\u002F_cache\u002Fsecurity-audit","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub","2026-10-09 11:55:04",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add infinityplatformhub\u002Fopencode-gen --skill security-audit",{"tool":38,"command":39},"bunx","bunx skills add infinityplatformhub\u002Fopencode-gen --skill security-audit",{"tool":41,"command":42},"pnpm","pnpm dlx skills add infinityplatformhub\u002Fopencode-gen --skill security-audit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fsecurity-audit\u002FSKILL.md",true,[46,52,56,60,63,67,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"infrastructure\u002Fdocker.md","REFERENCE","参考文档",9400,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fsecurity-audit\u002Finfrastructure\u002Fdocker.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"languages\u002Fjavascript.md",10094,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fsecurity-audit\u002Flanguages\u002Fjavascript.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"languages\u002Fpython.md",9492,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fsecurity-audit\u002Flanguages\u002Fpython.md",{"path":24,"resourceType":24,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":15},"许可证",884,{"path":64,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Fapi-security.md",12741,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fsecurity-audit\u002Freferences\u002Fapi-security.md",{"path":68,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fauthentication.md",9071,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fsecurity-audit\u002Freferences\u002Fauthentication.md",{"path":72,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fauthorization.md",10007,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fsecurity-audit\u002Freferences\u002Fauthorization.md",{"path":76,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fbusiness-logic.md",12660,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fsecurity-audit\u002Freferences\u002Fbusiness-logic.md",{"path":80,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fcryptography.md",8703,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fsecurity-audit\u002Freferences\u002Fcryptography.md",{"path":84,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Fcsrf.md",9943,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fsecurity-audit\u002Freferences\u002Fcsrf.md",{"path":88,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":89,"sourceHtmlUrl":90},"references\u002Fdata-protection.md",9565,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fsecurity-audit\u002Freferences\u002Fdata-protection.md",{"path":92,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":93,"sourceHtmlUrl":94},"references\u002Fdeserialization.md",10234,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fsecurity-audit\u002Freferences\u002Fdeserialization.md",{"path":96,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":97,"sourceHtmlUrl":98},"references\u002Ferror-handling.md",11632,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fsecurity-audit\u002Freferences\u002Ferror-handling.md",{"path":100,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":101,"sourceHtmlUrl":102},"references\u002Ffile-security.md",12344,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fsecurity-audit\u002Freferences\u002Ffile-security.md",{"path":104,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":105,"sourceHtmlUrl":106},"references\u002Finjection.md",6813,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fsecurity-audit\u002Freferences\u002Finjection.md",{"path":108,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":109,"sourceHtmlUrl":110},"references\u002Flogging.md",12012,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fsecurity-audit\u002Freferences\u002Flogging.md",{"path":112,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":113,"sourceHtmlUrl":114},"references\u002Fmisconfiguration.md",10305,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fsecurity-audit\u002Freferences\u002Fmisconfiguration.md",{"path":116,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":117,"sourceHtmlUrl":118},"references\u002Fmodern-threats.md",13269,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fsecurity-audit\u002Freferences\u002Fmodern-threats.md",{"path":120,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":121,"sourceHtmlUrl":122},"references\u002Fssrf.md",10776,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fsecurity-audit\u002Freferences\u002Fssrf.md",{"path":124,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":125,"sourceHtmlUrl":126},"references\u002Fsupply-chain.md",9149,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fsecurity-audit\u002Freferences\u002Fsupply-chain.md",{"path":128,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":129,"sourceHtmlUrl":130},"references\u002Fxss.md",7599,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fsecurity-audit\u002Freferences\u002Fxss.md",[132,140,147,154,161,168],{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":136,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":19},"01M7EARBNC37P86X4Y8MBDM3J6","typescript-pro","Implements advanced TypeScript type systems, creates custom type guards, utility types, and branded types, and configures tRPC for end-to-end type safety. Use when building TypeScript applications requiring advanced generics, conditional or mapped types, discriminated unions, monorepo setup, or full-stack type safety with tRPC.","MIT","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Ftypescript-pro\u002FSKILL.md",[],[],{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":136,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":19},"01M7EAQXCT9TT975X8TY460Q1Z","react-expert","Use when building React 18+ applications in .jsx or .tsx files, Next.js App Router projects, or create-react-app setups. Creates components, implements custom hooks, debugs rendering issues, migrates class components to functional, and implements state management. Invoke for Server Components, Suspense boundaries, useActionState forms, performance optimization, or React 19 features.","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Freact-expert\u002FSKILL.md",[],[],{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":136,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":153,"publishedAt":19},"01M7EAQPPXJYHMN5WG8X5GYK5V","python-pro","Use when building Python 3.11+ applications requiring type safety, async programming, or robust error handling. Generates type-annotated Python code, configures mypy in strict mode, writes pytest test suites with fixtures and mocking, and validates code with black and ruff. Invoke for type hints, async\u002Fawait patterns, dataclasses, dependency injection, logging configuration, and structured error handling.","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fpython-pro\u002FSKILL.md",[],[],{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":136,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"publishedAt":19},"01M7EAQFW1N62N8P6S6A1G9X1P","php-pro","Use when building PHP applications with modern PHP 8.3+ features, Laravel, or Symfony frameworks. Invokes strict typing, PHPStan level 9, async patterns with Swoole, and PSR standards. Creates controllers, configures middleware, generates migrations, writes PHPUnit\u002FPest tests, defines typed DTOs and value objects, sets up dependency injection, and scaffolds REST\u002FGraphQL APIs. Use when working with Eloquent, Doctrine, Composer, Psalm, ReactPHP, or any PHP API development.","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fphp-pro\u002FSKILL.md",[],[],{"skillNo":162,"name":163,"nameZh":6,"description":164,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":136,"licenseFileUrl":6,"sourceHtmlUrl":165,"categories":166,"keywords":167,"publishedAt":19},"01M7EAQ45FDXE4CYKD59813QM7","nextjs-developer","Use when building Next.js 14+ applications with App Router, server components, or server actions. Invoke to configure route handlers, implement middleware, set up API routes, add streaming SSR, write generateMetadata for SEO, scaffold loading.tsx\u002Ferror.tsx boundaries, or deploy to Vercel. Triggers on: Next.js, Next.js 14, App Router, RSC, use server, Server Components, Server Actions, React Server Components, generateMetadata, loading.tsx, Next.js deployment, Vercel, Next.js performance.","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fnextjs-developer\u002FSKILL.md",[],[],{"skillNo":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":136,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":174,"publishedAt":19},"01M7EAPWMXHSN8BHZ99XDRBYX8","laravel-specialist","Build and configure Laravel 10+ applications, including creating Eloquent models and relationships, implementing Sanctum authentication, configuring Horizon queues, designing RESTful APIs with API resources, and building reactive interfaces with Livewire. Use when creating Laravel models, setting up queue workers, implementing Sanctum auth flows, building Livewire components, optimising Eloquent queries, or writing Pest\u002FPHPUnit tests for Laravel features.","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Flaravel-specialist\u002FSKILL.md",[],[]]