SA

srajangpt1/ai-security-crew

安全测试

本页由 AI 翻译,技术细节请以原文为准。 查看原文

74 stars 28 forks 质量 80 趋势 8MIT

srajangpt1/ai-security-crew 是从 https://github.com/srajangpt1/ai-security-crew. 导入的 MCP 服务器候选

概览

srajangpt1/ai-security-crew 是从 https://github.com/srajangpt1/ai-security-crew. 导入的 MCP 服务器候选

概述(AI 翻译)

为人工智能编码代理提供安全保障,涵盖他们编写的代码和所采取的操作。

AI编码代理带来了两种风险:

  • 代码。 代理编写功能时不考虑如何被攻击,添加从未检查过的包,且很少审查自身输出。
  • 代理。 代理读取它未写的文本:README、网页、问题线程、工具输出。在其中任何一个植入指令,都可以引导它执行带有你权限的命令,比如发送凭证或安装类似包。

AI Security Crew 在一个 Claude Code 插件中涵盖了这两者。

部分 保护 它的作用
威胁审查 代码 在编码之前,代理从组件库中获取需要防范的威胁和内置的对策,威胁与对策
依赖性检查 代码 当添加包时,确认它们的存在并扫描其CVE,然后让代理检查是否真的访问了有漏洞的代码

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

AI Security Crew

Security for AI coding agents, covering both the code they write and the actions they take.

AI coding agents create two kinds of risk:

  • The code. The agent writes a feature without thinking about how it can be attacked, adds packages it has never checked, and rarely reviews its own output.
  • The agent. The agent reads text it did not write: READMEs, web pages, issue threads, tool output. A planted instruction in any of them can steer it into running commands with your privileges, such as sending your credentials somewhere or installing a lookalike package.

AI Security Crew covers both, in one Claude Code plugin.

Part Protects What it does
Threat review The code Before coding, the agent gets the threats to guard against and the countermeasures to build in, from a library of components, threats and countermeasures
Dependency checks The code When packages are added, confirms they exist and scans them for CVEs, then has the agent check whether the vulnerable code is actually reached
Code review checklist The code After coding, the agent reviews its own code against a checklist for the parts it built. Your code is never sent to the tool
Runtime guard (asc-guard) The agent Before each tool call, a decision model judges the call and the guard allows it, asks you, or denies it. Tool output is checked for injected instructions

How it fits together

 before coding          while the agent works                  after coding
 ─────────────          ─────────────────────                  ────────────
 threat review   ──►    asc-guard judges every tool call  ──►  code review checklist
 threat model           dependency checks on new packages

The first three parts are an MCP server plus skills: they give the agent knowledge and checklists, and the agent does the work. The guard is different: it runs as a client hook outside the model, so an agent that has been misled cannot skip it.

Install

/plugin marketplace add Srajangpt1/ai-security-crew
/plugin install mcp-security-review@ai-security-crew

This installs everything. The MCP server and the guard run through uv, so install that first.

You get Notes
MCP server (sec-review) The tools listed under Code security. Starts from GitHub through uvx
Skills /security-review before coding, /verify-code after coding, /threat-model for new features. They use the MCP tools and fall back to plain guidance without them
在 GitHub 查看完整 README

安装

uvx --from git+https://github.com/Srajangpt1/ai-security-crew mcp-security-review
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "sec-review": { "command": "uvx", "args": [ "--from", "git+https://github.com/Srajangpt1/ai-security-crew", "mcp-security-review" ] } } }