cloud-security-audit

1
0
Source

云安全审计的专业技能和方法论

Install

mkdir -p .claude/skills/cloud-security-audit && curl -L -o skill.zip "https://mcp.directory/api/skills/download/4387" && unzip -o skill.zip -d .claude/skills/cloud-security-audit && rm skill.zip

Installs to .claude/skills/cloud-security-audit

About this skill

云安全审计

概述

云安全审计是评估云环境安全性的重要环节。本技能提供云安全审计的方法、工具和最佳实践,涵盖AWS、Azure、GCP等主流云平台。

审计范围

1. 身份和访问管理

检查项目:

  • IAM策略配置
  • 用户权限
  • 角色权限
  • 访问密钥管理

2. 网络安全

检查项目:

  • 安全组配置
  • 网络ACL
  • VPC配置
  • 流量加密

3. 数据安全

检查项目:

  • 数据加密
  • 密钥管理
  • 备份策略
  • 数据分类

4. 合规性

检查项目:

  • 合规框架
  • 审计日志
  • 监控告警
  • 事件响应

AWS安全审计

IAM审计

检查IAM策略:

# 列出所有IAM用户
aws iam list-users

# 列出所有IAM策略
aws iam list-policies

# 检查用户权限
aws iam list-user-policies --user-name username
aws iam list-attached-user-policies --user-name username

# 检查角色权限
aws iam list-role-policies --role-name rolename

常见问题:

  • 过度权限
  • 未使用的访问密钥
  • 密码策略弱
  • MFA未启用

S3安全审计

检查S3存储桶:

# 列出所有存储桶
aws s3 ls

# 检查存储桶策略
aws s3api get-bucket-policy --bucket bucketname

# 检查存储桶ACL
aws s3api get-bucket-acl --bucket bucketname

# 检查存储桶加密
aws s3api get-bucket-encryption --bucket bucketname

常见问题:

  • 公开访问
  • 未加密
  • 版本控制未启用
  • 日志记录未启用

安全组审计

检查安全组:

# 列出所有安全组
aws ec2 describe-security-groups

# 检查开放端口
aws ec2 describe-security-groups --group-ids sg-xxx

常见问题:

  • 0.0.0.0/0开放
  • 不必要的端口开放
  • 规则过于宽松

CloudTrail审计

检查审计日志:

# 列出所有跟踪
aws cloudtrail describe-trails

# 检查日志文件完整性
aws cloudtrail get-trail-status --name trailname

Azure安全审计

订阅和资源组

检查订阅:

# 列出所有订阅
az account list

# 检查资源组
az group list

网络安全组

检查NSG:

# 列出所有NSG
az network nsg list

# 检查NSG规则
az network nsg rule list --nsg-name nsgname --resource-group rgname

存储账户

检查存储账户:

# 列出所有存储账户
az storage account list

# 检查访问策略
az storage account show --name accountname --resource-group rgname

GCP安全审计

项目和组织

检查项目:

# 列出所有项目
gcloud projects list

# 检查IAM策略
gcloud projects get-iam-policy project-id

计算引擎

检查实例:

# 列出所有实例
gcloud compute instances list

# 检查防火墙规则
gcloud compute firewall-rules list

存储

检查存储桶:

# 列出所有存储桶
gsutil ls

# 检查存储桶权限
gsutil iam get gs://bucketname

自动化工具

Scout Suite

# AWS审计
scout aws

# Azure审计
scout azure

# GCP审计
scout gcp

Prowler

# AWS安全审计
prowler -c check11,check12,check13

# 完整审计
prowler

CloudSploit

# 扫描AWS账户
cloudsploit scan aws

# 扫描Azure订阅
cloudsploit scan azure

Pacu

# AWS渗透测试框架
pacu

审计清单

IAM安全

  • 检查用户权限
  • 检查角色权限
  • 检查访问密钥
  • 检查密码策略
  • 检查MFA启用情况

网络安全

  • 检查安全组/NSG规则
  • 检查VPC配置
  • 检查网络ACL
  • 检查流量加密

数据安全

  • 检查数据加密
  • 检查密钥管理
  • 检查备份策略
  • 检查数据分类

合规性

  • 检查审计日志
  • 检查监控告警
  • 检查事件响应
  • 检查合规框架

常见安全问题

1. 过度权限

问题:

  • IAM策略过于宽松
  • 用户拥有管理员权限
  • 角色权限过大

修复:

  • 最小权限原则
  • 定期审查权限
  • 使用IAM策略模拟

2. 公开资源

问题:

  • S3存储桶公开
  • 安全组开放0.0.0.0/0
  • 数据库公开访问

修复:

  • 限制访问范围
  • 使用私有网络
  • 启用访问控制

3. 未加密数据

问题:

  • 存储未加密
  • 传输未加密
  • 密钥管理不当

修复:

  • 启用加密
  • 使用TLS/SSL
  • 使用密钥管理服务

4. 日志缺失

问题:

  • 未启用审计日志
  • 日志未保留
  • 日志未监控

修复:

  • 启用CloudTrail/Azure Monitor
  • 设置日志保留策略
  • 配置监控告警

最佳实践

1. 最小权限

  • 只授予必要权限
  • 定期审查权限
  • 使用IAM策略模拟

2. 多层防护

  • 网络层防护
  • 应用层防护
  • 数据层防护

3. 监控和告警

  • 启用审计日志
  • 配置监控告警
  • 建立事件响应流程

4. 合规性

  • 遵循合规框架
  • 定期安全审计
  • 文档化安全策略

注意事项

  • 仅在授权环境中进行审计
  • 避免对生产环境造成影响
  • 注意不同云平台的差异
  • 定期进行安全审计

You might also like

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

643969

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

591705

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

318398

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

339397

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

451339

fastapi-templates

wshobson

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

304231

Stay ahead of the MCP ecosystem

Get weekly updates on new skills and servers.