Langsung ke konten
Skillpedia
Deploy & cloud (DevOps)48k ยท #4162

cloud-iam-deep

Fungsinya

Tool ini membantu menemukan dan menelusuri celah keamanan di lingkungan cloud seperti AWS, Azure, dan GCP. Tool ini digunakan untuk menguji keamanan secara etis dengan mensimulasikan serangan nyata guna menemukan kerentanan.

Kapan dipakai

  • โœ“Saat Anda menemukan kredensial cloud yang terekspos (kunci, token).
  • โœ“Saat menemukan jalur untuk mengakses informasi layanan cloud yang sensitif.
  • โœ“Setelah berhasil mengakses server cloud dan ingin memeriksa kendali atas layanan lainnya.

Link skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/cloud-iam-deep/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/cloud-iam-deep/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit โ†’

Contoh permintaan ke AI

โ€œSaya menemukan access key AWS di dalam sebuah kode. Bagaimana cara mengecek apakah key itu punya izin yang berbahaya?โ€

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Tool ini pertama-tama mengidentifikasi kredensial yang berpotensi terekspos. Kemudian, tool ini menggunakan perintah tertentu untuk memeriksa izin yang terkait dengan kredensial tersebut dan mencoba menemukan cara untuk mendapatkan akses lebih, dengan selalu berfokus pada keamanan.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

โš ๏ธ AUTHORIZED USE ONLY This skill is for educational purposes or authorized security assessments only. You must have explicit, written permission from the system owner before using this tool. Misuse of this tool is illegal and strictly prohibited.

Mandatory confirmation gate Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:

  1. Ask the user to state the exact target URL, IP, account, or resource.
  2. Ask the user to confirm written authorization and the permitted scope.
  3. Show the exact command(s) and explain their expected effect.
  4. Wait for explicit confirmation in the current conversation.

Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.

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

โ€ฆ

Pertanyaan umum

Apakah saya bisa menggunakannya di cloud mana pun?

Tool ini terutama dirancang untuk public cloud seperti AWS, Azure, dan GCP, tetapi mungkin tidak mencakup semua layanan atau konfigurasi spesifik dari masing-masing platform.

Apakah aman digunakan?

Tool ini HANYA boleh digunakan dengan izin tertulis yang jelas dari pemilik sistem. Penggunaan tanpa izin adalah ilegal dan dilarang. Disarankan untuk menggunakannya di lingkungan pengujian yang terkendali.

Apa arti 'red-team attack chain'?

Artinya adalah urutan langkah yang akan digunakan oleh 'red team' (tim yang mensimulasikan penyerang) untuk mengeksploitasi celah keamanan pada sistem cloud, mulai dari akses awal hingga kendali penuh.

Detail

Deskripsi asli dari pembuat

Cloud IAM red-team attack chain across AWS, Azure, GCP

repo: sickn33/agentic-awesome-skills

Popularitas

Bintang GitHub
48k
Peringkat
#4162
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • โ€ฆ

Skill lain dari repositori ini

Skill serupa