cloud-iam-deep
यह क्या करती है
यह स्किल सुरक्षा परीक्षकों को credential मिलने के बाद क्लाउड पहचान की अनुमतियाँ जाँचने का मार्गदर्शन देती है। इसमें AWS, Azure और Google Cloud शामिल हैं। यह कंपनी के क्लाउड खातों के अधिकृत परीक्षण के लिए है।
कब इस्तेमाल करें
- ✓जब किसी अधिकृत परीक्षण के दौरान क्लाउड access key या service account फ़ाइल मिले।
- ✓जब कोई वेब कमज़ोरी क्लाउड metadata service तक पहुँच सकती हो।
- ✓जब आपको देखना है कि किसी क्लाउड खाते में किसी पहचान के पास कौन-सी अनुमतियाँ हैं।
Skill का लिंक
https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/cloud-iam-deep/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“अधिकृत परीक्षण के दौरान हमें एक AWS key मिली है। क्या आप जाँच सकते हैं कि उसकी कौन-सी अनुमतियाँ हैं और वह कितनी दूर तक पहुँचती है?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट credential का प्रकार पहचानता है, फिर क्लाउड कमांड-लाइन टूल्स से पहचान की अनुमतियाँ और roles सूचीबद्ध करता है। वह समझाता है कि नतीजों का मालिक के लिए क्या अर्थ है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
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 |
अक्सर पूछे जाने वाले सवाल
क्या यह ऑन-प्रिमाइसेस सिस्टम के लिए है?
नहीं। स्किल कहती है कि केवल-ऑन-प्रिमाइसेस वातावरण दूसरी स्किलों से कवर होते हैं।
यह कौन-से क्लाउड सपोर्ट करती है?
यह AWS, Azure और Google Cloud के साथ Kubernetes service account tokens कवर करती है।
यह किस तरह की credentials पहचानती है?
यह आम फ़ॉर्मेट पहचानती है, जैसे AWS access key prefixes, Azure storage keys और Google service account JSON फ़ाइलें।
जानकारी
लेखक का मूल विवरण
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
लोकप्रियता
- GitHub स्टार
- 5.4k
- रैंकिंग में स्थान
- #14889
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
apk-redteam-pipeline
5.4kयह आपके एजेंट को Android ऐप में सुरक्षा कमज़ोरियाँ परखने देती है: APK फ़ाइल ढूँढने और उसे decompile करने से लेकर उजागर secrets जाँचने तक।
bugcrowd-reporting
5.4kयह आपके एजेंट को Bugcrowd पर बेहतर कमज़ोरी रिपोर्ट लिखने देती है, सही श्रेणी चुनते हुए और दायरे से बाहर वाली आपत्तियों का जवाब देते हुए।
enterprise-vpn-attack
5.4kयह आपके एजेंट को अधिकृत परीक्षण में Cisco, Fortinet, Citrix और अन्य VPN उपकरणों की ज्ञात कमज़ोरियाँ जाँचने देती है।
evidence-hygiene
5.4kयह आपके एजेंट को बग रिपोर्ट के लिए स्क्रीनशॉट और रिक्वेस्ट लॉग तैयार करने देती है, और cookies व निजी जानकारी छिपाती है।
मिलती-जुलती skills
reverse-engineer-anything
422kयह आपके एजेंट को REA टूल से शिप हुई ऐप्स और पैकेज को अंदर से समझने, वर्ज़न की तुलना करने या दोबारा बनाने में मदद करती है।
1password
394kयह आपके एजेंट को 1Password CLI सेट करने, साइन इन करने और सीक्रेट्स की वैल्यू चैट में छापे बिना उन्हें पढ़ने या इस्तेमाल करने में मदद करती है।
healthcheck
394kयह आपके एजेंट को उस कंप्यूटर या सर्वर का सुरक्षा ऑडिट करने देती है जिस पर OpenClaw चलता है, जिसमें SSH, firewall, अपडेट और बैकअप शामिल हैं, और फिर सुरक्षित सुधार सुझाती है।