Token导航 LogoToken导航TokenDH.com
Agent Security Action logo
安全风控未说明官方级别未说明来源级核验

Agent Security Action

MCP Server

一款GitHub Action工具,用于扫描AI代理代码中的安全漏洞,支持190多种检测模式,包括OWASP代理安全问题和MCP协议漏洞等。

工具数

0

提示词数

0

GitHub Stars

0

资源数

0
安全开发工具数据分析

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

empowered-humanity

提供方

empowered-humanity

最后核验

2026/5/17 20:20

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

代理安全GitHub操作

](https://github.com/marketplace/actions/agent-security-scan) ](https://www.npmjs.com/package/@empowered-humanity/agent-security)

扫描您的AI代理代码,查看每个拉取请求是否存在安全漏洞。由...驱动 @增强人性/代理人安全.

190+检测模式 涵盖:

  • OWASP代理安全问题(ASI)前10名
  • 快速注射和指令超控
  • MCP协议漏洞(慢雾清单中的44种模式)
  • 凭证暴露和硬编码秘密
  • 跨代理权限升级(CAPE)
  • 通过参数注入远程执行代码
  • CWE为GitHub安全选项卡映射了结果

快速开始

增添 .github/workflows/agent-security.yml:

name: Agent Security Scan
on:
  pull_request:
  push:
    branches: [main]

permissions:
  security-events: write

jobs:
  scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: empowered-humanity/agent-security-action@v1
        with:
          path: '.'
          severity: 'medium'
          fail-on: 'high'

输入

输入描述默认值
path扫描路径(相对于仓库根).
severity报告的最低严重程度(critical, high, medium, low)medium
format输出格式(console, json, sarif)sarif
fail-on如果发现达到或超过此严重程度,则工作流失败high
upload-sarif将SARIF结果上传到GitHub代码扫描true
version要使用的扫描仪版本latest

输出

输出描述
findings-count安全调查结果总数
risk-level总体风险评估(passedfailed)
sarif-fileSARIF输出文件的路径

GitHub安全选项卡集成

upload-sariftrue (默认),结果直接显示在 安全 存储库的选项卡,其中包含:

  • CWE ID链接到MITRE定义
  • OWASP ASI类别标签
  • 基于严重性的过滤
  • pull请求上的内联代码注释

例子

仅扫描关键问题

- uses: empowered-humanity/agent-security-action@v1
  with:
    severity: 'critical'
    fail-on: 'critical'

扫描特定目录

- uses: empowered-humanity/agent-security-action@v1
  with:
    path: 'src/agents'

JSON输出,不上传SARIF

- uses: empowered-humanity/agent-security-action@v1
  with:
    format: 'json'
    upload-sarif: 'false'

在后续步骤中使用扫描结果

- uses: empowered-humanity/agent-security-action@v1
  id: security
  with:
    fail-on: 'critical'

- name: Comment on PR
  if: steps.security.outputs.findings-count > 0
  uses: actions/github-script@v7
  with:
    script: |
      github.rest.issues.createComment({
        issue_number: context.issue.number,
        owner: context.repo.owner,
        repo: context.repo.repo,
        body: `Agent Security found ${{ steps.security.outputs.findings-count }} issue(s).`
      })

它检测到什么

类别模式CWE覆盖范围
快速注射25+CWE-74、CWE-94
学历暴露15+CWE-798、CWE-522
MCP安全44CWE-346、CWE-918
OWASP ASI01-ASI1034CWE-74至CWE-506
参数注入/RCE15+CWE-88、CWE-78
跨代理升级10+CWE-269
防御规避10+CWE-693

许可证

麻省理工学院- 赋权人类,股份有限公司。

目录标签

目录标签

安全开发工具数据分析AI安全本地部署代码扫描GitHubAction安全漏洞检测OWASP

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明none部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP