Az - Entra ID (AzureAD) & Azure IAM
Azure enum
Az - Entra ID (AzureAD) & Azure IAM — Azure / Entra 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.
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 - Entra ID (AzureAD) & Azure IAM için doğrudan uygulanabilir komutlar. Placeholder’ları (BUCKET, ROLE, FN, …) hedef değerlerle değiştir.
roadrecon guiROADtools auth --device-codeaz loginaz account showaz ad signed-in-user showaz ad user list -o tableaz ad group list -o tableaz ad sp list --all -o tableaz rest --method GET --url 'https://graph.microsoft.com/v1.0/me'az rest --method GET --url 'https://graph.microsoft.com/v1.0/users?$select=displayName,userPrincipalName'az rest --method GET --url 'https://graph.microsoft.com/v1.0/applications'az rest --method GET --url 'https://graph.microsoft.com/v1.0/roleManagement/directory/roleAssignments'roadrecon auth -u user@corp.com -p 'pass'roadrecon gatherSecret / 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