[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CTMN61X0FYDFE5SMHH6974":3,"skill-same:01M7CTMN61X0FYDFE5SMHH6974":59},{"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":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7CTMN61X0FYDFE5SMHH6974","security-review",null,"Review code or agent\u002Ftool configuration for security vulnerabilities using OWASP and AgentShield checks. Use for auth, data exposure, injection, secrets, XSS, deserialization, or security-sensitive agent, MCP, or plugin changes.","xiaden\u002FSkyScow","xiaden","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F3605480?v=4","01M7CTGKNTD1XNQE710J977HVD","Lucian Hardy","01M7CTGKPVQ3XRNXNRJ3A6E31F",1,"MIT","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fsecurity-review\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: security-review\ndescription: Review code or agent\u002Ftool configuration for security vulnerabilities using OWASP and AgentShield checks. Use for auth, data exposure, injection, secrets, XSS, deserialization, or security-sensitive agent, MCP, or plugin changes.\n---\n\n# Security Review\n\nConduct thorough OWASP Top 10 security analysis on code, configurations, and dependencies. This skill provides a structured methodology for identifying, categorizing, and remediating security vulnerabilities before they reach production.\n\n## When to Use\n\nThis skill is the canonical owner of security-review applicability. Its triggers are observable\nrepository\u002Ftask facts — the changed surfaces listed below — never subjective discretion.\n\n**Security-sensitive surfaces (focused security review required):**\n\nLoad this skill and run the full review when the change touches any surface in this list:\n\n- Authentication or authorization (sessions, access-control checks, login, permissions)\n- Credentials, tokens, secrets, or API keys and the configuration that handles them\n- External or untrusted input (user input, request bodies, files, IPC, deserialized data)\n- Filesystem or path trust boundaries (path resolution, traversal, archive extraction, temp files)\n- Privilege changes (privilege escalation, setuid\u002Fsetgid, user\u002Frole changes, sudoers)\n- Docker capabilities, seccomp profiles, sandboxing, root\u002FUID-GID handling, or container security\n- Command or shell execution (`exec`, `spawn`, `eval`, `system`, shell interpolation)\n- Network exposure (listeners, ports, TLS, CORS, bind addresses, proxies)\n- Persisted sensitive data (databases, logs, caches, backup or export formats)\n- Workflow or action permissions (CI workflow `permissions`, tokens, trigger events, OIDC)\n- Dependency or artifact integrity (pinned versions, checksums, signatures, SBOM, download verification)\n- Agent\u002Fplugin\u002Ftool permissions (agent prompts, MCP servers, plugin hooks, permission rules)\n- Remote mutation (push, deploy, publish, release, remote API writes)\n- Supply-chain or publication (release artifacts, packages, registries, image publication)\n\nAlso load this skill when auditing an existing module for vulnerabilities or reviewing and\nprioritizing findings from `npx ecc-agentshield scan`.\n\nSecurity-sensitive surfaces require focused review. Non-security changes preserve existing security\ninvariants under ordinary correctness review and do not require the full generic checklist.\n\n**Precedence — a matched surface cannot be bypassed:**\n\n1. If the change touches any surface listed above, focused security review is **REQUIRED**. It is not\n   made `NOT_APPLICABLE` by automated scanning, by a recent clean scan result, or because the change\n   does not process user input. This applies in particular to shell\u002Fcommand execution, Docker\n   privilege\u002Fseccomp\u002Froot behavior, plugin\u002Fagent\u002Ftool permissions, artifact integrity, workflow\n   permissions, remote mutation, publication\u002Fsupply chain, and path trust boundaries.\n2. Automated security scanning (Step 6, `npx ecc-agentshield scan`) may contribute supporting\n   evidence. It never replaces a review triggered by a matched surface.\n3. The full generic checklist is not required **only when none of the surfaces above matched**.\n\nExamples where no surface matched, so the full checklist is not required: cosmetic or\ndocumentation-only changes with no behavior or trust-boundary impact; pure UI\u002Fstyling changes with\nno data flow implications.\n\nEven when the full checklist is not run, any CRITICAL or HIGH issue found by any path still blocks merge.\n\n## Security Review Workflow\n\n### Step 1: Scope the Review\n\nSelect the matched surface(s) first, from the canonical security-sensitive surface list above. The\nmatched surface(s) — not a generic questionnaire — determine what this review scopes.\n\n1. **Match** — state which of the 14 canonical surfaces the change touches, and the observable\n   changed artifact (file, symbol, config, workflow, or runtime definition) that matched it.\n2. **Scope** — for each matched surface only, identify the relevant attack surface: the input, trust\n   boundary, authority, or asset that the change affects.\n\nIf no surface matched, the full generic checklist is not required (see Precedence above); any\nCRITICAL or HIGH issue found by any path still blocks merge.\n\n### Step 2: Select the OWASP Top 10 Checks for the Matched Surfaces\n\nDo not work through all 10 categories unconditionally. Select the checks for the matched surface(s)\nusing the table below, then consult the per-category check tables for those selected checks:\n\n[`references\u002Fowasp-categories.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fsecurity-review\u002Freferences\u002Fowasp-categories.md)\n\n**Surface -> check-selection table.** Select checks only for the surface(s) matched in Step 1. The\nreferenced files are the HOW-source for each selected check.\n\n| Matched surface | Selected checks |\n| --- | --- |\n| Authentication or authorization | authentication flow, authorization checks, privilege boundaries, session\u002Ftoken behavior |\n| Credentials, tokens, secrets, or API keys | secret detection, storage and transmission, rotation, config handling, log leakage |\n| External or untrusted input | input validation, injection sinks, deserialization safety, IPC trust boundaries, output encoding |\n| Filesystem or path trust boundaries | path traversal, path resolution, archive extraction, temp-file safety, TOCTOU |\n| Privilege changes | privilege escalation, setuid\u002Fsetgid, user\u002Frole boundaries, sudoers, least privilege |\n| Docker capabilities, seccomp, sandboxing, root\u002FUID-GID | capabilities, seccomp, sandbox, UID\u002FGID transitions, mount\u002Fpath exposure |\n| Command or shell execution | shell injection, argument quoting, command construction, environment propagation, privilege\u002Fprocess boundaries |\n| Network exposure | listener\u002Fbind scope, TLS configuration, CORS, proxy trust, auth on exposed endpoints |\n| Persisted sensitive data | data-at-rest protection, retention, backup\u002Fexport exposure, log\u002Fcache leakage |\n| Workflow or action permissions | workflow permissions, token scope, trigger events, OIDC trust, third-party action pinning |\n| Dependency or artifact integrity | dependency audit, checksum\u002Fsignature verification, pinned versions, provenance\u002Fsupply-chain |\n| Agent\u002Fplugin\u002Ftool permissions | allowed tool surface, prompt\u002Ftool trust boundaries, filesystem\u002Fnetwork\u002Fshell authority, plugin hook behavior |\n| Remote mutation | authorization for push\u002Fdeploy\u002Fpublish, target\u002Fbranch protection, credential scope, irreversible-operation safeguards |\n| Supply-chain or publication | provenance, signing, registry\u002Fimage publication, artifact verification, release integrity |\n\n### Step 3: Detect the Vulnerability Patterns Selected by the Matched Surfaces\n\nScan for the high-priority patterns selected by the matched surface(s) in the table above. For\ndetailed code examples of each selected pattern with before\u002Fafter fixes, see:\n\n[`references\u002Fvulnerability-patterns.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fsecurity-review\u002Freferences\u002Fvulnerability-patterns.md)\n\n| Pattern | Severity | What to Look For |\n|---------|----------|------------------|\n| Hardcoded Secrets | CRITICAL | API keys, passwords, tokens in source |\n| SQL Injection | CRITICAL | String concatenation in queries, unparameterized calls |\n| XSS | HIGH | `innerHTML`, unsanitized user content in DOM |\n| Race Conditions | CRITICAL | Non-atomic read-then-write in financial\u002Fstate ops |\n| Insecure Deserialization | HIGH | `eval()`, unsafe JSON parsing of user input |\n| Missing Auth Checks | HIGH | Unprotected routes, missing middleware |\n| CSRF Protection | HIGH | State-changing operations without CSRF tokens or SameSite cookies |\n| Insecure Cookies | MEDIUM | Missing Secure, HttpOnly, or SameSite flags on auth cookies |\n\n### Step 4: Produce a Security Review Report\n\nUse the report format template:\n\n[`references\u002Freport-format.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fsecurity-review\u002Freferences\u002Freport-format.md)\n\n### Step 5: Verify Remediation\n\nAfter fixes are applied, re-run the checklist. Critical and High issues must be resolved before merging. Medium issues should have a tracking ticket. Low issues may be noted for future cleanup.\n\n### Step 6: Run Automated Scanners (only where applicable)\n\nAutomated scanners contribute supporting evidence only when they apply to the matched surface and\nthe repository actually uses the ecosystem or tooling the scanner targets. Do not run a scanner\nwhose surface or ecosystem is absent, and never treat a scanner as satisfying a matched-surface\nreview.\n\n- **AgentShield (agent\u002Fhook\u002FMCP\u002Fpermission surfaces):** `npx ecc-agentshield scan --path .` — run\n  only when a matched surface includes agent prompts, MCP servers, plugin hooks, or permission\n  rules. Detects hardcoded secrets, broad permissions, executable hooks, MCP servers with\n  shell\u002Ffilesystem\u002Fremote transport access, and agent prompts handling untrusted content without\n  defenses. Returns a security grade and prioritized remediation plan.\n- **ECC security-audit tool:** run the audit type that matches the matched surface — `secrets`\n  (regex-based detection of API keys, passwords, JWT tokens, GitHub tokens, AWS secrets) for\n  credential\u002Fsecret surfaces, `code` (eval, innerHTML, dangerouslySetInnerHTML, document.write, SQL\n  injection patterns) for external-input\u002Fcommand-execution surfaces, and `dependencies` only when a\n  dependency\u002Fartifact-integrity surface matched and the repository uses a supported dependency\n  ecosystem (for example npm audit).\n\nThese scanners complement manual review — they catch patterns at scale, but cannot replace\ncontextual judgment.\n\n## Security Response Protocol\n\nWhen a security vulnerability is found:\n\n1. **STOP** the current implementation work immediately\n2. **Triage the severity** using the Priority Rules below\n3. **Fix CRITICAL issues** before continuing with any other work\n4. **Rotate any exposed secrets** — if credentials were committed, revoke and regenerate them\n5. **Review the entire codebase** for similar patterns — one found instance often means more\n6. **Document the finding** in the security review report\n\n## Priority Rules\n\n- **CRITICAL** (hardcoded secrets, SQL injection, auth bypass, race conditions in financial code) — block merge, fix immediately\n- **HIGH** (XSS, missing auth on sensitive routes, exposed PII) — must fix before next release\n- **MEDIUM** (security header gaps, missing rate limiting, stale dependencies) — ticket required\n- **LOW** (informational headers, minor config improvements) — note and track\n\n## Anti-Patterns\n\n- **Don't skip the checklist** — even \"obvious\" code can hide subtle vulnerabilities. Systematic review catches what intuition misses.\n- **Don't trust framework defaults** — frameworks provide tools, not guarantees. Verify that escaping, CSRF protection, and auth middleware are actually applied to every route.\n- **Don't review in isolation** — a function may be safe alone but vulnerable when composed with others. Trace data flow from input to sink.\n- **Don't assume dependencies are clean** — when a dependency\u002Fartifact-integrity surface matched, review dependencies with the repository's actual ecosystem tooling (for example `npm audit`, `pip audit`, or the repository's pinned-version\u002Fchecksum verification). A vulnerable transitive dependency is still your vulnerability.\n\n## Agent & Infrastructure Surfaces\n\nSecurity review is not limited to application code. ECC's AgentShield scanner also covers:\n\n- **Agent prompts** — prompts that process untrusted content without input validation or output sanitization\n- **MCP servers** — servers configured with shell access, filesystem access, remote transport, or unpinned `npx` that could execute attacker-controlled code\n- **Plugin hooks** — executable hooks (file.edited, tool.execute.before\u002Fafter) that could run malicious code when triggered\n- **Permission surfaces** — overly broad tool permissions that bypass user approval gates\n\nThese surfaces are distinct from OWASP Top 10 and require their own review methodology. Run `npx ecc-agentshield scan` to audit them.\n\n## Additional Scanning Tools\n\nComplement manual review with the tools that apply to the matched surface and that the repository\nactually uses. A tool whose surface or ecosystem is not present is not applicable and must not be\nrequired.\n\n| Tool | Applies when | Command |\n|------|--------------|---------|\n| `ecc-agentshield` | an agent\u002Fhook\u002FMCP\u002Fpermission surface matched | `npx ecc-agentshield scan --path .` |\n| `eslint-plugin-security` | the repository uses ESLint for JS\u002FTS | Configure in ESLint config |\n| `git-secrets` | a git repository is present | `git secrets --scan` |\n| `trufflehog` | a git repository is present | `trufflehog filesystem .` |\n| `semgrep` | a source surface to scan exists | `semgrep --config=auto .` |\n\n## CI Integration\n\nThese example gates apply **only when the matched surface calls for them and the repository\nactually uses that ecosystem**. They are not universal CI requirements.\n\n```yaml\n# GitHub Actions — AgentShield gate (only when an agent\u002Fhook\u002FMCP\u002Fpermission surface matched)\n- uses: affaan-m\u002Fagentshield@v1\n  with:\n    path: \".\"\n    min-severity: \"medium\"\n    fail-on-findings: true\n```\n\nBlock merges on CRITICAL and HIGH findings. Add a dependency audit step (for example\n`npm audit --audit-level=high`) only when a dependency\u002Fartifact-integrity surface matched and the\nrepository uses that ecosystem; otherwise use the repository's own dependency-integrity tooling.\n\n## References\n\n- [`references\u002Fowasp-categories.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fsecurity-review\u002Freferences\u002Fowasp-categories.md) — Detailed per-category check tables, common vulnerabilities, and remediation examples for all 10 OWASP categories\n- [`references\u002Fvulnerability-patterns.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fsecurity-review\u002Freferences\u002Fvulnerability-patterns.md) — Code-level vulnerability patterns with before\u002Fafter fixes (secrets, SQL injection, XSS, race conditions)\n- [`references\u002Freport-format.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fsecurity-review\u002Freferences\u002Freport-format.md) — Security review report template with checklist\n","# Security Review\n\nConduct thorough OWASP Top 10 security analysis on code, configurations, and dependencies. This skill provides a structured methodology for identifying, categorizing, and remediating security vulnerabilities before they reach production.\n\n## When to Use\n\nThis skill is the canonical owner of security-review applicability. Its triggers are observable\nrepository\u002Ftask facts — the changed surfaces listed below — never subjective discretion.\n\n**Security-sensitive surfaces (focused security review required):**\n\nLoad this skill and run the full review when the change touches any surface in this list:\n\n- Authentication or authorization (sessions, access-control checks, login, permissions)\n- Credentials, tokens, secrets, or API keys and the configuration that handles them\n- External or untrusted input (user input, request bodies, files, IPC, deserialized data)\n- Filesystem or path trust boundaries (path resolution, traversal, archive extraction, temp files)\n- Privilege changes (privilege escalation, setuid\u002Fsetgid, user\u002Frole changes, sudoers)\n- Docker capabilities, seccomp profiles, sandboxing, root\u002FUID-GID handling, or container security\n- Command or shell execution (`exec`, `spawn`, `eval`, `system`, shell interpolation)\n- Network exposure (listeners, ports, TLS, CORS, bind addresses, proxies)\n- Persisted sensitive data (databases, logs, caches, backup or export formats)\n- Workflow or action permissions (CI workflow `permissions`, tokens, trigger events, OIDC)\n- Dependency or artifact integrity (pinned versions, checksums, signatures, SBOM, download verification)\n- Agent\u002Fplugin\u002Ftool permissions (agent prompts, MCP servers, plugin hooks, permission rules)\n- Remote mutation (push, deploy, publish, release, remote API writes)\n- Supply-chain or publication (release artifacts, packages, registries, image publication)\n\nAlso load this skill when auditing an existing module for vulnerabilities or reviewing and\nprioritizing findings from `npx ecc-agentshield scan`.\n\nSecurity-sensitive surfaces require focused review. Non-security changes preserve existing security\ninvariants under ordinary correctness review and do not require the full generic checklist.\n\n**Precedence — a matched surface cannot be bypassed:**\n\n1. If the change touches any surface listed above, focused security review is **REQUIRED**. It is not\n   made `NOT_APPLICABLE` by automated scanning, by a recent clean scan result, or because the change\n   does not process user input. This applies in particular to shell\u002Fcommand execution, Docker\n   privilege\u002Fseccomp\u002Froot behavior, plugin\u002Fagent\u002Ftool permissions, artifact integrity, workflow\n   permissions, remote mutation, publication\u002Fsupply chain, and path trust boundaries.\n2. Automated security scanning (Step 6, `npx ecc-agentshield scan`) may contribute supporting\n   evidence. It never replaces a review triggered by a matched surface.\n3. The full generic checklist is not required **only when none of the surfaces above matched**.\n\nExamples where no surface matched, so the full checklist is not required: cosmetic or\ndocumentation-only changes with no behavior or trust-boundary impact; pure UI\u002Fstyling changes with\nno data flow implications.\n\nEven when the full checklist is not run, any CRITICAL or HIGH issue found by any path still blocks merge.\n\n## Security Review Workflow\n\n### Step 1: Scope the Review\n\nSelect the matched surface(s) first, from the canonical security-sensitive surface list above. The\nmatched surface(s) — not a generic questionnaire — determine what this review scopes.\n\n1. **Match** — state which of the 14 canonical surfaces the change touches, and the observable\n   changed artifact (file, symbol, config, workflow, or runtime definition) that matched it.\n2. **Scope** — for each matched surface only, identify the relevant attack surface: the input, trust\n   boundary, authority, or asset that the change affects.\n\nIf no surface matched, the full generic checklist is not required (see Precedence above); any\nCRITICAL or HIGH issue found by any path still blocks merge.\n\n### Step 2: Select the OWASP Top 10 Checks for the Matched Surfaces\n\nDo not work through all 10 categories unconditionally. Select the checks for the matched surface(s)\nusing the table below, then consult the per-category check tables for those selected checks:\n\n[`references\u002Fowasp-categories.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fsecurity-review\u002Freferences\u002Fowasp-categories.md)\n\n**Surface -> check-selection table.** Select checks only for the surface(s) matched in Step 1. The\nreferenced files are the HOW-source for each selected check.\n\n| Matched surface | Selected checks |\n| --- | --- |\n| Authentication or authorization | authentication flow, authorization checks, privilege boundaries, session\u002Ftoken behavior |\n| Credentials, tokens, secrets, or API keys | secret detection, storage and transmission, rotation, config handling, log leakage |\n| External or untrusted input | input validation, injection sinks, deserialization safety, IPC trust boundaries, output encoding |\n| Filesystem or path trust boundaries | path traversal, path resolution, archive extraction, temp-file safety, TOCTOU |\n| Privilege changes | privilege escalation, setuid\u002Fsetgid, user\u002Frole boundaries, sudoers, least privilege |\n| Docker capabilities, seccomp, sandboxing, root\u002FUID-GID | capabilities, seccomp, sandbox, UID\u002FGID transitions, mount\u002Fpath exposure |\n| Command or shell execution | shell injection, argument quoting, command construction, environment propagation, privilege\u002Fprocess boundaries |\n| Network exposure | listener\u002Fbind scope, TLS configuration, CORS, proxy trust, auth on exposed endpoints |\n| Persisted sensitive data | data-at-rest protection, retention, backup\u002Fexport exposure, log\u002Fcache leakage |\n| Workflow or action permissions | workflow permissions, token scope, trigger events, OIDC trust, third-party action pinning |\n| Dependency or artifact integrity | dependency audit, checksum\u002Fsignature verification, pinned versions, provenance\u002Fsupply-chain |\n| Agent\u002Fplugin\u002Ftool permissions | allowed tool surface, prompt\u002Ftool trust boundaries, filesystem\u002Fnetwork\u002Fshell authority, plugin hook behavior |\n| Remote mutation | authorization for push\u002Fdeploy\u002Fpublish, target\u002Fbranch protection, credential scope, irreversible-operation safeguards |\n| Supply-chain or publication | provenance, signing, registry\u002Fimage publication, artifact verification, release integrity |\n\n### Step 3: Detect the Vulnerability Patterns Selected by the Matched Surfaces\n\nScan for the high-priority patterns selected by the matched surface(s) in the table above. For\ndetailed code examples of each selected pattern with before\u002Fafter fixes, see:\n\n[`references\u002Fvulnerability-patterns.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fsecurity-review\u002Freferences\u002Fvulnerability-patterns.md)\n\n| Pattern | Severity | What to Look For |\n|---------|----------|------------------|\n| Hardcoded Secrets | CRITICAL | API keys, passwords, tokens in source |\n| SQL Injection | CRITICAL | String concatenation in queries, unparameterized calls |\n| XSS | HIGH | `innerHTML`, unsanitized user content in DOM |\n| Race Conditions | CRITICAL | Non-atomic read-then-write in financial\u002Fstate ops |\n| Insecure Deserialization | HIGH | `eval()`, unsafe JSON parsing of user input |\n| Missing Auth Checks | HIGH | Unprotected routes, missing middleware |\n| CSRF Protection | HIGH | State-changing operations without CSRF tokens or SameSite cookies |\n| Insecure Cookies | MEDIUM | Missing Secure, HttpOnly, or SameSite flags on auth cookies |\n\n### Step 4: Produce a Security Review Report\n\nUse the report format template:\n\n[`references\u002Freport-format.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fsecurity-review\u002Freferences\u002Freport-format.md)\n\n### Step 5: Verify Remediation\n\nAfter fixes are applied, re-run the checklist. Critical and High issues must be resolved before merging. Medium issues should have a tracking ticket. Low issues may be noted for future cleanup.\n\n### Step 6: Run Automated Scanners (only where applicable)\n\nAutomated scanners contribute supporting evidence only when they apply to the matched surface and\nthe repository actually uses the ecosystem or tooling the scanner targets. Do not run a scanner\nwhose surface or ecosystem is absent, and never treat a scanner as satisfying a matched-surface\nreview.\n\n- **AgentShield (agent\u002Fhook\u002FMCP\u002Fpermission surfaces):** `npx ecc-agentshield scan --path .` — run\n  only when a matched surface includes agent prompts, MCP servers, plugin hooks, or permission\n  rules. Detects hardcoded secrets, broad permissions, executable hooks, MCP servers with\n  shell\u002Ffilesystem\u002Fremote transport access, and agent prompts handling untrusted content without\n  defenses. Returns a security grade and prioritized remediation plan.\n- **ECC security-audit tool:** run the audit type that matches the matched surface — `secrets`\n  (regex-based detection of API keys, passwords, JWT tokens, GitHub tokens, AWS secrets) for\n  credential\u002Fsecret surfaces, `code` (eval, innerHTML, dangerouslySetInnerHTML, document.write, SQL\n  injection patterns) for external-input\u002Fcommand-execution surfaces, and `dependencies` only when a\n  dependency\u002Fartifact-integrity surface matched and the repository uses a supported dependency\n  ecosystem (for example npm audit).\n\nThese scanners complement manual review — they catch patterns at scale, but cannot replace\ncontextual judgment.\n\n## Security Response Protocol\n\nWhen a security vulnerability is found:\n\n1. **STOP** the current implementation work immediately\n2. **Triage the severity** using the Priority Rules below\n3. **Fix CRITICAL issues** before continuing with any other work\n4. **Rotate any exposed secrets** — if credentials were committed, revoke and regenerate them\n5. **Review the entire codebase** for similar patterns — one found instance often means more\n6. **Document the finding** in the security review report\n\n## Priority Rules\n\n- **CRITICAL** (hardcoded secrets, SQL injection, auth bypass, race conditions in financial code) — block merge, fix immediately\n- **HIGH** (XSS, missing auth on sensitive routes, exposed PII) — must fix before next release\n- **MEDIUM** (security header gaps, missing rate limiting, stale dependencies) — ticket required\n- **LOW** (informational headers, minor config improvements) — note and track\n\n## Anti-Patterns\n\n- **Don't skip the checklist** — even \"obvious\" code can hide subtle vulnerabilities. Systematic review catches what intuition misses.\n- **Don't trust framework defaults** — frameworks provide tools, not guarantees. Verify that escaping, CSRF protection, and auth middleware are actually applied to every route.\n- **Don't review in isolation** — a function may be safe alone but vulnerable when composed with others. Trace data flow from input to sink.\n- **Don't assume dependencies are clean** — when a dependency\u002Fartifact-integrity surface matched, review dependencies with the repository's actual ecosystem tooling (for example `npm audit`, `pip audit`, or the repository's pinned-version\u002Fchecksum verification). A vulnerable transitive dependency is still your vulnerability.\n\n## Agent & Infrastructure Surfaces\n\nSecurity review is not limited to application code. ECC's AgentShield scanner also covers:\n\n- **Agent prompts** — prompts that process untrusted content without input validation or output sanitization\n- **MCP servers** — servers configured with shell access, filesystem access, remote transport, or unpinned `npx` that could execute attacker-controlled code\n- **Plugin hooks** — executable hooks (file.edited, tool.execute.before\u002Fafter) that could run malicious code when triggered\n- **Permission surfaces** — overly broad tool permissions that bypass user approval gates\n\nThese surfaces are distinct from OWASP Top 10 and require their own review methodology. Run `npx ecc-agentshield scan` to audit them.\n\n## Additional Scanning Tools\n\nComplement manual review with the tools that apply to the matched surface and that the repository\nactually uses. A tool whose surface or ecosystem is not present is not applicable and must not be\nrequired.\n\n| Tool | Applies when | Command |\n|------|--------------|---------|\n| `ecc-agentshield` | an agent\u002Fhook\u002FMCP\u002Fpermission surface matched | `npx ecc-agentshield scan --path .` |\n| `eslint-plugin-security` | the repository uses ESLint for JS\u002FTS | Configure in ESLint config |\n| `git-secrets` | a git repository is present | `git secrets --scan` |\n| `trufflehog` | a git repository is present | `trufflehog filesystem .` |\n| `semgrep` | a source surface to scan exists | `semgrep --config=auto .` |\n\n## CI Integration\n\nThese example gates apply **only when the matched surface calls for them and the repository\nactually uses that ecosystem**. They are not universal CI requirements.\n\n```yaml\n# GitHub Actions — AgentShield gate (only when an agent\u002Fhook\u002FMCP\u002Fpermission surface matched)\n- uses: affaan-m\u002Fagentshield@v1\n  with:\n    path: \".\"\n    min-severity: \"medium\"\n    fail-on-findings: true\n```\n\nBlock merges on CRITICAL and HIGH findings. Add a dependency audit step (for example\n`npm audit --audit-level=high`) only when a dependency\u002Fartifact-integrity surface matched and the\nrepository uses that ecosystem; otherwise use the repository's own dependency-integrity tooling.\n\n## References\n\n- [`references\u002Fowasp-categories.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fsecurity-review\u002Freferences\u002Fowasp-categories.md) — Detailed per-category check tables, common vulnerabilities, and remediation examples for all 10 OWASP categories\n- [`references\u002Fvulnerability-patterns.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fsecurity-review\u002Freferences\u002Fvulnerability-patterns.md) — Code-level vulnerability patterns with before\u002Fafter fixes (secrets, SQL injection, XSS, race conditions)\n- [`references\u002Freport-format.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fsecurity-review\u002Freferences\u002Freport-format.md) — Security review report template with checklist\n",{"name":5,"description":7},"main","8f95d6b7cbf4ec39161b4e6c8bc5e1493e58003c","config\u002Fskills\u002Fsecurity-review",0,"https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow","https:\u002F\u002Fgithub.com\u002Fxiaden","2026-09-30 22:33:49",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add xiaden\u002FSkyScow --skill security-review",{"tool":37,"command":38},"bunx","bunx skills add xiaden\u002FSkyScow --skill security-review",{"tool":40,"command":41},"pnpm","pnpm dlx skills add xiaden\u002FSkyScow --skill security-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fsecurity-review\u002FSKILL.md",true,[45,51,55],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"references\u002Fowasp-categories.md","REFERENCE","参考文档",7532,"https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fsecurity-review\u002Freferences\u002Fowasp-categories.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Freport-format.md",1051,"https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fsecurity-review\u002Freferences\u002Freport-format.md",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fvulnerability-patterns.md",1946,"https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fsecurity-review\u002Freferences\u002Fvulnerability-patterns.md",[60,66,73,79,86,93],{"skillNo":61,"name":62,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7CTNJ49PJ794TEFBCNYYKQM","unquoted-colon","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Ftools\u002Ftests\u002Ffixtures\u002Fskills\u002Funquoted-colon\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7CTNENFBZPEX63HNSRBCW4T","quoted-description","Use when a plain scalar contains a colon: like this one.","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Ftools\u002Ftests\u002Ffixtures\u002Fskills\u002Fquoted-description\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7CTNBBPKA6GMCVEM3GPB59F","block-description","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Ftools\u002Ftests\u002Ffixtures\u002Fskills\u002Fblock-description\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7CTN4M0SR4Z4TPJMHWC3A3B","work-routing","Canonical authority for who owns the next unit of work — direct work versus delegation, task tiers, bounded localization, the Change DAG size threshold, R&D evaluation routing, progressive research escalation, researcher scope signals, and QA\u002Fsupport owner selection. Use before choosing execution, investigation, design, or QA ownership; do not use to construct dispatch prompts, handoff schemas, or Change DAG\u002FDD tool operation.","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fwork-routing\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7CTMY5AY3NSNHGQJA0M7VP9","update-docs","Update project documentation to match code changes — generate codemaps, refresh READMEs, detect doc\u002Fcode drift using AST analysis. Use when updating documentation after code changes, generating codemaps, verifying doc accuracy, or detecting stale documentation. Do NOT use for writing API reference docs from scratch (use doc-coauthoring) or for creating new skill files (use making-editing-skills).","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fupdate-docs\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M7CTMSQD82CPD53C6F07J0R9","skill-loading-system","Explain or troubleshoot OpenCode skill discovery, loading, permissions, availability, or prompt injection.","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fskill-loading-system\u002FSKILL.md",[],[]]