[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79CF5KFHMFQ7V4SGKCRC4QT":3,"skill-same:01M79CF5KFHMFQ7V4SGKCRC4QT":136},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M79CF5KFHMFQ7V4SGKCRC4QT","security-review",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.","fatahilah-mr\u002Fblog","fatahilah-mr","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F279336545?v=4","01M79CDFX4AC61THJKG5EVAMEE","Fatahilah","01M79CDFXV8EFB0EQS7KV7MPYT",1,"CC-BY-SA-4.0","https:\u002F\u002Fgithub.com\u002Ffatahilah-mr\u002Fblog\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Ffatahilah-mr\u002Fblog\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: security-review\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":25,"description":7,"allowed-tools":26},"LICENSE","Read, Grep, Glob, Bash, Task","main","2486b0f999da438db4c2599bac96531b8cf16455",".agents\u002Fskills\u002Fsecurity-review",0,"https:\u002F\u002Fgithub.com\u002Ffatahilah-mr\u002Fblog","https:\u002F\u002Fblog.fatahmr.my.id","https:\u002F\u002Fgithub.com\u002Ffatahilah-mr","fatahmr.my.id","IT Network Administrator & Web Developer\r\n🥇 1st Place LKS 2026.","2026-09-14 06:38:34",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add fatahilah-mr\u002Fblog --skill security-review",{"tool":43,"command":44},"bunx","bunx skills add fatahilah-mr\u002Fblog --skill security-review",{"tool":46,"command":47},"pnpm","pnpm dlx skills add fatahilah-mr\u002Fblog --skill security-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ffatahilah-mr\u002Fblog\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002FSKILL.md",true,[51,57,61,65,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"infrastructure\u002Fdocker.md","REFERENCE","参考文档",9400,"https:\u002F\u002Fgithub.com\u002Ffatahilah-mr\u002Fblog\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002Finfrastructure\u002Fdocker.md",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"languages\u002Fjavascript.md",10028,"https:\u002F\u002Fgithub.com\u002Ffatahilah-mr\u002Fblog\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002Flanguages\u002Fjavascript.md",{"path":62,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":63,"sourceHtmlUrl":64},"languages\u002Fpython.md",9492,"https:\u002F\u002Fgithub.com\u002Ffatahilah-mr\u002Fblog\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002Flanguages\u002Fpython.md",{"path":25,"resourceType":25,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":16},"许可证",884,{"path":69,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fapi-security.md",12741,"https:\u002F\u002Fgithub.com\u002Ffatahilah-mr\u002Fblog\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002Freferences\u002Fapi-security.md",{"path":73,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Fauthentication.md",9071,"https:\u002F\u002Fgithub.com\u002Ffatahilah-mr\u002Fblog\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002Freferences\u002Fauthentication.md",{"path":77,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Fauthorization.md",10007,"https:\u002F\u002Fgithub.com\u002Ffatahilah-mr\u002Fblog\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002Freferences\u002Fauthorization.md",{"path":81,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Fbusiness-logic.md",12660,"https:\u002F\u002Fgithub.com\u002Ffatahilah-mr\u002Fblog\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002Freferences\u002Fbusiness-logic.md",{"path":85,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fcryptography.md",8703,"https:\u002F\u002Fgithub.com\u002Ffatahilah-mr\u002Fblog\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002Freferences\u002Fcryptography.md",{"path":89,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002Fcsrf.md",9943,"https:\u002F\u002Fgithub.com\u002Ffatahilah-mr\u002Fblog\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002Freferences\u002Fcsrf.md",{"path":93,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":94,"sourceHtmlUrl":95},"references\u002Fdata-protection.md",9565,"https:\u002F\u002Fgithub.com\u002Ffatahilah-mr\u002Fblog\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002Freferences\u002Fdata-protection.md",{"path":97,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":98,"sourceHtmlUrl":99},"references\u002Fdeserialization.md",10234,"https:\u002F\u002Fgithub.com\u002Ffatahilah-mr\u002Fblog\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002Freferences\u002Fdeserialization.md",{"path":101,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":102,"sourceHtmlUrl":103},"references\u002Ferror-handling.md",11632,"https:\u002F\u002Fgithub.com\u002Ffatahilah-mr\u002Fblog\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002Freferences\u002Ferror-handling.md",{"path":105,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":106,"sourceHtmlUrl":107},"references\u002Ffile-security.md",12344,"https:\u002F\u002Fgithub.com\u002Ffatahilah-mr\u002Fblog\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002Freferences\u002Ffile-security.md",{"path":109,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":110,"sourceHtmlUrl":111},"references\u002Finjection.md",6813,"https:\u002F\u002Fgithub.com\u002Ffatahilah-mr\u002Fblog\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002Freferences\u002Finjection.md",{"path":113,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":114,"sourceHtmlUrl":115},"references\u002Flogging.md",12012,"https:\u002F\u002Fgithub.com\u002Ffatahilah-mr\u002Fblog\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002Freferences\u002Flogging.md",{"path":117,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":118,"sourceHtmlUrl":119},"references\u002Fmisconfiguration.md",10305,"https:\u002F\u002Fgithub.com\u002Ffatahilah-mr\u002Fblog\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002Freferences\u002Fmisconfiguration.md",{"path":121,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":122,"sourceHtmlUrl":123},"references\u002Fmodern-threats.md",13269,"https:\u002F\u002Fgithub.com\u002Ffatahilah-mr\u002Fblog\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002Freferences\u002Fmodern-threats.md",{"path":125,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":126,"sourceHtmlUrl":127},"references\u002Fssrf.md",10734,"https:\u002F\u002Fgithub.com\u002Ffatahilah-mr\u002Fblog\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002Freferences\u002Fssrf.md",{"path":129,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":130,"sourceHtmlUrl":131},"references\u002Fsupply-chain.md",9149,"https:\u002F\u002Fgithub.com\u002Ffatahilah-mr\u002Fblog\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002Freferences\u002Fsupply-chain.md",{"path":133,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":134,"sourceHtmlUrl":135},"references\u002Fxss.md",7599,"https:\u002F\u002Fgithub.com\u002Ffatahilah-mr\u002Fblog\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002Freferences\u002Fxss.md",[137,145,152],{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":141,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":20},"01M79CGA689MX3Y9P3J0FJFVZ9","vercel-react-best-practices","React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React\u002FNext.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.","MIT","https:\u002F\u002Fgithub.com\u002Ffatahilah-mr\u002Fblog\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-react-best-practices\u002FSKILL.md",[],[],{"skillNo":146,"name":147,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":141,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":20},"01M79CFGNJ43NAF1NANAYQ2D4V","supabase-postgres-best-practices","Postgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill BEFORE writing or changing anything that lives in a Postgres database: creating or altering tables and columns (including choosing column types), schema design, migrations and declarative schema files, RLS policies and the tests that verify them, indexes, triggers, database functions, queues and scheduled jobs (pg_cron, pgmq), vector\u002Fsemantic search (pgvector), and restoring dumps (pg_restore) or importing data. Also load it when diagnosing slow queries, high CPU, timeouts, EXPLAIN plans, connection exhaustion, locking, bloat, or rows visible to the wrong user or tenant. This is not just a performance guide — schema, migration, security, and SQL authoring tasks need these rules too, even for a one-column change or a single query.","https:\u002F\u002Fgithub.com\u002Ffatahilah-mr\u002Fblog\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsupabase-postgres-best-practices\u002FSKILL.md",[],[],{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":141,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":158,"publishedAt":20},"01M79CDKESEAY28W43ASRHMQBK","accessibility","Audit and improve web accessibility following WCAG 2.2 guidelines. Use when asked to \"improve accessibility\", \"a11y audit\", \"WCAG compliance\", \"screen reader support\", \"keyboard navigation\", or \"make accessible\".","https:\u002F\u002Fgithub.com\u002Ffatahilah-mr\u002Fblog\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Faccessibility\u002FSKILL.md",[],[]]