Chuyển đến nội dung
Skillpedia
Bảo mật29k · #9492

cloud-security

Skill này làm gì

Skill này khiến agent rà soát cài đặt tài khoản cloud của bạn để tìm lỗi có thể cho kẻ tấn công xâm nhập. Skill dành cho các đội chạy ứng dụng trên AWS, Azure hoặc Google Cloud và muốn phát hiện rủi ro sớm.

Khi nào nên dùng

  • ✓Khi bạn muốn kiểm tra tài khoản cloud có bucket lưu trữ công khai không.
  • ✓Khi bạn nghi ngờ một số người dùng hoặc dịch vụ có quyền truy cập nhiều hơn mức cần thiết.
  • ✓Khi bạn muốn rà soát mã hạ tầng trước khi triển khai.

Liên kết skill

https://github.com/alirezarezvani/claude-skills/blob/main/engineering-team/skills/cloud-security/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/alirezarezvani/claude-skills/blob/main/engineering-team/skills/cloud-security/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hãy kiểm tra tài khoản AWS của chúng tôi xem có lưu trữ công khai và nhóm bảo mật mở không, và giải thích cần sửa gì.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent rà soát quyền, mức độ lộ lưu trữ, quy tắc mạng và mã hạ tầng. Sau đó nó ánh xạ các phát hiện với khung MITRE ATT&CK và gợi ý cách sửa.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Cloud Security

Cloud security posture assessment skill for detecting IAM privilege escalation, public storage exposure, network configuration risks, and infrastructure-as-code misconfigurations. This is NOT incident response for active cloud compromise (see incident-response) or application vulnerability scanning (see security-pen-testing) — this is about systematic cloud configuration analysis to prevent exploitation.


Table of Contents


Overview

What This Skill Does

This skill provides the methodology and tooling for cloud security posture management (CSPM) — systematically checking cloud configurations for misconfigurations that create exploitable attack surface. It covers IAM privilege escalation paths, storage public exposure, network over-permissioning, and infrastructure code security.

Distinction from Other Security Skills

Skill Focus Approach
cloud-security (this) Cloud configuration risk Preventive — assess before exploitation
incident-response Active cloud incidents Reactive — triage confirmed cloud compromise
threat-detection Behavioral anomalies Proactive — hunt for attacker activity in cloud logs
security-pen-testing Application vulnerabilities Offensive — actively exploit found weaknesses

Prerequisites

Read access to IAM policy documents, S3 bucket configurations, and security group rules in JSON format. For continuous monitoring, integrate with cloud provider APIs (AWS Config, Azure Policy, GCP Security Command Center).


Cloud Posture Check Tool

The cloud_posture_check.py tool runs three types of checks: iam (privilege escalation), s3 (public access), and sg (network exposure). It auto-detects the check type from the config file structure or accepts explicit --check flags.

# Analyze an IAM policy for privilege escalation paths
python3 scripts/cloud_posture_check.py policy.json --check iam --json

# Assess S3 bucket configuration for public access
python3 scripts/cloud_posture_check.py bucket_config.json --check s3 --json

# Check security group rules for open admin ports
python3 scripts/cloud_posture_check.py sg.json --check sg --json

# Run all checks with internet-facing severity bump
python3 scripts/cloud_posture_check.py config.json --check all \
  --provider aws --severity-modifier internet-facing --json

# Regulated data context (bumps severity by one level for all findings)
python3 scripts/cloud_posture_check.py config.json --check all \
  --severity-modifier regulated-data --json

# Pipe IAM policy from AWS CLI
aws iam get-policy-version --policy-arn arn:aws:iam::123456789012:policy/MyPolicy \
  --version-id v1 | jq '.PolicyVersion.Document' | \
  python3 scripts/cloud_posture_check.py - --check iam --json

Exit Codes

Code Meaning Required Action
0 No high/critical findings No action required
1 High-severity findings Remediate within 24 hours
2 Critical findings Remediate immediately — escalate to incident-response if active

IAM Policy Analysis

IAM analysis detects privilege escalation paths, overprivileged grants, public principal exposure, and data exfiltration risk.

Privilege Escalation Patterns

Pattern Severity Key Action Combination MITRE
Lambda PassRole escalation Critical iam:PassRole + lambda:CreateFunction T1078.004
EC2 instance profile abuse Critical iam:PassRole + ec2:RunInstances T1078.004
CloudFormation PassRole Critical iam:PassRole + cloudformation:CreateStack T1078.004
Self-attach policy escalation Critical iam:AttachUserPolicy + sts:GetCallerIdentity T1484.001
Inline policy self-escalation Critical iam:PutUserPolicy + sts:GetCallerIdentity T1484.001
Policy version backdoor Critical iam:CreatePolicyVersion + iam:ListPolicies T1484.001
Credential harvesting High iam:CreateAccessK
Câu hỏi thường gặp

Skill có dùng để ứng phó với một cuộc tấn công đang diễn ra không?

Không. Skill dùng để tìm cấu hình sai trước khi kẻ tấn công lợi dụng, chứ không để xử lý một vụ xâm nhập đang diễn ra.

Skill hỗ trợ những nhà cung cấp cloud nào?

AWS, Azure và GCP.

Skill có kiểm tra mã hạ tầng không?

Có. Skill rà soát các file hạ tầng dưới dạng mã (infrastructure as code) để tìm lỗ hổng bảo mật.

Chi tiết

Mô tả gốc của tác giả

Use when checking AWS, Azure or GCP for security misconfigurations: IAM privilege escalation, public buckets, open security groups, IaC gaps. Runs cloud_posture_check.py and maps findings to MITRE ATT&CK.

repo: alirezarezvani/claude-skills

Độ phổ biến

Sao GitHub
29k
Vị trí xếp hạng
#9492
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự