security-scan
它能做什么
这项技能对你的代码运行基于模式的安全扫描,查找依赖问题、硬编码的机密信息和有风险的代码模式。适用于希望在审查或发布前进行初步安全检查的开发者。
适用场景
- ✓当你正在审查拉取请求中的安全问题的时候。
- ✓当你希望在部署到生产环境前进行安全检查的时候。
- ✓当你想对代码进行快速、标准或深度扫描的时候。
技能链接
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-security-audit/skills/security-scan/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请对此代码库运行标准安全扫描,并告诉我应先人工核实哪些发现。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能以你选择的深度运行扫描器。依赖项会被完整检查,而机密信息和代码模式则按照级别设定的深度进行搜索。它会把每项发现视为线索,并打开文件加以确认后再报告。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Run a security scan at the specified depth.
Via CLI:
npx @claude-flow/cli@latest security scan --depth DEPTH --output json
npx @claude-flow/cli@latest security cve --list
npx @claude-flow/cli@latest security threats --model stride --export md
What the scan really does (v3/@claude-flow/cli/src/commands/security.ts): phase 1 runs npm audit for dependencies, phase 2 greps for hard-coded secrets, phase 3 greps source for risky code patterns. --type deps|code|all picks phases; --depth only sets how many directory levels phases 2 and 3 descend:
| Depth | Dependencies | Secrets (levels) | Code patterns (levels) |
|---|---|---|---|
| quick | yes | 3 | skipped |
| standard | yes | 5 | 5 |
| deep | yes | 10 | 10 |
It is a pattern scanner, not a taint or auth-flow analyser, and security threats is a separate STRIDE/DREAD/PASTA template, not a scan of your code. Treat every finding as a lead, not a verdict: open the file at the reported line before reporting it, and drop matches in comments, error strings, generated bundles (coverage/, playwright-report/) and test fixtures. Say which of the phases above you ran and which you did not.
Store findings via MCP: mcp__plugin_ruflo-core_ruflo__memory_store({ key: "scan-findings", value: "SUMMARY", namespace: "security-findings" })
Train patterns: mcp__plugin_ruflo-core_ruflo__hooks_post-task({ taskId: "security-scan", success: true, storeResults: true })
常见问题
这是完整的安全审计吗?
不是。来源将其称为模式扫描器,而不是污点或身份验证分析器,因此结果只是需要核实的线索。
深度级别改变了什么?
只改变机密信息和代码检查所搜索的文件夹层级数,从快速到深度。
结果会被保存吗?
会。摘要可以保存到 security-findings 记忆命名空间中。
详情
作者的原始描述
Run full security scans on the codebase using Ruflo security tools. Use when reviewing PRs for security regressions, auditing auth/input-handling code, before production deploys, or when the user asks for a security check at quick/standard/deep depth.
repo: ruvnet/ruflo
热度
- GitHub 星标
- 81k
- 排名
- #1694
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-adaptive-coordinator
81k帮你的智能体在工作量变化时拆分和重新平衡一组 AI 智能体,并选择适合任务的分工方式。
agent-agent
81k教你的智能体把一个大目标拆成有顺序的行动计划,并在情况变化时重新规划。
agent-agentic-payments
81k帮你的智能体管理 AI 购物的消费授权,包括消费上限、时间窗口、商户规则和签名审批。
agent-analyze-code-quality
81k帮你的智能体检查代码质量,找出代码异味、技术债务和重构建议,且不改动文件。