Token导航 LogoToken导航TokenDH.com
Cloud Audit MCP logo
AI代理未说明官方级别未说明来源级核验

Cloud Audit MCP

MCP Server

为AI代理提供直接访问云API的云安全审计工具,能够实时读取、关联并修复安全配置问题。

工具数

38

提示词数

0

GitHub Stars

4

资源数

0
安全审计TypeScriptClaudeClaude DesktopClaudeCursorWindsurf

安装说明

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

作者 / 组织

badchars

提供方

badchars

最后核验

2026/5/17 20:21

快速接入

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

详细介绍

Cloud security audit tools for AI agents.

Prowler gives you a 200-page PDF.

This gives your AI agent direct access to cloud APIs — it reads, correlates, and fixes.

The Problem • How It's Different • Quick Start • What The AI Can Do • Tools • Checks • Architecture

______________________________________________________________________

问题

云安全工具十年来没有改变。你运行Prowler,等待30分钟,得到一份200页的报告,然后 必须阅读它,理解它,优先考虑它,并修复它。每一个。单身。时间。

Traditional workflow:
  prowler aws --compliance cis_3.0       →  200 findings, 40 pages
  you read the report                    →  2 hours
  you figure out what matters            →  30 minutes
  you write the fix commands             →  1 hour
  you run them                           →  30 minutes
  ─────────────────────────────────────
  Total: 4+ hours of your time

云审计mcp 消除了人为瓶颈。你的人工智能代理直接调用云API,了解它发现了什么,将检查链接在一起,并在几秒钟内告诉你要修复什么。

With cloud-audit-mcp:
  You: "Check my AWS account for critical misconfigurations and fix them"

  Agent: → calls aws_check_s3_public, aws_check_iam_policies, aws_check_ec2_imds...
         → correlates: "This Lambda has admin role AND secrets in env vars"
         → prioritizes: "3 critical, 5 high — here's the impact of each"
         → "Run these 3 commands to fix the critical ones"

______________________________________________________________________

这有什么不同

每个现有的工具都是为 人类阅读报告.cloud审计mcp是为 AI代理采取行动.

Prowler / ScoutSuite / CloudSploit cloud-audit-mcp

Interface CLI → static report (PDF/HTML/JSON) MCP → AI agent calls tools in real-time

Intelligence Run all checks, dump results Agent picks which checks to run based on context

Correlation None — each finding is isolated Agent chains findings: "This public S3 + this Lambda role = data exfil path"

Remediation Generic advice Agent generates exact CLI commands for your resources

Follow-up Re-run the entire scan Agent re-checks the specific resource after fix

Multi-cloud Separate tools per cloud Unified interface — AWS + Azure + GCP in one conversation

Scope Compliance-focused (CIS benchmarks) Offensive-focused — privilege escalation paths, credential exposure, attack chains

Specific comparisons with popular tools

工具星星它能做什么它不能做什么
潜行者11k500+针对AWS/Azure/GCP/K8s的CIS/合规性检查静态报告,没有AI集成,没有发现相关性
ScoutSuite6k带HTML仪表板的多云审计离线报告,无实时交互,约100次检查
CloudSploit3k跨越6个云的150多个检查每个检查都有插件,没有交叉检查智能
蒸汽管7k针对云API的SQL查询,1500多个控件需要SQL知识,没有自主分析
制图学3kNeo4j云资源+关系图需要Neo4j/Cypher,没有预定义的安全检查
三叉戟24k容器/IaC/云漏洞扫描程序主要是CVE扫描,有限的配置错误检查

所有这些都是优秀的工具。云审计mcp并没有取代它们——它填补了它们都没有解决的空白: 让AI代理直接、交互式地访问云安全检查.

______________________________________________________________________

快速开始

安装

git clone https://github.com/badchars/cloud-audit-mcp.git
cd cloud-audit-mcp
bun install

连接到您的AI代理

Claude Code

claude mcp add cloud-audit bun run /path/to/cloud-audit-mcp/src/index.ts

Claude Desktop

增添 ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "cloud-audit": {
      "command": "bun",
      "args": ["run", "/path/to/cloud-audit-mcp/src/index.ts"],
      "env": {
        "AWS_PROFILE": "your-profile"
      }
    }
  }
}

Cursor / Windsurf / other MCP clients

相同的JSON配置格式。将命令指向您的安装路径。

设置云凭据

MCP服务器使用您现有的云凭据。不需要额外的API密钥。

# AWS — any of these:
aws configure                              # interactive setup
export AWS_PROFILE=my-profile              # named profile
export AWS_ACCESS_KEY_ID=...               # explicit keys

# Azure
export AZURE_SUBSCRIPTION_ID=...           # required
az login                                   # interactive login (recommended)
# or: AZURE_TENANT_ID + AZURE_CLIENT_ID + AZURE_CLIENT_SECRET

# GCP
export GCP_PROJECT_ID=my-project           # required
gcloud auth application-default login      # interactive login (recommended)
# or: GOOGLE_APPLICATION_CREDENTIALS=/path/to/key.json

开始审核

You: "Check my AWS account for critical security issues"

就这样,剩下的就交给特工了。

______________________________________________________________________

AI能做什么

有针对性的安全审计

You: "I'm worried about data exposure in our S3 buckets and Lambda functions"

Agent: → aws_check_s3_public
         Found 2 public buckets: "staging-assets" and "client-uploads"
       → aws_check_s3_objects
         "client-uploads" contains 847 .sql files and 12 .pem files
       → aws_check_lambda_env
         Lambda "process-uploads" has DATABASE_URL with plaintext credentials
       → "Critical: Your upload pipeline has public S3 + Lambda with DB creds.
          An attacker could download SQL dumps AND get your database password.
          Fix: 1) Block public access  2) Move creds to Secrets Manager"

多云态势评估

You: "Audit all three cloud accounts and give me the top 10 issues"

Agent: → cloud_run_all {provider: "aws"}     (13 checks)
       → cloud_run_all {provider: "azure"}   (13 checks)
       → cloud_run_all {provider: "gcp"}     (8 checks)
       → cloud_audit_summary
       → cloud_audit_report
       → "34 total findings across 3 clouds.
          Top 3 critical:
          1. AWS: IAM policy allows privilege escalation via CreatePolicyVersion
          2. Azure: SQL Server firewall allows 0.0.0.0/0
          3. GCP: 4 instances have cloud-platform scope (full API access)"

权限升级检测

You: "Can anyone escalate privileges in our AWS account?"

Agent: → aws_check_iam_policies
         Found PassRole + CreateFunction combo on role "dev-deploy-role"
         Found CreatePolicyVersion on user "ci-bot"
       → aws_check_lambda_permissions
         "ci-bot" has UpdateFunctionCode on all Lambda functions
       → "Two escalation paths:
          1. dev-deploy-role can create a Lambda with any role → admin
          2. ci-bot can inject code into any Lambda AND create policy versions
          Both should be restricted immediately."

Pre-Pentest Cloud Recon

You: "We have a pentest next week. What would an attacker find?"

Agent: → aws_check_ec2_imds        → 12 instances with IMDSv1 (SSRF → creds)
       → aws_check_ec2_snapshots   → 3 unencrypted public snapshots
       → aws_check_api_gateway     → 7 endpoints with no auth
       → aws_check_secrets_manager → 1 secret with Principal: "*"
       → "Attacker's likely path: public API Gateway → SSRF on EC2 →
          IMDSv1 credential theft → access SecretsManager secret →
          pivot to production database. Priority fixes: IMDSv2 + API auth"

Azure容器安全

You: "Check our Azure container infrastructure"

Agent: → azure_check_acr       → Admin user enabled on 2 registries
       → azure_check_functions → 3 Function Apps with anonymous auth
       → azure_check_keyvault  → Key Vault allows all networks
       → azure_check_webapp    → SCM basic auth enabled, 5 connection strings with passwords
       → "Your container supply chain is exposed:
          ACR admin creds can push malicious images,
          Functions run without auth, and Key Vault is network-open."

GCP Kubernetes审核

You: "How secure are our GKE clusters?"

Agent: → gcp_check_kubernetes   → Legacy ABAC enabled, no Workload Identity
       → gcp_check_metadata     → 8 nodes with cloud-platform scope
       → gcp_check_iam_keys     → 3 SA keys older than 365 days
       → gcp_check_iam_delegation → Token Creator role on 2 SAs
       → "Your GKE setup has multiple escalation paths:
          Pods use node SA with full cloud-platform scope → can access all GCP APIs.
          Workload Identity not configured → any pod can steal node credentials.
          Recommendation: Enable Workload Identity + restrict scopes."

______________________________________________________________________

工具参考(38个工具)

AWS(13个工具)

工具服务检查严重性
aws_check_s3_publicS3阻止公共访问、存储桶策略、ACL关键
aws_check_s3_objectsS3敏感文件(.pem、.sql、.env、备份)关键
aws_check_iam_policiesIAM特权升级路径,危险组合关键
aws_check_ec2_imdsEC2启用IMDSv1(通过SSRF盗取凭证)关键
aws_check_ec2_snapshotsEC2未加密/公开共享的EBS快照关键
aws_check_ec2_security_groupsEC2危险端口上的0.0.0.0/0入口
aws_check_lambda_envLambda环境变量中的秘密关键
aws_check_lambda_permissionsLambdaUpdateFunctionCode,事件源风险
aws_check_ecr_imagesECR图像扫描结果,扫描配置
aws_check_secrets_manager机密管理器资源策略过于宽松
aws_check_dynamodbDynamoDB加密设置,流暴露
aws_check_api_gatewayAPI网关没有身份验证的端点
aws_check_sagemakerSageMaker互联网接入、root访问、加密

Azure(13个工具)

工具服务检查严重性
azure_check_storage_public存储公共blob访问,容器访问级别关键
azure_check_storage_sas存储长期SAS令牌,共享密钥访问
azure_check_automation自动化运行本中的硬编码凭据、DSC明文、未加密变量关键
azure_check_vm_networkVM/NSG暴露在互联网上的管理端口(SSH/RDP/WinRM)关键
azure_check_vm_encryptionVM未加密的操作系统和数据磁盘
azure_check_vm_identityVM管理身份权限过大,IMDS暴露严重
azure_check_ad_consentEntra IDOAuth同意设置,描述中的秘密
azure_check_logic_apps逻辑应用程序通过托管身份+HTTP触发器的SSRF关键
azure_check_functions功能匿名身份验证,密钥库参考注入关键
azure_check_keyvault密钥库允许访问策略,网络暴露中等
azure_check_acr容器注册表管理员用户启用,图像机密
azure_check_sqlSQL数据库SQL身份验证模式,防火墙0.0.0.0规则关键
azure_check_webapp应用服务SCM基本身份验证、连接字符串凭据、部署包

GCP(8个工具)

工具服务检查严重性
gcp_check_gcs_public云存储所有用户/所有经过身份验证的用户IAM绑定关键
gcp_check_gcs_objects云存储SA密钥文件,桶中的敏感数据关键
gcp_check_metadata计算引擎启动脚本秘密、云平台范围、遗留元数据关键
gcp_check_iam_keysIAMSA密钥期限,用户管理密钥审核
gcp_check_iam_delegationIAMSA模拟链,令牌创建者滥用关键
gcp_check_iam_computeIAM设置元数据权限(SSH密钥注入)
gcp_check_kubernetesGKE遗留ABAC、工作负载标识、特权Pod、网络策略关键
gcp_check_gcr容器注册表公共访问,可疑图像

Meta(4个工具)

工具说明
cloud_list_checks列出所有可用的检查,可按提供者/严重性/优先级进行筛选
cloud_run_all在一次呼叫中运行提供程序的所有检查
cloud_audit_summary按状态、提供者、严重程度汇总调查结果
cloud_audit_report根据会话结果生成markdown或JSON报告

______________________________________________________________________

检查注册表(60+次检查)

在适用的情况下,每个检查都符合行业标准。

AWS — 19 checks

ID检查严重性优先级引用
S3-001公共桶访问(ACL+策略+阻止公共访问)关键P0CIS 2.1.4,NIST AC-3
S3-002S3中的敏感对象(SSH密钥、SQL转储)CRITICALP0OWASP Cloud-2
S3-003存储桶名称泄漏帐户IDLOWP2
IAM-001策略版本特权升级关键P0MITRE T1098
IAM-002危险权限组合(PassRole+CreateFunction)关键P0Rhino安全
IAM-003具有管理员访问权限的Lambda执行角色P1CIS 1.16
EC2-001IMDSv1已启用(SSRF→ 凭证被盗)严重P0CIS 5.6,MITRE T1552.005
EC2-002未加密/公开共享的EBS快照关键P0CIS 2.2.1
EC2-003入口为0.0.0.0/0的安全组P1CIS 5.1-5.3
LAMBDA-001LAMBDA环境变量中的秘密关键P0MITRE T1552.001
LAMBDA-002更新函数代码权限关键P0Rhino安全
LAMBDA-003作为调用旁路的事件源映射P1Rhino安全
ECR-001图像扫描结果关键P0OWASP Cloud-3
ECR-002图像扫描配置中等P2OWASP Cloud-3
SM-001过度许可的秘密访问策略P1CIS 2.4
DYNAMO-001DynamoDB加密设置HIGHP1NIST SC-28
DYNAMO-002DynamoDB流数据流P1
APIGW-001未经身份验证的API端点HIGHP1OWASP Cloud-8
SAGE-001SageMaker笔记本电脑访问+rootP1

Azure — 24 checks

ID检查严重性优先级引用
STOR-001启用公共blob访问关键P0CIS 3.2,ASB NS-2
STOR-002容器公共访问级别关键P0CIS 3.2
STOR-003长期SAS令牌P1CIS 3.7
AUTO-001运行手册中的硬编码凭据P1
AUTO-002DSC配置明文密码关键P0
AUTO-003未加密的自动化变量P1
VM-001暴露的管理端口(SSH/RDP/WinRM)关键P0CIS 6.1-6.2
VM-002未加密的VM磁盘P1CIS 7.2
VM-004权限过大的管理身份关键P0ASB PA-1
VM-005IMDS代币被盗风险P1MITRE T1552.005
AAD-001AD对象描述中的秘密HIGHP1
AAD-002用户同意设置(OAuth网络钓鱼)P1ASB IM-1
LOGIC-001SSRF通过管理身份关键P0
FUNC-001函数匿名身份验证关键P0CIS 9.1
FUNC-002密钥库参考注入中等P2
KV-001密钥库访问权限过大中等P2CIS 8.3
KV-002密钥库网络不受限制中等P2CIS 8.4
ACR-001管理员用户已启用P1CIS
ACR-002容器图像中的秘密P1
SQL-001已启用SQL身份验证HIGHP1CIS 4.4
SQL-002过于宽松的防火墙规则关键P1CIS 6.3
WEBAPP-001启用SCM基本身份验证中等P2CIS 9.1
WEBAPP-002带凭据的连接字符串HIGHP1
WEBAPP-003可访问存储中的部署包MEDIUMP2

GCP — 17 checks

ID检查严重性优先级引用
GCS-001公共存储桶访问(所有用户/所有已认证用户)关键P0CIS 5.1
GCS-002存储桶中的SA密钥关键P0OWASP Cloud-2
GCS-003桶中的敏感文件HIGHP1
META-001启动脚本机密关键P0MITRE T1552.001
META-002具有云平台作用域的实例关键P0CIS 4.2
META-003未启用元数据隐藏HIGHP1CIS 4.9
IAM-001g服务帐户密钥审计P1CIS 1.3-1.4
IAM-002g委托链检测关键P0Rhino安全
IAM-003g令牌创建者角色滥用P1Rhino安全
IAM-004g设置元数据权限(SSH密钥注入)关键P0Rhino安全
K8S-001具有群集管理的默认SA关键P0CIS K8S 5.1
K8S-002允许特权容器关键P0CIS K8S 5.2
K8S-003节点池上的安全启动P1CIS K8S 4.2
K 8 s-004令牌自动挂载中等P2CIS K 8 s 5.1.6
GCR-001GCR中的意外/隐藏图像P1

______________________________________________________________________

建筑

cloud-audit-mcp/
├── src/
│   ├── index.ts                 Entry point + ToolContext builder
│   ├── types/
│   │   └── index.ts             CheckResult, Severity, ToolDef, ToolContext
│   ├── protocol/
│   │   ├── mcp-server.ts        MCP server (stdio transport)
│   │   └── tools.ts             38 tool definitions (Zod schemas)
│   ├── aws/                     13 tools, 10 files
│   │   ├── client.ts            Lazy SDK factory (cached per region)
│   │   ├── s3.ts                S3-001, S3-002, S3-003
│   │   ├── iam.ts               IAM-001, IAM-002, IAM-003
│   │   ├── ec2.ts               EC2-001, EC2-002, EC2-003
│   │   ├── lambda.ts            LAMBDA-001, LAMBDA-002, LAMBDA-003
│   │   ├── ecr.ts               ECR-001, ECR-002
│   │   ├── secrets.ts           SM-001
│   │   ├── dynamodb.ts          DYNAMO-001, DYNAMO-002
│   │   ├── apigw.ts             APIGW-001
│   │   └── sagemaker.ts         SAGE-001
│   ├── azure/                   13 tools, 11 files
│   │   ├── client.ts            DefaultAzureCredential factory
│   │   ├── storage.ts           STOR-001, STOR-002, STOR-003
│   │   ├── automation.ts        AUTO-001, AUTO-002, AUTO-003
│   │   ├── vm.ts                VM-001, VM-002, VM-004, VM-005
│   │   ├── ad.ts                AAD-001, AAD-002
│   │   ├── logic.ts             LOGIC-001
│   │   ├── functions.ts         FUNC-001, FUNC-002
│   │   ├── keyvault.ts          KV-001, KV-002
│   │   ├── acr.ts               ACR-001, ACR-002
│   │   ├── sql.ts               SQL-001, SQL-002
│   │   └── webapp.ts            WEBAPP-001, WEBAPP-002, WEBAPP-003
│   ├── gcp/                     8 tools, 6 files
│   │   ├── client.ts            ADC factory
│   │   ├── storage.ts           GCS-001, GCS-002, GCS-003
│   │   ├── metadata.ts          META-001, META-002, META-003
│   │   ├── iam.ts               IAM-001g, IAM-002g, IAM-003g, IAM-004g
│   │   ├── kubernetes.ts        K8S-001, K8S-002, K8S-003, K8S-004
│   │   └── gcr.ts               GCR-001
│   └── meta/                    4 tools
│       ├── list-checks.ts       Check registry (60+ entries)
│       ├── summary.ts           Finding aggregation
│       ├── report.ts            Markdown/JSON report generation
│       └── run-all.ts           Run all provider checks
└── knowledge/                   Security check knowledge base (8 files)

设计决策

决策选择为什么
每次服务1个工具38个工具,而不是60+LLM可以轻松选择合适的工具
统一检查结果所有云的格式相同代理可以跨提供商进行比较和关联
会话结果存储ToolContext上的内存数组累积发现→ 总结→ 在一次对话中报告
惰性客户端初始化首次使用时创建的SDK客户端未使用的提供者不会受到冷启动惩罚
进攻重点特权升级、凭据暴露、攻击链CIS合规工具已经存在——这可以找到攻击者发现的内容
默认凭据AWS配置文件、Azure CLI、gcloud ADC无需额外配置——使用已设置的配置
错误→ 检查结果SDK错误变为ERROR状态,永远不会崩溃代理会看到所有结果,决定什么是重要的

运作原理

┌──────────────────────────────────────────────────────────────┐
│                        AI Agent                               │
│                                                               │
│  "Check S3 for public access"                                │
│         │                                                     │
│         ▼                                                     │
│  ┌─────────────┐    ┌──────────────┐    ┌──────────────┐     │
│  │  MCP Client  │───▶│  MCP Server  │───▶│  Tool Router │     │
│  │  (stdio)     │    │  (38 tools)  │    │  (Zod valid) │     │
│  └─────────────┘    └──────────────┘    └──────┬───────┘     │
│                                                 │             │
│         ┌───────────────────┬───────────────────┤             │
│         ▼                   ▼                   ▼             │
│  ┌─────────────┐    ┌─────────────┐    ┌─────────────┐      │
│  │  AWS Module  │    │ Azure Module│    │  GCP Module  │      │
│  │  (SDK v3)    │    │  (ARM SDK)  │    │  (Cloud SDK) │      │
│  └──────┬──────┘    └──────┬──────┘    └──────┬──────┘      │
│         │                   │                   │             │
│         ▼                   ▼                   ▼             │
│  ┌─────────────────────────────────────────────────────┐     │
│  │              CheckResult[] (uniform format)          │     │
│  │  { checkId, severity, status, resource, remediation }│     │
│  └──────────────────────┬──────────────────────────────┘     │
│                         │                                     │
│                         ▼                                     │
│  ┌─────────────────────────────────────────────────────┐     │
│  │           Findings Store (session-scoped)            │     │
│  │  → cloud_audit_summary → cloud_audit_report          │     │
│  └─────────────────────────────────────────────────────┘     │
└──────────────────────────────────────────────────────────────┘

______________________________________________________________________

相关项目

项目描述
Hackbrowserv mcp基于浏览器的安全测试MCP(39个工具、Firefox、注入测试)
侦察0漏洞赏金侦察管道

______________________________________________________________________

局限性

  • 只读--不修改云资源(按设计)
  • 需要现有的云凭据(AWS配置文件、Azure CLI、gcloud ADC)
  • Azure AD检查(AAD-001、AAD-002)需要Microsoft Graph API(存根)
  • GCP IAM检查使用REST API调用(并非全部通过SDK公开)
  • 会话发现仅在内存中(重新启动时丢失)

______________________________________________________________________

For authorized security testing and cloud posture assessment only.

Always ensure you have proper authorization before auditing cloud accounts.

MIT License • Built with Bun + TypeScript • Part of Agentic AI for Offensive Cybersecurity

目录标签

目录标签

安全审计TypeScriptClaude云安全本地部署AI代理多云支持自动化修复

支持客户端

Claude DesktopClaudeCursorWindsurf

接入字段

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

未说明

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

oauth

工具数量(toolCount,工具数)

38

资源数量(resourceCount,资源数)

0

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

0

权限和风险

未说明oauth部署方式未说明

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

安装前确认

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

仍需确认:installCommand

来源信息

继续浏览同类 MCP