Az - Device Code Authentication Phishing
Azure unauth
Az - Device Code Authentication Phishing — Azure / Entra 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.
Saldırı akışı
Section titled “Saldırı akışı”-
Anonim / public yüzeyleri (URL, bucket, API, metadata) parmak izi al.
-
Kimlik gerektiren uçları ayrı tut; açık policy / misconfig doğrula.
-
Erişim kanıtı üret (listeleme, okuma, invoke).
-
Elde edilen secret/token ile authenticated faza geç.
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 - Device Code Authentication Phishing 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 gatherAnonim doğrulama
Section titled “Anonim doğrulama”İmzasız veya public istekle okuma/yazma/invoke mümkün mü — bunu netleştir.
curl -sI https://ACC.blob.core.windows.net/CON?restype=container&comp=listcurl -s https://APP.azurewebsites.net/api/fncurl -sI https://REG.azurecr.io/v2/curl -sH Metadata:true 'http://169.254.169.254/metadata/instance?api-version=2021-02-01'Secret / 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