$git clone https://github.com/wgpsec/cloudsword---
| 1 |  |
| 2 | |
| 3 | <h3 align="center">云鉴,让您的公有云环境更安全</h3> |
| 4 | |
| 5 | <p align="center"> |
| 6 | <img src="https://img.shields.io/github/go-mod/go-version/wgpsec/cloudsword"> |
| 7 | <a href="https://github.com/wgpsec/cloudsword/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-apache-blue.svg"></a> |
| 8 | <a href="https://github.com/wgpsec/cloudsword/releases"><img src="https://img.shields.io/github/downloads/wgpsec/cloudsword/total"></a> |
| 9 | <a href="https://github.com/wgpsec/cloudsword/releases/"><img src="https://img.shields.io/github/release/wgpsec/cloudsword"></a> |
| 10 | <a href="https://github.com/wgpsec/cloudsword"><img src="https://img.shields.io/github/stars/wgpsec/cloudsword"></a> |
| 11 | <a href="https://twitter.com/wgpsec"><img src="https://img.shields.io/twitter/follow/wgpsec.svg?logo=twitter"></a> |
| 12 | <a href="https://twitter.com/teamssix"><img src="https://img.shields.io/twitter/follow/teamssix.svg?logo=twitter"></a> |
| 13 | </p> |
| 14 | |
| 15 | --- |
| 16 | |
| 17 | 云鉴 CloudSword 是一款帮助公有云租户快速发现云上风险、测试云上风险、增强云上防护能力的综合性开源工具。 |
| 18 | |
| 19 | 作为一款面向安全人员的工具,云鉴可以帮助租户快速了解当前公有云环境中的资源信息、快速发现当前环境中可能存在的弱点从而方便安全人员进行修补,云鉴还预设了一些防御方法,方便安全人员快速部署从而增强云上的防御能力。 |
| 20 | |
| 21 | * 全局中文输出,没有使用压力。 |
| 22 | * 命令补全提示,方便易于使用。 |
| 23 | * MSF 使用逻辑,极低学习成本。 |
| 24 | * 凭证不用落地,避免二次泄露。 |
| 25 | |
| 26 | ## 开始使用 |
| 27 | |
| 28 | ### HomeBrew 安装 |
| 29 | |
| 30 | 安装 |
| 31 | |
| 32 | ```bash |
| 33 | brew tap wgpsec/tap |
| 34 | brew install wgpsec/tap/cloudsword |
| 35 | ``` |
| 36 | |
| 37 | 更新 |
| 38 | |
| 39 | ```bash |
| 40 | brew update |
| 41 | brew upgrade cloudsword |
| 42 | ``` |
| 43 | |
| 44 | ### 下载二进制包 |
| 45 | |
| 46 | 云鉴下载地址:[github.com/wgpsec/cloudsword/releases](https://github.com/wgpsec/cloudsword/releases) |
| 47 | |
| 48 | 下载系统对应的压缩文件,解压后在命令行中运行即可。 |
| 49 | |
| 50 | ## 使用手册 |
| 51 | |
| 52 | 完整用法与介绍可以查看 [云鉴使用手册](https://wiki.teamssix.com/cloudsword) |
| 53 | |
| 54 | ## MCP协议支持 |
| 55 | |
| 56 | cloudsword 从v0.0.2 版本开始支持MCP协议,支持SSE以及STDIO方式 |
| 57 | |
| 58 | 使用命令 `./cloudsword sse http://localhost:8080` 即可在本地监听8080端口 |
| 59 | |
| 60 | **SSE模式** |
| 61 | |
| 62 | 以Chrerry stdio为例 填入 http://localhost:8080/sse 即可获得到工具信息 |
| 63 | |
| 64 |  |
| 65 | |
| 66 | **STDIO** |
| 67 | |
| 68 |  |
| 69 | |
| 70 | **使用示例** |
| 71 | |
| 72 |  |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | ## 集成模块 |
| 79 | |
| 80 | 以下是云鉴目前所支持使用的模块: |
| 81 | |
| 82 | ### 阿里云 |
| 83 | |
| 84 | #### 综合 |
| 85 | |
| 86 | | 序号 | ID | 云提供商 | 推荐评级 | 模块名称 | 描述 | |
| 87 | | :--: | :--: | :------: | :------- | :---------------- | :----------------------------------- | |
| 88 | | 1 | 1101 | 阿里云 | ★★★★ | list_cloud_assets | 列出 OSS、ECS、RAM、Domain 服务资产 | |
| 89 | |
| 90 | #### 存储桶 |
| 91 | |
| 92 | | 序号 | ID | 云提供商 | 推荐评级 | 模块名称 | 描述 | |
| 93 | | :--: | :--: | :------: | :------- | :---------------------------- | :--------------------------------- | |
| 94 | | 1 | 1201 | 阿里云 | ★★ | oss_list_buckets | 列出阿里云 OSS 对象存储桶 | |
| 95 | | 2 | 1202 | 阿里云 | ★★★★ | oss_search_objects | 搜索阿里云 OSS 对象 | |
| 96 | | 3 | 1203 | 阿里云 | ★★★ | oss_bucket_only_upload_images | 使用云函数限制存储桶只允许上传图片 | |
| 97 | |
| 98 | #### 弹性计算 |
| 99 | |
| 100 | | 序号 | ID | 云提供商 | 推荐评级 | 模块名称 | 描述 | |
| 101 | | :--: | :--: | :------: | :------- | :----------------- | :--------------------------- | |
| 102 | | 1 | 1301 | 阿里云 | ★★ | ecs_list_instances | 列出阿里云 ECS 弹性计算实例 | |
| 103 | |
| 104 | #### 统一身份认证 |
| 105 | |
| 106 | |
| 107 | | 序号 | ID | 云提供商 | 推荐评级 | 模块名称 | 描述 | |
| 108 | | :--: | :--: | :------: | :------- | :------------------------ | :-------------------------------- | |
| 109 | | 1 | 1401 | 阿里云 | ★★ | ram_list_users | 列出阿里云 RAM 用户 | |
| 110 | | 2 | 1402 | 阿里云 | ★ | ram_list_roles | 列出阿里云 RAM 角色 | |
| 111 | | 3 | 1403 | 阿里云 | ★ | ram_create_user | 创建阿里云 RAM 用户 | |
| 112 | | 4 | 1404 | 阿里云 | ★ | ram_attach_policy_to_user | 为阿里云 RAM 用户添加策略 | |
| 113 | | 5 | 1405 | 阿里云 | ★★★ | ram_create_login_profile | 创建阿里云 RAM 用户 Web 登录配置 | |
| 114 | | 6 | 1406 | 阿里云 | ★ | ram_create_access_key | 创建阿里云 RAM 用户访问凭证 | |
| 115 | |
| 116 | #### 域名 |
| 117 | |
| 118 | | 序号 | ID | 云提供商 | 推荐评级 | 模块名称 | 描述 | |
| 119 | | :--: | :--: | :------: | :------- | :------------------ | :--------------------------- | |
| 120 | | 1 | 1501 | 阿里云 | ★ | domain_list_domains | 列出阿里云 Domains 域名资产 | |
| 121 | |
| 122 | ### 腾讯云 |
| 123 | |
| 124 | #### 综合 |
| 125 | | 序 |