मुख्य सामग्री पर जाएँ
Skillpedia
सिक्योरिटी5.5k · #14787

cloud-pentest

यह क्या करती है

यह स्किल एजेंट को ऐसी क्लाउड पहचान की अनुमतियाँ जाँचना सिखाती है जो परीक्षक के पास पहले से है। इसमें यह देखना शामिल है कि पहचान किन संसाधनों तक पहुँच सकती है, और अधिकार बढ़ाने के रास्ते खोजना, केवल-पढ़ने वाले कदमों से शुरू करते हुए।

कब इस्तेमाल करें

  • ✓जब परीक्षक के पास क्लाउड एक्सेस की या metadata टोकन हो और जानना हो कि वे क्या अनुमति देते हैं।
  • ✓जब परीक्षक जाँचना चाहता है कि क्लाउड पहचान और अधिक अनुमतियाँ पा सकती है या नहीं।
  • ✓जब परीक्षक को ग्राहक डेटा छुए बिना क्लाउड एक्सेस का असली प्रभाव दिखाना हो।

Skill का लिंक

https://github.com/awarexone/Agentic-Bug-Hunter/blob/main/skills/cloud-pentest/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/awarexone/Agentic-Bug-Hunter/blob/main/skills/cloud-pentest/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे पास इस परीक्षण के दायरे में एक AWS access key है। पहले केवल-पढ़ने वाले तरीके से देखिए कि यह पहचान क्या कर सकती है।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट पहले केवल-पढ़ने वाली कॉल से पहचान पहचानता है, फिर उसकी अनुमतियाँ सूचीबद्ध करता है। वह ज्ञात अधिकार-वृद्धि रास्ते जाँचता है और ग्राहक डेटा के बजाय एक हानिरहित टेस्ट ऑब्जेक्ट से प्रभाव साबित करता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

CLOUD PENTEST — Post-Access Exploitation

Recon finds the door; this is what you do inside. A leaked AKIA... key or a metadata token is not a finding on its own — the finding is what that identity can DO. Enumerate the identity, find the privesc path, prove real impact. Never touch data you're not authorized to.


AUTHORIZATION FIRST

[ ] Target cloud account/subscription is explicitly in scope
[ ] You have written authorization (program scope, engagement doc)
[ ] Read-only enumeration before ANY state change
[ ] No exfil of real customer data — prove access with a benign canary/own-account object
[ ] Discovered accounts/roles you can pivot to are NOT auto-authorized — confirm scope

Stop here if any box is unchecked.


0. IDENTIFY THE IDENTITY (do this first, always)

You have First call Tells you
AWS keys aws sts get-caller-identity account id, principal ARN, user vs role
AWS metadata curl .../iam/security-credentials/<role> temp creds + role name
GCP SA JSON / token gcloud auth ... / curl metadata ...token project, service account, scopes
Azure token / MI IMDS .../identity/oauth2/token tenant, object id, resource access

Never assume privilege. Enumerate what this identity actually has before planning.


1. AWS — ENUMERATE THEN ESCALATE

Enumerate (read-only):

aws sts get-caller-identity
aws iam get-account-authorization-details 2>/dev/null   # full policy dump if allowed
aws iam list-attached-user-policies --user-name <u>
aws iam list-role-policies / list-attached-role-policies
# No IAM read? Brute the effective perms with enumerate-iam / then map with a policy tool

Classic privesc paths (need the matching permission):

Permission held Escalation
iam:CreatePolicyVersion Write a new default *:* version onto an attached policy
iam:PassRole + ec2:RunInstances / lambda:CreateFunction Launch compute AS an admin role
iam:AttachUserPolicy / PutUserPolicy Attach AdministratorAccess to yourself
sts:AssumeRole (over-broad trust) Assume a more privileged role
iam:CreateAccessKey on another user Mint keys for a privileged user
lambda:UpdateFunctionCode on privileged fn Run code with the function's role
iam:UpdateAssumeRolePolicy Rewrite trust policy to let you assume it

Impact proof (benign): list a bucket you were told is in scope, sts assume-role into the admin role and get-caller-identity to show the new ARN, or read a canary object. Don't touch real PII.


2. METADATA (IMDS) — SSRF LANDS HERE

IMDSv1 (no token): GET http://169.254.169.254/latest/meta-data/iam/security-credentials/<role>
IMDSv2 (token):    PUT .../latest/api/token  (X-aws-ec2-metadata-token-ttl-seconds: 21600)
                   then GET with  X-aws-ec2-metadata-token: <token>
GCP:  GET http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token
      header: Metadata-Flavor: Google
Azure: GET http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https://management.azure.com/
      header: Metadata: true

Got temp creds → jump to section 1 (AWS) / 3 (GCP) / 4 (Azure) and enumerate what THAT role can do. SSRF alone is Medium; SSRF → metadata creds → data/admin is Critical.


3. GCP — IMPERSONATION IS THE PIVOT

gcloud auth activate-service-account --key-file=sa.json   # or use the token
gcloud projects get-iam-policy <project>
gcloud iam service-accounts list
Permission Escalation
iam.serviceAccounts.getAccessToken / actAs Impersonate a higher-priv SA (--impersonate-service-account)
iam.serviceAccountKeys.create Mint a key for a privileged SA
iam.roles.update on a custom role you hold Add permissions to yourself
cloudfunctions.functions.update / deploy Run code as the function's SA
storage.objects.get on a sensitive bucket Read secrets/state

Owner/Editor at project level = effectively admin. Check for the default Compute SA having Editor — extremely common.


4. AZURE — MANAGED IDENTITY & RBAC

az account show
az role assignment list --assignee <objectId> --all
az resource list
Path Escalation
Managed identity with Contributor Deploy/modify resources, run commands on VMs (az vm run-command)
Microsoft.Authorization/*/write Assign yourself Owner
अक्सर पूछे जाने वाले सवाल

क्या एजेंट क्लाउड में कुछ बदल सकता है?

स्किल कहती है कि किसी भी स्थिति-परिवर्तन से पहले केवल-पढ़ने वाली गणना करें और पहले दायरा पक्का करें।

क्या सबूत के रूप में ग्राहक डेटा इस्तेमाल करें?

नहीं। स्किल कहती है कि एक हानिरहित canary या परीक्षक की अपनी वस्तु से पहुँच साबित करें।

क्या लीक हुई key अपने-आप खोज गिनी जाती है?

नहीं। स्किल कहती है कि खोज वह है जो पहचान कर सकती है।

जानकारी

लेखक का मूल विवरण

Post-access cloud exploitation for AWS, GCP, and Azure — what to do AFTER you obtain credentials or reach a metadata endpoint. Covers IAM enumeration and privilege escalation (iam:PassRole, CreatePolicyVersion, AssumeRole chains, GCP service-account impersonation, Azure managed-identity abuse), IMDSv1/v2 metadata credential theft, STS token abuse, S3/GCS/Blob bucket takeover and object exfil, Lambda/Cloud Functions env-var secrets, cross-account and cross-service pivoting, and turning leaked keys into demonstrated impact (read PII, assume admin, exfil data). Assumes authorized scope only. Use

repo: awarexone/Agentic-Bug-Hunter

लोकप्रियता

GitHub स्टार
5.5k
रैंकिंग में स्थान
#14787
लाइसेंस
MIT
अपडेट की गई
28/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

bug-bounty

5.5k

आपके एजेंट को बग बाउंटी समीक्षा चरणों में योजना बनाने में मदद करती है, प्रोग्राम का दायरा जाँचने और संपत्तियाँ मैप करने से लेकर प्रभाव सत्यापित करने और रिपोर्ट लिखने तक।

कोडिंगसिक्योरिटी

agentic-app-audit

5.5k

आपके एजेंट को लाइव AI असिस्टेंट की बाहर से समीक्षा करने देती है, हाइजैक्ड टूल कॉल, दूषित मेमोरी और उपयोगकर्ता से अधिक पहुँच वाली कार्रवाइयों जैसे जोखिमों के लिए।

कोडिंगसिक्योरिटी

argus

5.5k

आपके एजेंट को वेब और AI ऐप की आम खामियों के लिए छह स्वचालित स्कैनर चलाने देती है, जैसे खुला cross-origin एक्सेस, JWT कमज़ोरियाँ और out-of-band में पुष्ट अंधी बग।

कोडिंगसिक्योरिटी

bb-methodology

5.5k

आपके एजेंट को बग बाउंटी सत्र चरणों में योजना बनाने देती है, अगला कदम और सही जाँच चुनते हुए, और ऐसे विचार छोड़ते हुए जो असली नुकसान नहीं कर सकते।

कोडिंगसिक्योरिटी

मिलती-जुलती skills