Security Review

codexstar69/bug-hunter/skills/security-review

作者 codexstar693be69733a27aa04d4f5620df203c05350d162067无许可证519 个星标收录于 2026年10月9日更新于 2026年10月9日仓库7周前更新

Run a focused STRIDE-based security review using Bug Hunter-native artifacts. Use whenever the user asks for a full security audit, repository security review, weekly security scan, PR security review with deeper validation, or wants dependency CVEs and threat-model context combined into one workflow.

仅含说明Security
AI 生成的概览

基于 STRIDE 对代码仓库进行安全审查,结合威胁模型、代码扫描与依赖漏洞发现。

功能
该技能引导一套以安全为中心的审查流程,按 STRIDE 扫描代码中的威胁,并将威胁模型上下文与依赖项发现结果结合起来。它支持多种扫描模式,包括拉取请求差异、暂存更改、每周提交范围和完整仓库审计。它会验证严重发现,并将结构化产物(如 hunter-findings.json、referee.json、report.md 以及可选的 fix-strategy.json)写入 .bug-hunter 目录。
适用场景
当用户要求完整安全审计、仓库或 PR 安全审查、每周安全扫描,或希望将依赖 CVE 与威胁模型上下文合并到一个工作流时使用。它面向比简单缺陷排查更深入的审计。
运行要求
需要 Bug Hunter 配套环境,包括含 threat-model.md、triage.json 和 security-config.json 的 .bug-hunter 目录,以及内置的 threat-model-generation 和 vulnerability-validation 技能。依赖扫描使用 node scripts/dep-scan.cjs。该技能本身不附带脚本,仅为说明文档。

Security Review

This is a bundled local Bug Hunter companion skill. It packages a security-focused review workflow without introducing any external marketplace dependency.

Purpose

Use this skill for deeper security audits than a simple bug hunt, especially when the user wants:

  • a full security review
  • PR security validation
  • weekly security scanning
  • dependency reachability + code review together
  • threat-model-driven analysis

Workflow

  1. Ensure .bug-hunter/threat-model.md exists.

    • If missing, invoke the bundled threat-model-generation skill.
  2. Determine the scan mode from the request:

    • PR → diff-scoped review via commit-security-scan
    • staged → staged-only security review
    • weekly → recent commit range on the default branch
    • full → full repository security audit
  3. If dependency scanning is relevant, run:

    • node scripts/dep-scan.cjs --target <path> --output .bug-hunter/dep-findings.json
  4. Scan code for STRIDE threats using Bug Hunter-native conventions. Reuse:

    • .bug-hunter/triage.json
    • .bug-hunter/threat-model.md
    • .bug-hunter/security-config.json
    • .bug-hunter/dep-findings.json
  5. Validate severe findings using the bundled vulnerability-validation skill.

  6. Produce structured outputs compatible with the Bug Hunter pipeline.

Outputs

Primary artifacts should stay inside .bug-hunter/:

  • .bug-hunter/hunter-findings.json
  • .bug-hunter/referee.json
  • .bug-hunter/report.md
  • .bug-hunter/dep-findings.json when dependency review is enabled
  • .bug-hunter/fix-strategy.json if the user wants remediation planning

Important constraints

  • Keep all paths Bug Hunter-native; do not emit .factory/* artifacts.
  • Prefer validated, exploitability-aware findings over raw volume.
  • For patching requests, hand findings back to the normal Bug Hunter fix pipeline rather than inventing a second patch system.

来源与署名

来源:codexstar69/bug-hunter位于skills/security-review提交3be6973

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架