跳到正文
Skillpedia
安全81k · #1694

security-scan

它能做什么

这项技能对你的代码运行基于模式的安全扫描,查找依赖问题、硬编码的机密信息和有风险的代码模式。适用于希望在审查或发布前进行初步安全检查的开发者。

适用场景

  • ✓当你正在审查拉取请求中的安全问题的时候。
  • ✓当你希望在部署到生产环境前进行安全检查的时候。
  • ✓当你想对代码进行快速、标准或深度扫描的时候。

技能链接

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-security-audit/skills/security-scan/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-security-audit/skills/security-scan/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能