cloud-iam-deep
Skill này làm gì
Skill này hướng dẫn người kiểm thử bảo mật kiểm tra quyền của danh tính đám mây sau khi tìm thấy một thông tin xác thực. Nó bao gồm AWS, Azure và Google Cloud. Nó dành cho việc kiểm thử được ủy quyền các tài khoản đám mây của công ty.
Khi nào nên dùng
- ✓Khi tìm thấy khóa truy cập đám mây hoặc file tài khoản dịch vụ trong một kiểm thử được ủy quyền.
- ✓Khi một lỗi web có thể tiếp cận dịch vụ metadata của đám mây.
- ✓Khi bạn cần xem một danh tính có những quyền gì trong tài khoản đám mây.
Liên kết skill
https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/cloud-iam-deep/SKILL.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Chúng tôi tìm thấy một khóa AWS trong kiểm thử được ủy quyền. Bạn có thể kiểm tra nó có quyền gì và phạm vi truy cập đến đâu không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent xác định loại thông tin xác thực, rồi liệt kê quyền và vai trò của danh tính bằng các công cụ dòng lệnh đám mây. Nó giải thích kết quả có ý nghĩa gì với chủ sở hữu.
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.
When to use
Trigger when:
- A cloud credential surfaces (key, secret, token, JSON file)
- SSRF chain reaches IMDS / metadata endpoint
- APK / git-leak reveals embedded cloud key
- Recon shows public S3/GCS/Azure-blob with permissions you can verify
- A Kubernetes API or service-account token is exposed
- Post-RCE on a cloud-hosted instance — pivot to cloud control plane
Do NOT use for:
- On-prem-only environments (use AD attack skills — but those are out of scope per external-only boundary)
- Web2 vulns that happen to be on AWS — use the relevant
hunt-*skill
Credential identification (first 60 seconds)
# AWS access key patterns
AKIA[0-9A-Z]{16} # IAM user access key (long-term)
ASIA[0-9A-Z]{16} # STS temporary credential
AGPA[0-9A-Z]{16} # IAM group
AIDA[0-9A-Z]{16} # IAM user (user-id)
AROA[0-9A-Z]{16} # IAM role
ANPA[0-9A-Z]{16} # Managed policy
# AWS secret pattern (40-char base64-ish — context required)
[A-Za-z0-9/+=]{40} # AWS secret access key
# Azure
AccountKey=[A-Za-z0-9+/=]{86} # Storage account key
client_secret pattern + UUID # Azure AD app credential
# GCP service account JSON
{
"type": "service_account",
"project_id": "...",
"private_key_id": "...",
"private_key": "-----BEGIN PRIVATE KEY-----..."
}
# K8s SA token (JWT format — decode to confirm)
eyJhbGciOiJSUzI1... # decode kid claim to see issuer
AWS — read-only validation (the safe first step)
# Set credential
export AWS_ACCESS_KEY_ID="AKIA..."
export AWS_SECRET_ACCESS_KEY="..."
# 1. WHO am I?
aws sts get-caller-identity
# Returns: UserId, Account, Arn
# Arn tells you: IAM user vs role, account ID, name
# 2. WHAT can I do? (the privesc question)
# Try common read-only first — failures still inform you
aws iam list-users 2>&1 | head -5
aws iam list-roles 2>&1 | head -5
aws iam list-policies 2>&1 | head -5
aws iam list-groups 2>&1 | head -5
# 3. WHAT policies are attached to me?
aws iam list-attached-user-policies --user-name <self>
aws iam list-user-policies --user-name <self> # inline policies
aws iam list-groups-for-user --user-name <self>
# 4. Service-by-service surface
aws ec2 describe-instances --max-items 1 2>&1 | head
aws s3 ls 2>&1 | head -10
aws lambda list-functions --max-items 5 2>&1 | head
aws rds describe-db-instances --max-items 5 2>&1 | head
aws secretsmanager list-secrets --max-results 5 2>&1 | head
aws ssm describe-parameters --max-results 5 2>&1 | head
# 5. Audit any cross-account / external trust
aws iam list-roles --query 'Roles[?contains(AssumeRolePolicyDocument.Statement[0].Principal.AWS, `arn:aws:iam::`)]' 2>&1 | head -20
AWS privesc patterns (24+ documented — iam_privesc techniques)
Quick lookup — if you have any of these IAM actions, escalate via the listed technique:
| You have | Escalate via |
|---|---|
iam:CreateAccessKey |
Create access key on any user → impersonate |
iam:CreateLoginProfile |
Set a console password on a user → login |
iam:UpdateLoginProfile |
Reset console password on a user |
iam:AttachUserPolicy |
Attach AdministratorAccess to self |
iam:AttachGroupPolicy |
Attach AdministratorAccess to a group you're in |
iam:AttachRolePolicy + sts:AssumeRole |
Attach to a role you can assume |
iam:PutUserPolicy |
Inline AdministratorAccess to self |
iam:PutGroupPolicy |
Inline policy on a group |
iam:PutRolePolicy |
Inline on a role you can assume |
iam:AddUserToGroup |
Add self to admin group |
iam:UpdateAssumeRolePolicy + sts:AssumeRole |
Modify trust to allow self |
iam:CreatePolicyVersion |
Create v2 of an attached policy with admin |
iam:SetDefaultPolicyVersion |
Switch attached policy to admin version |
iam:PassRole + ec2:RunInstances |
Launch EC2 as admin role → use instance creds |
iam:PassRole + lambda:CreateFunction/InvokeFunction |
Run code as admin role |
iam:PassRole + cloudformation:CreateStack |
CF stack creates resources as admin |
iam:PassRole + glue:CreateDevEndpoint |
Notebook runs as admin role |
iam:PassRole + datapipeline |
Pipeline runs as admin role |
iam:PassRole + codestar:CreateProject |
New project gets admin role |
ec2:RunInstances (with admin instance profile already on the AMI) |
Spin instance, exfil creds from IMDS |
lambda:UpdateFunctionCode (function has admin role) |
Replace code → exfil creds |
| `lambda |
Câu hỏi thường gặp
Đây có dành cho hệ thống tại chỗ không?
Không. Skill ghi rằng các môi trường chỉ tại chỗ được các skill khác bao quát.
Nó hỗ trợ những đám mây nào?
Nó bao gồm AWS, Azure và Google Cloud, cùng với token tài khoản dịch vụ Kubernetes.
Nó nhận diện những loại thông tin xác thực nào?
Nó nhận diện các định dạng phổ biến như tiền tố khóa truy cập AWS, khóa lưu trữ Azure và file JSON tài khoản dịch vụ Google.
Chi tiết
Mô tả gốc của tác giả
Cloud IAM red-team attack chain across AWS, Azure, GCP — focused on EXTERNAL exploitation paths and post-credential-discovery privilege analysis. Covers IAM enumeration (aws iam, az role, gcloud iam), STS/AssumeRole chaining, Azure Managed Identity abuse (via SSRF/leak), GCP service account JSON abuse, IMDSv1/v2 attacks via SSRF, K8s ServiceAccount token privilege analysis once held (token discovery / cluster exposure is owned by hunt-k8s), role-trust-policy confused-deputy, cross-account assume-role enumeration, IAM privilege escalation patterns (24+ AWS, 8+ Azure, 6+ GCP), and AWS Cognito Id
Độ phổ biến
- Sao GitHub
- 5.4k
- Vị trí xếp hạng
- #14889
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
apk-redteam-pipeline
5.4kGiúp agent của bạn kiểm thử một ứng dụng Android về các điểm yếu bảo mật, từ việc tìm file APK và giải mã đến kiểm tra bí mật bị lộ.
bugcrowd-reporting
5.4kGiúp agent của bạn viết báo cáo lỗ hổng Bugcrowd tốt hơn, chọn đúng danh mục và trả lời các phản đối về việc nằm ngoài phạm vi.
enterprise-vpn-attack
5.4kGiúp agent của bạn kiểm tra các thiết bị VPN và truy cập từ xa của Cisco, Fortinet, Citrix và các hãng khác về những điểm yếu đã biết, trong một kiểm thử được ủy quyền.
evidence-hygiene
5.4kGiúp agent của bạn chuẩn bị ảnh chụp màn hình và log yêu cầu cho báo cáo lỗi, đồng thời ẩn cookie, dữ liệu cá nhân và các chi tiết nhạy cảm khác.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.