.claude/skills/security-scan-assistant/SKILL.md
[UDS] 引導自動化安全掃描、相依套件審計和機密偵測
npx skillsauth add asiaostrich/universal-dev-standards scanInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
語言: English | 繁體中文
自動化相依套件、機密資訊和授權合規的安全掃描。
| 類型 | 工具範例 | 用途 | |------|----------|------| | 相依套件審計 | npm audit, pip-audit, Snyk | 檢測已知 CVE | | 機密偵測 | gitleaks, trufflehog | 偵測洩漏的憑證 | | 授權合規 | license-checker, SPDX | 驗證開源授權相容性 | | SAST | Semgrep, CodeQL | 靜態分析程式碼模式 |
| 工具 | 指令 | 範圍 |
|------|------|------|
| npm audit | npm audit --json | Node.js 相依套件 |
| Snyk | npx snyk test | 多語言相依套件 |
| Trivy | trivy fs . | 檔案系統與容器 |
| gitleaks | gitleaks detect | Git 歷史機密 |
| SPDX | npx spdx-tool | 授權 SBOM 產出 |
| 嚴重程度 | SLA | 標準 | |----------|-----|------| | Critical | 24 小時 | 遠端執行、認證繞過、資料外洩 | | High | 72 小時 | 權限提升、SQL 注入 | | Medium | 2 週 | XSS、CSRF、資訊洩漏 | | Low | 下個 Sprint | 缺少 Header、冗長錯誤訊息 |
SCAN ──► TRIAGE ──► PRIORITIZE ──► FIX ──► VERIFY
/scan - 完整掃描(相依套件 + 機密 + 授權)/scan --deps - 僅相依套件審計/scan --secrets - 僅機密偵測/scan --license - 授權合規檢查/scan 完成後,AI 助手應建議:
掃描完成。建議下一步:
- 執行
/security深入安全審查- 執行
/checkin確認修復符合提交規範- 執行
/commit提交安全修復- 更新相依套件 →
npm update或pip install --upgrade
development
[UDS] 扫描代码库的调试残留与代码质量问题;可自动修正安全模式。 Use when: before committing, during PR review, or periodic codebase cleanup. Keywords: sweep, debug cleanup, console.log, debugger, TODO, ts-any, code quality, 扫描, 清理.
tools
[UDS] 从规格衍生 BDD 场景、TDD 骨架或 ATDD 表格
development
[UDS] 识别重复流程并以正确的开发深度构建 Skill
tools
[UDS] AI 辅助 git push 安全层:质量门禁 + 协作护栏。 Use when: pushing commits, force pushing, pushing to protected branches, pushing feature branches. Keywords: git push, force push, protected branch, quality gate, push receipt, PR automation, 推送, 保护分支, 质量门禁.