返回顶部
c

cloud-security-posture云安全态势

>-

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
127
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

cloud-security-posture

云安全态势评估

跨云安全态势评估,用于评估 [AWS]、[Azure] 和 [GCP] 环境中的 IAM 策略、加密配置和公开暴露情况。该技能提供统一的评估方法论——诊断推理与提供商无关,而特定命令和控制台路径使用内联提供商标签。

这是一项评估技能,并非对任何单一提供商网络层的深入探讨。如需详细的 VPC、VNet 或 VPC 网络分析,请使用专用提供商技能:aws-networking-audit 用于 VPC/安全组/中转网关,azure-networking-audit 用于 VNet/NSG/路由表,以及 gcp-networking-audit 用于 VPC 网络/防火墙规则/云路由器分析。请参考 references/cli-reference.md 获取按审计步骤组织的多提供商 CLI 命令,以及 references/security-controls.md 获取 IAM 层级模型、加密矩阵和 CIS 基准控制 ID 映射。

使用时机

  • - 多云安全审查——在单一项目中评估两个或更多云提供商的安全态势
  • 合规预审计——在正式 CIS 或 SOC 2 评估前评估 IAM、加密和暴露差距
  • 云迁移安全门禁——在生产流量切换前验证安全控制措施是否到位
  • 事件响应范围界定——在安全事件期间快速确定跨云暴露面
  • 定期态势检查——按计划评估 IAM 卫生、加密覆盖和公共攻击面
  • 并购尽职调查——评估继承环境中的云安全成熟度

前提条件

  • - [AWS] 已配置 AWS CLI v2(aws sts get-caller-identity 执行成功);IAM 权限包括 iam:List、iam:Get、kms:List*、kms:DescribeKey、s3:GetBucketEncryption、s3:GetBucketPolicyStatus、ec2:DescribeSecurityGroups、ec2:DescribeInstances、elasticloadbalancing:DescribeLoadBalancers、rds:DescribeDBInstances、acm:ListCertificates
  • [Azure] Azure CLI(az account show 执行成功);目标订阅上的 RBAC 读取者角色;权限包括 Microsoft.Authorization/roleAssignments/read、Microsoft.KeyVault/vaults/read、Microsoft.Compute/disks/read、Microsoft.Network/publicIPAddresses/read、Microsoft.Network/networkSecurityGroups/read、Microsoft.Storage/storageAccounts/read
  • [GCP] 已配置 gcloud CLI(gcloud auth list 显示活跃账户);目标项目上的角色包括 roles/iam.securityReviewer、roles/cloudkms.viewer、roles/compute.viewer、roles/storage.admin(用于存储桶 IAM 检查)
  • 目标范围已确定——在评估开始前定义云账户/订阅/项目、区域和环境层级(生产、预发布、开发)
  • 评估窗口——与运维团队协调,避免在部署或维护窗口期间进行快照

流程

按顺序执行以下六个步骤。每个步骤产生的结果将输入第 6 步的跨云态势摘要。

第 1 步:IAM 态势评估

评估身份和访问管理配置,检查所有范围内的提供商是否存在权限提升风险、过度权限和策略卫生问题。重点关注三个领域:过度宽松的策略、缺失的身份验证控制以及通过角色链或模拟实现的权限提升路径。

[AWS] 枚举 IAM 用户、角色和策略。检查客户管理策略中的通配符操作:

aws iam get-account-authorization-details --output json
aws iam list-policies --scope Local --query Policies[?AttachmentCount>0]

将包含 Action: 或 Resource: 的策略标记为严重。检查组织中的服务控制策略(SCP)是否存在允许权限提升路径的边界漏洞(例如,iam:CreateRole + iam:AttachRolePolicy 但无 SCP 拒绝)。检查具有控制台访问权限但未启用 MFA 的 IAM 用户:aws iam get-credential-report。

[Azure] 审计 RBAC 角色分配和 Entra ID 配置:

az role assignment list --all --output table
az ad user list --query [?userType==Member] --output table

识别所有者/贡献者角色泛滥——在订阅范围内分配且无过期时间的角色分配表明缺少特权身份管理(PIM)激活策略。检查条件访问策略的漏洞:没有覆盖所有用户的策略、缺少设备合规要求或未阻止旧版身份验证协议。

[GCP] 分析 IAM 绑定和组织策略约束:

gcloud projects get-iam-policy --format=json
gcloud resource-manager org-policies list --project=

将服务账户上的 roles/owner 或 roles/editor 绑定标记为严重。检查服务账户密钥年龄是否超过 90 天:gcloud iam service-accounts keys list --iam-account=。验证组织策略约束是否在适用情况下强制执行 iam.disableServiceAccountKeyCreation。

第 2 步:加密审计

评估存储、计算和数据库服务的静态加密和传输中加密。评估密钥管理实践,包括轮换计划、访问策略以及客户管理密钥与提供商管理密钥的使用情况。

[AWS] 验证 KMS 密钥策略、存储加密和证书管理:

aws kms list-keys --output table
aws s3api get-bucket-encryption --bucket
aws rds describe-db-instances --query DBInstances[*].[DBInstanceIdentifier,StorageEncrypted,KmsKeyId]

检查 EBS 卷加密:aws ec2 describe-volumes --query Volumes[?!Encrypted]。检查 ACM 证书过期:aws acm list-certificates --query CertificateSummaryList[?Status==ISSUED]。将任何未加密的 S3 存储桶、EBS 卷或 RDS 实例标记为高严重性。验证客户管理密钥的 KMS 密钥轮换是否已启用:aws kms get-key-rotation-status --key-id

[Azure] 审计 Key Vault 配置、磁盘加密和 TLS:

az keyvault list --output table
az disk list --query [?encryption.type!=EncryptionAtRestWithPlatformKey] --output table

验证 Key Vault 访问策略遵循最小权限原则——没有为所有主体授予获取、列出、设置、删除权限的保管库。检查托管磁盘加密类型(平台管理密钥与客户管理密钥)。检查 App Service 上的最低 TLS 版本:az webapp list --query [].{name:name, minTlsVersion:siteConfig.minTlsVersion}。

[GCP] 评估 Cloud KMS 配置和默认加密:

gcloud kms keyrings list --location=
gcloud kms keys list --keyring= --location=

确定每个服务的 CMEK 与 Google 管理加密。如果组织策略要求,标记任何未使用 CMEK 的 Cloud Storage 存储桶或 Compute 磁盘。检查 KMS 密钥轮换周期:gcloud kms keys describe --keyring= --location=。验证负载均衡器上的 SSL 策略合规性:gcloud compute ssl-policies list。

第 3 步:公开暴露检测

识别可公开访问的资源,并评估所有三个提供商的网络级暴露。公开暴露与弱身份验证(第 1 步)或缺失加密(第 2 步)相结合会加剧严重性——在分类风险时交叉引用发现结果。

[AWS] 检查公开的 S3 存储桶、宽松的安全组和负载均衡器配置:

aws s3api list-buckets --query Buckets[*].Name --output text
aws s3api get-bucket-policy-status --bucket
aws ec2 describe-security-groups --filters Name=ip-permission.cidr,Values=0.0.0.0/0

将允许非标准端口上 0.0.0.0/0 入站流量的安全组标记为严重。检查 ELB 访问日志:aws elbv2 describe-load-balancer-attributes --load-balancer-arn --query Attributes[?Key==access_logs.s3.enabled]。

[Azure] 识别没有网络安全控制的公共 IP:

az network public-ip list --output table
az network nsg list --output table
az storage account list --query [].{name:name, publicAccess:allowBlobPublicAccess}

将没有关联 NSG 的公共 IP 标记为高严重性。检查存储账户公共访问设置——allowBlobPublicAccess: true 需要提供理由。验证生产

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 cloud-security-posture-1776102195 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 cloud-security-posture-1776102195 技能

通过命令行安装

skillhub install cloud-security-posture-1776102195

下载

⬇ 下载 cloud-security-posture v1.0.0(免费)

文件大小: 12.87 KB | 发布时间: 2026-4-14 11:01

v1.0.0 最新 2026-4-14 11:01
Initial release — unified multi-cloud security posture assessment tooling.

- Provides cross-cloud IAM, encryption, and public exposure evaluation for AWS, Azure, and GCP.
- Uses provider-specific inline command labels ([AWS], [Azure], [GCP]) for easy reference.
- Includes step-by-step assessment procedure for IAM analysis, encryption audit, and exposure detection.
- References CLI commands, IAM/encryption models, and CIS control mapping for thorough coverage.
- Designed for multi-cloud review scenarios—compliance audits, migrations, IR scoping, and due diligence.
- Read-only, with detailed prerequisites for each cloud provider.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部