072

5 個 AI 資安審查 Agent Skills 怎麼選:從 Vibe Coding 到 Repo Audit

5 個 AI 資安審查 Agent Skills 怎麼選:從 Vibe Coding 到 Repo Audit 封面圖

比較 Cloudflare、GitHub、Trail of Bits、Anthropic 與資安 playbook,分清 PR review、repo audit、SOC 與治理邊界。

Seer

2026-08-20

如果你想讓 coding agent 幫忙做資安工作,第一題不是「裝哪個 skill」,而是「這次要它整理方法、審核程式碼,還是處理事件」。三者需要的權限、證據與風險控制完全不同。

這篇把五個適合放進 AI 資安審查流程的公開專案放到同一張選擇表:

另外保留 Claude Code CyberSecurity Skill Collection 作為 SOC、IR、GRC 與防禦流程的補充,不把它和前五個工具當成同一種 scanner。

這些專案分屬 instructions、workflow、plugins、GitHub Action 與 playbook catalog。它們不會因此變成資安產品,也不會取代授權範圍、人工審核、隔離環境與既有 SDLC/IR 流程。

本輪做靜態閱讀,沒有安裝 plugin、沒有執行任何掃描、payload、分析 script 或對外連線測試。

先看選擇

你的問題優先看哪一個原因
想建立涵蓋 ATT&CK、NIST、AI security、GRC 的資安知識地圖Anthropic Cybersecurity Skills以多個領域與 framework mapping 做任務分流
想做整個 repo 的多階段漏洞審查,要求 finding 經過反駁與獨立驗證Cloudflare Security Audit Skill有 Recon、Hunt、Validate、Report、JSON 與 verification pipeline
想在一般 coding agent 裡快速檢查 injection、secrets、dependency、auth 與 business logicGitHub Security Review通用型 skill,提供跨檔案 data flow review、severity 與修補建議
要 review C/C++、Rust、supply chain 或 CI 變更,並要求 evidence 與 false-positive gateTrail of Bits Skills以專業化 plugin 拆分語言、漏洞類型、SARIF 與驗證工作
想讓 GitHub PR 自動留下 security reviewAnthropic Claude Code Security ReviewGitHub Action 以 PR diff 為範圍,回寫 findings 與 review comments
要 SOC playbook、IR report、事件分流、GRC crosswalk 或安全基線草稿Claude Code CyberSecurity Skill Collection偏防禦職能、SOC、IR、Cloud、AI/LLM 與 GRC
目標是未授權掃描、繞過或攻擊真實系統都不該直接跑先取得明確書面授權,再由受控流程處理

這六個選項有不同層級。前五個是本篇核心比較,Masriyan collection 是 SOC/IR/GRC 補充,不宜用同一把 scanner 尺比較。

1. Anthropic Cybersecurity Skills:先建一張資安工作地圖

mukul975/Anthropic-Cybersecurity-Skills 是社群 repo,不是 Anthropic PBC 官方出品。[1][3]

README 採 Agent Skills 格式,定位是讓 Claude Code、Codex、Cursor、Copilot、Windsurf、Cline、Aider、Continue、Roo Code、LangChain、CrewAI、MCP agent 等 client 載入資安 playbook。[2][9]

repo README 自稱 817 skills、29 個 domain、6 套框架。逐列加總 README 的 domain table 得到 785,與 817 不一致。可能是統計時間差、分類重疊或文件不同步,本輪沒有執行完整檔案計數來替作者補答案。因此文章中的 817 一律標為 repo 宣稱。[2]

它能幫你做什麼

  • 將任務映到 ATT&CK、NIST CSF、D3FEND、NIST AI RMF、MITRE F3、ATLAS 等框架語言。[2][10][11]
  • 把「事件分流」「雲端 posture review」「安全需求」「AI agent threat model」這些大題切成可讀的 workflow。[2]
  • 讓 agent 先匹配 metadata,命中時才讀完整 SKILL.md。README 的 token 數是作者估計,沒有在本輪重測。[2]
  • 用內建 security policy 和 boundaries 明確提醒合法授權範圍。[6]

本輪讀的 triaging-security-incident 將告警分類、衝擊判斷、升級與交接拆開。這種防禦向 playbook 適合當 SOC 團隊的草稿起點,仍要接進現有 SIEM、ownership、證據保存和通報制度。[8]

安裝和版本要分開看

README 的安裝路徑包含:

npx skills add mukul975/Anthropic-Cybersecurity-Skills

也可用 marketplace plugin。repo 的 plugin tag 停在 1.3.0,查核的 main4c0b700。兩者是不同快照,不能把 plugin tag 當成 main 的完整內容。[2][4][7]

適用邊界

這個 repo 的價值是廣度與 mapping。它適合作為「資安任務分流層」,不應被描述成已完成 audit、已修補漏洞或可直接執行的攻擊工具。對含攻擊面或雙用途操作的 skill,最安全的落地方法是停在授權確認、測試計畫、資產清單、風險摘要與防禦改善。[6]

2. Cloudflare Security Audit Skill:完整 repo audit pipeline

Cloudflare Security Audit Skill 是一份面向 coding agent 的多階段 security audit skill。它把 repo 審查拆成 Recon、Hunt、Validate、Report、Structured Output 與 Independent Verification 六個階段。[21]

它的輸出包含:

  • architecture.md
  • REPORT.md
  • FINDINGS-DETAIL.md
  • 符合 schema 的 findings.json

流程中,Hunt agent 會從 injection、access control、business logic、cryptography、feature abuse 與 chained attack 等角度找候選問題,另一批 agent 再嘗試推翻 finding。最後還會把 structured output 的 factual claims 對回原始 source code。[21]

這是五個核心選項中最像「完整 repo audit」的工具,但它的執行成本與風險也最高。官方要求 coding agent 支援 tool use 與平行 sub-agents,另需要 Node.js 驗證 findings schema。[21]

README 也提醒,多次執行會探索不同 code paths,單次 run 不代表完整覆蓋。因此文章可以說它提供多階段與反駁驗證流程,不能把它寫成一次掃描就保證找完漏洞。[21]

3. GitHub Security Review:通用型 codebase review skill

GitHub Security Reviewgithub/awesome-copilot 裡的一份 Agent Skill。它不是獨立的 GitHub PR security Action,而是給 coding agent 載入的 security-review instructions 與 references。[22][24]

它涵蓋:

  • injection、XSS、command injection 與 SSRF
  • secrets 與 credential exposure
  • dependency CVE
  • authentication、authorization 與 IDOR
  • crypto、randomness 與 TLS
  • path traversal、deserialization 與資料暴露
  • race condition、rate limiting 與 business logic
  • 跨檔案 data flow analysis

流程會先解析 scope,再做 dependency audit、secrets scan、vulnerability deep scan、cross-file review 與 self-verification,最後產生 severity、confidence、file/line evidence 與修補建議。[22]

它適合當 Vibe Coding 的第一層 review。使用時仍要把它當成 agent instruction,不要把 README 裡的「像 security researcher 一樣推理」直接當成偵測率、覆蓋率或安全保證。[22]

4. Trail of Bits Skills:專業化審計 plugin marketplace

Trail of Bits Skills 是 Trail of Bits 維護的 Claude Code plugin marketplace,Codex 也能透過 Claude marketplace compatibility 載入。[12][13]

2026-08-20 查核快照約 6,700 stars、579 forks,最新 commit 是 2026-08-19。repo 採 CC-BY-SA-4.0,內容再散布或改作時要留意 attribution 與 ShareAlike 條件。[12][16]

它不像前兩個選項提供一條通用 audit pipeline,而是切成多個專業 plugin:[13][15]

  • C/C++ 與 Rust review
  • static analysis 與 SARIF parsing
  • differential review
  • supply-chain risk
  • Semgrep rule 與 variant analysis
  • constant-time analysis
  • agentic actions audit
  • smart contract security

c-review 為例,它把 C/C++ security review 拆成 orchestrator、平行 worker、dedup judge、false-positive judge,最後產出 REPORT 和 SARIF。這比「請 agent 看看有沒有洞」多了 scope、finding、去重與驗證節點。[14]

這個 marketplace 適合放進 PR、release candidate 與 CI gate。挑選時要依語言、漏洞類型與輸出格式安裝指定 plugin,不需要把整個 marketplace 同時啟用。

這不代表結果自動可靠。repo 自己的流程也要求 threat model、scope、成功條件與 judge 階段。真正合併修補前,仍要由知道架構與風險承受度的人複核。[14]

適合你怎麼用

  • 在 PR 前跑 static/dependency/unsafe defaults review
  • 對 C、C++、Rust 或 smart contract 做有範圍的安全 code review
  • 把 SARIF 接進既有 CI gate,再由人確認 high/critical finding
  • 將 security review 改成可重複的 issue → evidence → fix → regression 流程

不要把它當成在 production 上隨意「挖洞」的理由。任何會讀大量私有碼、叫用 CLI、分析 artifact 或改設定的 plugin,都應先在隔離 runner、最小權限 token 和明確 scope 下執行。

5. Anthropic Claude Code Security Review:PR diff 的自動化 gate

Claude Code Security Review 是 Anthropic 維護的 GitHub Action,使用 Claude 分析 Pull Request 的程式碼變更,並可將 finding 留在 PR comment 與 artifact。[23]

它的特徵是:

  • diff-aware scanning
  • PR review comments
  • severity 與 remediation guidance
  • false-positive filtering
  • 可排除目錄
  • 可自訂 security review instructions
  • 可選擇每個 commit 重新執行

這個工具和 Cloudflare 的 repo audit 不是同一種入口。Anthropic Action 以 PR 變更為主要範圍,適合放在 GitHub workflow。Cloudflare 則從整個 repo 的架構、輸入面與攻擊路徑開始建立 audit context。[21][23]

它的安全邊界一定要寫進文章:官方 README 明確提醒,這個 Action 尚未針對 prompt injection 做 hardened,建議只審查可信任的 PR,並對外部 contributor 設定人工核准。[23]

此外,workflow 需要把 CLAUDE_API_KEY 放進 GitHub Secrets,並賦予 PR comment 所需的權限。這代表它不是裝上 Action 就能無條件對所有 fork PR 自動執行的安全黑盒。[23]

補充:Claude Code CyberSecurity Skill Collection:SOC、IR、GRC 的職能包

Masriyan 的 Claude Code CyberSecurity Skill Collection 是另一種切法。README 宣稱 19 個 skills、v3.0,橫跨 recon、vulnerability assessment、reverse engineering、threat hunting、incident response、network/web/cloud security、SOC automation、AI/LLM、mobile、OT/ICS 與 GRC。[17][18]

2026-08-20 查核快照約 347 stars、64 forks,最新 commit 是 2026-08-09,MIT 授權。[17][20]

它的強項在於把資安職能包裝成可輸出報告、規則、checklist 或 playbook 的工作單位。以 Incident Response skill 為例,列出 PICERL、evidence collection、timeline、post-incident reporting 與鄰近 skill 的分工。[19]

可以放進哪些團隊流程

工作skill 可先交什麼最終仍要由誰負責
SOC alert triage分流摘要、所需證據、升級建議on-call analyst/IR lead
事件應變role-assigned playbook、時間線模板、事後報告骨架IR owner、法務、IT/雲端 owner
雲端 posture檢查項、修補 priority、控制項對照cloud security、platform team
GRCrisk register、control crosswalk、證據清單compliance owner、稽核與法務
AI app security威脅模型問題、agent/tool-use 風險清單產品 security engineer、系統 owner

repo 也包含容易落到雙用途或高風險的內容。README 對 offensive skills 標示需 explicit authorization。實務上,應把這類內容關進獨立測試環境,且由 engagement owner 明確核准範圍。[18]

這些工具怎麼組,避免一起全裝

全裝的問題很直接:context 變大、相近 instructions 互相衝突、agent 的 tool privilege 難管理,還會讓審查軌跡變差。

建議用四層:

Layer 1:知識與任務分類
  Anthropic Cybersecurity Skills

Layer 2:PR 與一般 codebase review
  GitHub Security Review
  Anthropic Claude Code Security Review

Layer 3:工程 security gate 與完整 repo audit
  Trail of Bits 的指定 plugin
  Cloudflare Security Audit Skill

Layer 4:SOC / IR / GRC 文件與流程
  Claude Code CyberSecurity 的防禦向 skill

實際落地從一個低風險的 read-only 任務開始:

  1. 建一個只含測試 fixture 或非 production snapshot 的專案
  2. 只裝一個和任務相符的 plugin/skill
  3. 預先定義可讀目錄、可執行工具、禁止對外連線的範圍
  4. 要求輸出 evidence、unknowns、false-positive risks 和後續人工驗證項目
  5. 將 finding 轉成 issue,修補要有 review 與 regression test
  6. 每次升級或改 plugin 都固定 commit/release 版本,重跑 fixture

選擇時看七件事

  • Author 和維護模式:組織維護、社群維護、單人 repo 的風險不同
  • 版本快照:看 commit、tag、release,而不是只看 README
  • 授權(既有集合):Trail of Bits 是 CC-BY-SA-4.0,Masriyan 是 MIT,ACS 是 Apache-2.0。[5][16][20]
  • 授權(新增審查工具):Cloudflare 與 Anthropic Action 的 README 標示 MIT。[25][26]
  • 工具權限:skill 是否要求 Bash、網路、credential、subagent、外部 SaaS
  • 驗證出口:是否能產出 SARIF、evidence、測試、人工 review gate
  • PR 信任邊界:是否會讀取不可信 diff、是否有 prompt injection 警告、是否需要 maintainer approval
  • 授權與資料範圍:確認要分析的 code、log、binary、cloud account 都在可處理範圍

限制

  • 本文只做 static-first 研究,沒有安裝或執行任一 repo。
  • ACS 的 817 與 domain table 785 有文件落差,不能把 817 當成已獨立驗證檔案數。[2]
  • Cloudflare 的多階段流程與 findings schema 是文件與 source 可驗證的設計,未在本輪實測漏洞覆蓋率、false-positive rate 或多次 run 的增益。[21]
  • GitHub Security Review 是 awesome-copilot 裡的 Agent Skill,不是獨立 SAST 平台或 GitHub PR Action。[22][24]
  • Anthropic Action 官方明確提醒 prompt injection 與不可信 PR 的風險,不能對所有外部 fork 無條件自動執行。[23]
  • Trail of Bits 的 star、fork、plugin 清單會變,且 CC-BY-SA 條件對衍生內容有影響。[12][16]
  • Masriyan collection 覆蓋面廣,包含安全測試與雙用途領域。使用時要保留授權確認與防禦優先的治理層。[18]
  • 任何 agent skill 都會受模型、runtime、context、工具版本和權限影響。skill 的存在不構成 audit result。

結語

資安 agent skills 最有效的用途,是把安全工作變成可審查的流程:先界定任務,再限制工具與資料,要求 evidence,最後交給正確角色做決策。

要建立資安工作地圖,選 ACS。要做完整 repo audit,選 Cloudflare。要在 Vibe Coding 過程先做通用 review,選 GitHub Security Review。要做專業化語言、static analysis、supply chain 或 CI 審計,選 Trail of Bits。要把 PR review 接進 GitHub workflow,選 Anthropic Action。要處理 SOC、IR、GRC 文件與職能分工,再看 Masriyan collection。

五個核心工具各自站在不同入口,補充集合也有自己的位置。先選正確的 scope 與權限,再談 agent 能不能找到漏洞。

Sources

[1] https://github.com/mukul975/Anthropic-Cybersecurity-Skills — mukul975/Anthropic-Cybersecurity-Skills [2] https://raw.githubusercontent.com/mukul975/Anthropic-Cybersecurity-Skills/4c0b700ac5d280ba46695062077f0fe922ce3602/README.md — README.md at 4c0b700 [3] https://api.github.com/repos/mukul975/Anthropic-Cybersecurity-Skills — GitHub repo metadata [4] https://api.github.com/repos/mukul975/Anthropic-Cybersecurity-Skills/releases/latest — GitHub latest release [5] https://raw.githubusercontent.com/mukul975/Anthropic-Cybersecurity-Skills/4c0b700ac5d280ba46695062077f0fe922ce3602/LICENSE — LICENSE [6] https://raw.githubusercontent.com/mukul975/Anthropic-Cybersecurity-Skills/4c0b700ac5d280ba46695062077f0fe922ce3602/SECURITY.md — SECURITY.md [7] https://raw.githubusercontent.com/mukul975/Anthropic-Cybersecurity-Skills/4c0b700ac5d280ba46695062077f0fe922ce3602/.claude-plugin/plugin.json — plugin.json [8] https://raw.githubusercontent.com/mukul975/Anthropic-Cybersecurity-Skills/4c0b700ac5d280ba46695062077f0fe922ce3602/skills/triaging-security-incident/SKILL.md — triaging-security-incident SKILL.md [9] https://agentskills.io — agentskills.io [10] https://raw.githubusercontent.com/mukul975/Anthropic-Cybersecurity-Skills/4c0b700ac5d280ba46695062077f0fe922ce3602/ATTACK_COVERAGE.md — ATTACK_COVERAGE.md [11] https://raw.githubusercontent.com/mukul975/Anthropic-Cybersecurity-Skills/4c0b700ac5d280ba46695062077f0fe922ce3602/mappings/README.md — mappings/README.md [12] https://github.com/trailofbits/skills — Trail of Bits Skills repository [13] https://raw.githubusercontent.com/trailofbits/skills/main/README.md — Trail of Bits Skills README [14] https://raw.githubusercontent.com/trailofbits/skills/main/plugins/c-review/skills/c-review/SKILL.md — Trail of Bits c-review skill [15] https://raw.githubusercontent.com/trailofbits/skills/main/plugins/supply-chain-risk-auditor/skills/supply-chain-risk-auditor/SKILL.md — Trail of Bits supply-chain-risk-auditor skill [16] https://raw.githubusercontent.com/trailofbits/skills/main/LICENSE — Trail of Bits Skills CC-BY-SA-4.0 license [17] https://github.com/Masriyan/Claude-Code-CyberSecurity-Skill — Claude Code CyberSecurity Skill repository [18] https://raw.githubusercontent.com/Masriyan/Claude-Code-CyberSecurity-Skill/main/README.md — Claude Code CyberSecurity Skill README [19] https://raw.githubusercontent.com/Masriyan/Claude-Code-CyberSecurity-Skill/main/skills/07-incident-response/SKILL.md — Claude Code CyberSecurity incident response skill [20] https://raw.githubusercontent.com/Masriyan/Claude-Code-CyberSecurity-Skill/main/LICENSE — Claude Code CyberSecurity Skill MIT license [21] https://raw.githubusercontent.com/cloudflare/security-audit-skill/main/README.md — Cloudflare Security Audit Skill README [22] https://raw.githubusercontent.com/github/awesome-copilot/main/skills/security-review/SKILL.md — GitHub awesome-copilot security-review SKILL.md [23] https://raw.githubusercontent.com/anthropics/claude-code-security-review/main/README.md — Anthropic Claude Code Security Review README [24] https://raw.githubusercontent.com/github/awesome-copilot/main/docs/README.skills.md — GitHub awesome-copilot Agent Skills documentation [25] https://raw.githubusercontent.com/cloudflare/security-audit-skill/main/LICENSE — Cloudflare Security Audit Skill LICENSE [26] https://raw.githubusercontent.com/anthropics/claude-code-security-review/main/LICENSE — Anthropic Claude Code Security Review LICENSE

先把邊界講清楚,工具才能變成可靠流程。

Visits

--

Waiting for Cloudflare metrics.