一键导入
security-audit
Comprehensive TypeScript/Node.js security audit — OWASP vulnerability scan, npm audit, secrets detection, and combined severity report.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Comprehensive TypeScript/Node.js security audit — OWASP vulnerability scan, npm audit, secrets detection, and combined severity report.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate or update OpenAPI specification from TypeScript/Express route definitions. Validate spec-to-code consistency. Use after adding or changing API endpoints.
Stack-agnostic Clean Code audit — module size, function-length/complexity (via your project's existing linter), long parameter lists, TODO/FIXME/HACK markers, commented-out code, debug-print leakage, and optional duplication detection. Produces a structured findings report with optional fix suggestions. Use before merges, at end of a feature, or as a regular hygiene pass.
Run a comprehensive code review across architecture, security, testing, naming, and patterns. Invokes relevant reviewer agents in sequence. Use before merging features or at the end of a phase. With --quorum, dispatches multi-model analysis for higher confidence.
Generate, review, test, and deploy database schema migrations. Use when adding columns, creating tables, or changing schema.
Scan TypeScript/Node.js project dependencies for vulnerabilities, outdated packages, and license issues. Use before PRs, after adding packages, or on a regular schedule.
Guided plan execution — list available plans, estimate cost, choose mode, and execute with live progress. Use when you want to run a hardened plan through the orchestrator.
| name | security-audit |
| description | Comprehensive TypeScript/Node.js security audit — OWASP vulnerability scan, npm audit, secrets detection, and combined severity report. |
| argument-hint | [optional: 'full' (default), 'owasp', 'dependencies', 'secrets'] |
| tools | ["run_in_terminal","read_file","grep_search","forge_sweep"] |
"Run a security audit" / "Check for vulnerabilities" / "Scan for secrets" / "OWASP check"
4-phase security audit tailored for TypeScript/Node.js projects. See presets/shared/.github/skills/security-audit/SKILL.md for the full report format and secrets detection patterns.
requireAuth, passport.authenticate, express-jwt)req.params.id without ownership validation`SELECT ... ${` — must use parameterized queries ($1, ?)eval(), Function(), vm.runInContext(), vm.runInNewContext()child_process.exec() with user input (use execFile or spawn instead)Object.assign({}, userInput) or spread of unvalidated inputcors({ origin: '*' }) or missing CORS confighelmet or equivalent security headers middlewareDEBUG, NODE_ENV=development in production configbcrypt or argon2 (not crypto.createHash('md5'))RS256 or ES256 (not HS256 with weak secrets)/login, /auth, /token endpointspackage-lock.json is committed (integrity hashes)eval() or dynamic require() / import() with user input<script> tagsRate each finding: CRITICAL (exploitable), HIGH (exploitable with effort), MEDIUM (defense-in-depth gap), LOW (hardening).
npm audit --audit-level high
If using pnpm:
pnpm audit --audit-level high
If using yarn:
yarn audit --level high
Then check for outdated packages:
npm outdated
Check for license issues:
npx license-checker --summary --failOn "GPL-3.0;AGPL-3.0"
If npm audit is not available: Report and continue. Do NOT fail the entire audit.
Use the patterns from the shared skill (presets/shared/.github/skills/security-audit/SKILL.md Phase 3).
Additional Node.js patterns:
.env files with real values (check if .env is in .gitignore)process.env. assignments with hardcoded fallback secretsapiKey valuesExclude: node_modules/, .git/, dist/, build/, .next/, coverage/
Follow the shared skill report format. See presets/shared/.github/skills/security-audit/SKILL.md Phase 4.
***| Shortcut | Why It Breaks |
|---|---|
| "This scan is probably all false positives" | False positives exist, but dismissing findings without investigation misses real vulnerabilities. Verify each finding individually. |
| "We'll fix the medium-severity findings later" | Medium findings compound. An XSS + a missing header + an unvalidated input = a real exploit chain. Fix or explicitly accept the risk with documentation. |
| "Test files don't need security review" | Test files contain connection strings, mock credentials, and API patterns that leak into production via copy-paste. Review them at INFO level. |
| "The dependency scanner isn't installed, skip Phase 2" | Report the missing scanner and continue with other phases. Don't fail the entire audit — partial results are better than none. |
| "This is an internal API, OWASP doesn't apply" | Internal APIs get exposed through misconfiguration. OWASP applies to all HTTP surfaces regardless of intended audience. |
***After completing this skill, confirm:
*** only)search_thoughts("security audit", project: "Falsify", created_by: "copilot-vscode", type: "bug")capture_thought("Security audit (Node.js): <summary>", project: "Falsify", created_by: "copilot-vscode", source: "skill-security-audit", type: "bug")