From a553c36b764b3abbb65b1e4ab70dac45432f2538 Mon Sep 17 00:00:00 2001 From: Translator Date: Thu, 5 Feb 2026 12:31:40 +0000 Subject: [PATCH] Translated ['', 'src/pentesting-cloud/azure-security/az-enumeration-tool --- .../azure-security/az-enumeration-tools.md | 276 ++++++++++++++---- 1 file changed, 220 insertions(+), 56 deletions(-) diff --git a/src/pentesting-cloud/azure-security/az-enumeration-tools.md b/src/pentesting-cloud/azure-security/az-enumeration-tools.md index 33cd37fb2..340178094 100644 --- a/src/pentesting-cloud/azure-security/az-enumeration-tools.md +++ b/src/pentesting-cloud/azure-security/az-enumeration-tools.md @@ -1,4 +1,4 @@ -# Az - Enumeration Tools +# Az - Enumerasie gereedskap {{#include ../../banners/hacktricks-training.md}} @@ -24,15 +24,15 @@ pwsh # Az cli curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash ``` -## Installeer PowerShell in MacOS +## Installeer PowerShell op MacOS -Instruksies vanaf die [**documentation**](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-macos?view=powershell-7.4): +Instruksies vanaf die [**dokumentasie**](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-macos?view=powershell-7.4): 1. Installeer `brew` as dit nog nie geïnstalleer is nie: ```bash /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ``` -2. Installeer die jongste stabiele vrystelling van PowerShell: +2. Installeer die nuutste stabiele weergawe van PowerShell: ```sh brew install powershell/tap/powershell ``` @@ -45,23 +45,23 @@ pwsh brew update brew upgrade powershell ``` -## Hoof Enumeration Tools +## Belangrikste enumerasie-gereedskap ### az cli -[**Azure Command-Line Interface (CLI)**](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli) is 'n platformonafhanklike hulpmiddel geskryf in Python vir die bestuur en administrasie van (meeste) Azure en Entra ID hulpbronne. Dit verbind met Azure en voer administratiewe opdragte uit via die opdragreël of skripte. +[**Azure Command-Line Interface (CLI)**](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli) is 'n platformonafhanklike hulpmiddel geskryf in Python vir die bestuur en administrasie van (meestal) Azure en Entra ID hulpbronne. Dit skakel aan by Azure en voer administratiewe opdragte uit via die opdraglyn of skripte. Volg hierdie skakel vir die [**installation instructions¡**](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli#install). Opdragte in Azure CLI is gestruktureer volgens die patroon: `az ` -#### Debug | MitM az cli +#### Foutsporing | MitM az cli -Deur die parameter **`--debug`** te gebruik is dit moontlik om al die versoeke wat die tool **`az`** stuur te sien: +Deur die parameter **`--debug`** te gebruik, is dit moontlik om al die versoeke te sien wat die hulpmiddel **`az`** stuur: ```bash az account management-group list --output table --debug ``` -Om 'n **MitM** op die tool te doen en **alle versoeke** wat dit handmatig stuur te kontroleer, kan jy die volgende doen: +Om 'n **MitM** op die tool uit te voer en **al die versoeke** wat dit stuur handmatig te kontroleer, kan jy die volgende doen: {{#tabs }} {{#tab name="Bash" }} @@ -104,11 +104,175 @@ $env:HTTP_PROXY="http://127.0.0.1:8080" {{#endtab }} {{#endtabs }} +
+Regstelling van “CA cert does not include key usage extension” + +### Waarom die fout gebeur + +Wanneer Azure CLI autentiseer, maak dit HTTPS-versoeke (via MSAL → Requests → OpenSSL). As jy TLS met Burp onderskep, genereer Burp “on the fly” sertifikate vir webwerwe soos `login.microsoftonline.com` en teken dit met Burp se CA. + +Op nuwer stacks (Python 3.13 + OpenSSL 3) is CA-validasie strenger: + +- A CA certificate must include **Basic Constraints: `CA:TRUE`** and a **Key Usage** extension permitting certificate signing (**`keyCertSign`**, and typically **`cRLSign`**). + +Burp’s default CA (PortSwigger CA) is old and typically lacks the Key Usage extension, so OpenSSL rejects it even if you “trust it”. + +Dit lewer foute soos: + +- `CA cert does not include key usage extension` +- `CERTIFICATE_VERIFY_FAILED` +- `self-signed certificate in certificate chain` + +Dus moet jy: + +1. Create a modern CA (with proper Key Usage). +2. Make Burp use it to sign intercepted certs. +3. Trust that CA in macOS. +4. Point Azure CLI / Requests to that CA bundle. + +### Stap-vir-stap: werkende konfigurasie + +#### 0) Vereistes + +- Burp plaaslik aan die gang (proxy by `127.0.0.1:8080`) +- Azure CLI geïnstalleer (Homebrew) +- Jy kan `sudo` gebruik (om die CA in die stelsel-keychain te vertrou) + +#### 1) Skep 'n standaarde-kompatibele Burp CA (PEM + KEY) + +Skep 'n OpenSSL-konfigurasielêer wat uitdruklik CA-uitbreidings instel: +```bash +mkdir -p ~/burp-ca && cd ~/burp-ca + +cat > burp-ca.cnf <<'EOF' +[ req ] +default_bits = 2048 +prompt = no +default_md = sha256 +distinguished_name = dn +x509_extensions = v3_ca + +[ dn ] +C = US +O = Burp Custom CA +CN = Burp Custom Root CA + +[ v3_ca ] +basicConstraints = critical,CA:TRUE +keyUsage = critical,keyCertSign,cRLSign +subjectKeyIdentifier = hash +authorityKeyIdentifier = keyid:always,issuer +EOF +``` +Genereer die CA-sertifikaat + privaat sleutel: +```bash +openssl req -x509 -new -nodes \ +-days 3650 \ +-keyout burp-ca.key \ +-out burp-ca.pem \ +-config burp-ca.cnf +``` +Basiese kontrole (jy MOET Key Usage sien): +```bash +openssl x509 -in burp-ca.pem -noout -text | egrep -A3 "Basic Constraints|Key Usage" +``` +Verwag om iets soos die volgende in te sluit: + +- `CA:TRUE` +- `Key Usage: ... Certificate Sign, CRL Sign` + +#### 2) Skakel om na PKCS#12 (Burp import-formaat) + +Burp benodig sertifikaat + private sleutel, die maklikste as PKCS#12: +```bash +openssl pkcs12 -export \ +-out burp-ca.p12 \ +-inkey burp-ca.key \ +-in burp-ca.pem \ +-name "Burp Custom Root CA" +``` +Jy sal gevra word vir 'n eksport-wagwoord (stel een; Burp sal daarna vra). + +#### 3) Importeer die CA in Burp en herbegin Burp + +In Burp: + +- Proxy → Options +- Find Import / export CA certificate +- Click Import CA certificate +- Choose PKCS#12 +- Select `burp-ca.p12` +- Enter the password +- Restart Burp completely (important) + +Hoekom herbegin? Burp kan die ou CA steeds gebruik totdat dit herbegin is. + +#### 4) Vertrou die nuwe CA in die macOS system keychain + +Dit laat stelselprogramme en baie TLS-stakke toe om die CA te vertrou. +```bash +sudo security add-trusted-cert \ +-d -r trustRoot \ +-k /Library/Keychains/System.keychain \ +~/burp-ca/burp-ca.pem +``` +(As jy die GUI verkies: Keychain Access → System → Certificates → import → stel “Always Trust”.) + +#### 5) Konfigureer proxy env vars +```bash +export HTTPS_PROXY="http://127.0.0.1:8080" +export HTTP_PROXY="http://127.0.0.1:8080" +``` +#### 6) Konfigureer Requests/Azure CLI om jou Burp CA te vertrou + +Azure CLI gebruik Python Requests intern; stel albei hiervan in: +```bash +export REQUESTS_CA_BUNDLE="$HOME/burp-ca/burp-ca.pem" +export SSL_CERT_FILE="$HOME/burp-ca/burp-ca.pem" +``` +Aantekeninge: + +- `REQUESTS_CA_BUNDLE` word deur Requests gebruik. +- `SSL_CERT_FILE` help vir ander TLS-kliënte en uitsonderingsgevalle. +- Jy het gewoonlik nie die ou `ADAL_PYTHON_SSL_NO_VERIFY` / `AZURE_CLI_DISABLE_CONNECTION_VERIFICATION` nodig sodra die CA korrek is. + +#### 7) Verifieer dat Burp werklik met jou nuwe CA onderteken (kritieke kontrole) + +Dit bevestig dat jou onderskeppingsketting korrek is: +```bash +openssl s_client -connect login.microsoftonline.com:443 \ +-proxy 127.0.0.1:8080 /dev/null \ +| openssl x509 -noout -issuer +``` +Die verwagte issuer bevat jou CA-naam, bv.: + +`O=Burp Custom CA, CN=Burp Custom Root CA` + +As jy steeds PortSwigger CA sien, gebruik Burp nie jou geïmporteerde CA nie → hersien die import en herbegin. + +#### 8) Verifieer dat Python Requests deur Burp werk +```bash +python3 - <<'EOF' +import requests +requests.get("https://login.microsoftonline.com") +print("OK") +EOF +``` +Verwag: `OK` + +#### 9) Azure CLI toets +```bash +az account get-access-token --resource=https://management.azure.com/ +``` +As jy reeds ingelog is, behoort dit JSON terug te gee met 'n `accessToken`. + +
+ ### Az PowerShell -Azure PowerShell is 'n module met cmdlets vir die bestuur van Azure hulpbronne direk vanaf die PowerShell-opdragreël. +Azure PowerShell is 'n module met cmdlets om Azure resources direk vanaf die PowerShell-opdragreël te bestuur. -Volg hierdie skakel vir die [**installation instructions**](https://learn.microsoft.com/en-us/powershell/azure/install-azure-powershell). +Follow this link for the [**installation instructions**](https://learn.microsoft.com/en-us/powershell/azure/install-azure-powershell). Opdragte in die Azure PowerShell AZ Module is gestruktureer soos: `-Az ` @@ -118,37 +282,37 @@ Deur die parameter **`-Debug`** te gebruik, is dit moontlik om al die versoeke t ```bash Get-AzResourceGroup -Debug ``` -Om 'n **MitM** op die tool uit te voer en handmatig **al die versoeke** wat dit stuur te kontroleer, kan jy die omgewingsveranderlikes `HTTPS_PROXY` en `HTTP_PROXY` instel volgens die [**docs**](https://learn.microsoft.com/en-us/powershell/azure/az-powershell-proxy). +Om 'n **MitM** op die tool te doen en **check all the requests** wat dit handmatig stuur, kan jy die omgewingsveranderlikes `HTTPS_PROXY` en `HTTP_PROXY` stel volgens die [**docs**](https://learn.microsoft.com/en-us/powershell/azure/az-powershell-proxy). ### Microsoft Graph PowerShell -Microsoft Graph PowerShell is 'n kruisplatform SDK wat toegang tot alle Microsoft Graph APIs moontlik maak, insluitend dienste soos SharePoint, Exchange, en Outlook, deur 'n enkele endpoint te gebruik. Dit ondersteun PowerShell 7+, moderne autentisering via MSAL, eksterne identiteite, en gevorderde queries. Met 'n fokus op die beginsel van minste voorreg, verseker dit veilige bedrywighede en ontvang dit gereelde opdaterings om in lyn te bly met die nuutste Microsoft Graph API-funksies. +Microsoft Graph PowerShell is 'n cross-platform SDK wat toegang tot alle Microsoft Graph APIs moontlik maak, insluitend dienste soos SharePoint, Exchange en Outlook, deur 'n enkele endpoint. Dit ondersteun PowerShell 7+, moderne verifikasie via MSAL, eksterne identiteite en gevorderde navrae. Met 'n fokus op die beginsel van minste voorreg verseker dit veilige bedrywighede en ontvang gereelde opdaterings om met die nuutste Microsoft Graph API-funksies in lyn te bly. -Volg hierdie skakel vir die [**installation instructions**](https://learn.microsoft.com/en-us/powershell/microsoftgraph/installation). +Volg hierdie skakel vir die [**installasie-instruksies**](https://learn.microsoft.com/en-us/powershell/microsoftgraph/installation). Opdragte in Microsoft Graph PowerShell is gestruktureer soos: `-Mg ` -#### Debug Microsoft Graph PowerShell +#### Ontfout Microsoft Graph PowerShell -Deur die parameter **`-Debug`** te gebruik, is dit moontlik om al die versoeke wat die tool stuur te sien: +Deur die parameter **`-Debug`** te gebruik is dit moontlik om al die requests te sien wat die tool stuur: ```bash Get-MgUser -Debug ``` ### ~~**AzureAD Powershell**~~ -Die Azure Active Directory (AD) module, nou **verouderd**, is deel van Azure PowerShell vir die bestuur van Azure AD-hulpbronne. Dit bied cmdlets vir take soos die bestuur van gebruikers, groepe en toepassingsregistrasies in Entra ID. +Die Azure Active Directory (AD) module, nou **verouderd**, is deel van Azure PowerShell vir die bestuur van Azure AD-bronne. Dit bied cmdlets vir take soos die bestuur van gebruikers, groepe, en aansoekregistrasies in Entra ID. > [!TIP] > Dit is vervang deur Microsoft Graph PowerShell -Follow this link for the [**installation instructions**](https://www.powershellgallery.com/packages/AzureAD). +Volg hierdie skakel vir die [**installation instructions**](https://www.powershellgallery.com/packages/AzureAD). -## Outomatiese Recon & Nakomingsgereedskap +## Outomatiese Recon & Compliance Tools ### [turbot azure plugins](https://github.com/orgs/turbot/repositories?q=mod-azure) -Turbot saam met steampipe en powerpipe maak dit moontlik om inligting van Azure en Entra ID te versamel, nakomingskontroles uit te voer en miskonfigurasies te vind. Die tans mees aanbevole Azure-modules om te gebruik is: +Turbot met steampipe en powerpipe maak dit moontlik om inligting vanaf Azure en Entra ID in te samel en compliance kontroles uit te voer en misconfigurasies te vind. Die tans mees aanbevole Azure-modules om te gebruik is: - [https://github.com/turbot/steampipe-mod-azure-compliance](https://github.com/turbot/steampipe-mod-azure-compliance) - [https://github.com/turbot/steampipe-mod-azure-insights](https://github.com/turbot/steampipe-mod-azure-insights) @@ -179,9 +343,9 @@ powerpipe server ``` ### [Prowler](https://github.com/prowler-cloud/prowler) -Prowler is 'n Open Source sekuriteitsinstrument om AWS, Azure, Google Cloud en Kubernetes se beste sekuriteitspraktyke te beoordeel, insluitend assessments, ouditte, insidentrespons, voortdurende monitering, verharding en forensiese gereedheid. +Prowler is 'n Open Source security tool om AWS, Azure, Google Cloud en Kubernetes se beste praktyke vir sekuriteit te assesseer, ouditte uit te voer, incident response te hanteer, continuous monitoring te verskaf, hardening toe te pas en forensics readiness te ondersteun. -Dit stel ons in staat om honderde kontroles teen 'n Azure-omgewing uit te voer om sekuriteitsmiskonfigurasies te vind en die resultate in json (en ander teksformate) te versamel of dit op die web te bekyk. +Dit maak dit basies moontlik om honderde kontroles teen 'n Azure-omgewing uit te voer om sekuriteits-misconfigurasies te vind en die resultate in json (en ander teksformate) te versamel of dit op die web te bekyk. ```bash # Create a application with Reader role and set the tenant ID, client ID and secret in prowler so it access the app @@ -203,9 +367,9 @@ docker run --rm -e "AZURE_CLIENT_ID=" -e "AZURE_TENANT_ID= ``` ### [Monkey365](https://github.com/silverhack/monkey365) -Dit laat toe om Azure-subskripsies en Microsoft Entra ID se sekuriteitskonfigurasie-oorsigte outomaties uit te voer. +Dit laat toe om Azure-subskripsies en Microsoft Entra ID-sekuriteitskonfigurasie-oorsigte outomaties uit te voer. -Die HTML-verslae word in die `./monkey-reports`-gids binne die github repository-gids gestoor. +Die HTML-verslae word gestoor binne die `./monkey-reports` gids binne die github repository folder. ```bash git clone https://github.com/silverhack/monkey365 Get-ChildItem -Recurse monkey365 | Unblock-File @@ -226,7 +390,7 @@ Invoke-Monkey365 -TenantId -ClientId -ClientSecret $Secu ``` ### [ScoutSuite](https://github.com/nccgroup/ScoutSuite) -Scout Suite versamel konfigurasiedata vir handmatige inspeksie en beklemtoon risikogebiede. Dit is 'n multi-cloud sekuriteits-audit hulpmiddel wat sekuriteitshouding-assessering van cloud-omgewings moontlik maak. +Scout Suite versamel konfigurasiedata vir handmatige inspeksie en beklemtoon risikogebiede. Dit is 'n multi-cloud security-auditing tool wat sekuriteitsposisie-assessering van cloud-omgewings moontlik maak. ```bash virtualenv -p python3 venv source venv/bin/activate @@ -242,18 +406,18 @@ python scout.py azure --cli ``` ### [Azure-MG-Sub-Governance-Reporting](https://github.com/JulianHayward/Azure-MG-Sub-Governance-Reporting) -Dit is 'n PowerShell-skrip wat jou help om **al die hulpbronne en toestemmings binne 'n Management Group en die Entra ID tenant te visualiseer** en sekuriteitskonfigurasiefoute op te spoor. +Dit is 'n powershell-skrip wat jou help om **al die hulpbronne en toestemmings binne 'n Management Group en die Entra ID** tenant te visualiseer en sekuriteitsmiskonfigurasies te vind. -Dit werk met die Az PowerShell module, dus word enige autentisering wat deur hierdie tool ondersteun word ook ondersteun. +Dit werk met die Az PowerShell module, dus word enige verifikasie wat deur hierdie tool ondersteun word ook deur die tool ondersteun. ```bash import-module Az .\AzGovVizParallel.ps1 -ManagementGroupId [-SubscriptionIdWhitelist ] ``` -## Geoutomatiseerde Post-Exploitation gereedskap +## Outomatiese Post-Exploitation gereedskap ### [**ROADRecon**](https://github.com/dirkjanm/ROADtools) -Die enumerasie van ROADRecon bied inligting oor die konfigurasie van Entra ID, soos gebruikers, groepe, rolle, voorwaardelike toegangsbeleide... +Die enumerasie deur ROADRecon bied inligting oor die konfigurasie van Entra ID, soos gebruikers, groepe, rolle, conditional access policies... ```bash cd ROADTools pipenv shell @@ -266,17 +430,17 @@ roadrecon gui ``` ### [**AzureHound**](https://github.com/BloodHoundAD/AzureHound) -AzureHound is die BloodHound collector vir Microsoft Entra ID en Azure. Dit is 'n enkele statiese Go-binary vir Windows/Linux/macOS wat direk kommunikeer met: +AzureHound is die BloodHound-versamelaar vir Microsoft Entra ID en Azure. Dit is 'n enkele statiese Go-binarie vir Windows/Linux/macOS wat direk met die volgende kommunikeer: - Microsoft Graph (Entra ID directory, M365) en - Azure Resource Manager (ARM) control plane (subscriptions, resource groups, compute, storage, key vault, app services, AKS, etc.) Belangrike kenmerke -- Hardloop vanaf enige plek op die openbare internet teen tenant-API's (geen interne netwerktoegang benodig nie) -- Gee JSON-uitset vir BloodHound CE-invoer om aanvalspaaie oor identiteite en cloudhulpbronne te visualiseer +- Werk vanaf enige plek op die openbare internet teen tenant-APIs (geen toegang tot interne netwerk benodig nie) +- Gee JSON uit vir BloodHound CE-inname om aanvalspaaie oor identiteite en cloudhulpbronne te visualiseer - Standaard User-Agent waargeneem: azurehound/v2.x.x Verifikasie-opsies -- Username + password: -u -p +- Gebruikersnaam + wagwoord: -u -p - Refresh token: --refresh-token - JSON Web Token (access token): --jwt - Service principal secret: -a -s @@ -318,36 +482,36 @@ azurehound list web-apps -t "" -o webapps.json azurehound list function-apps -t "" -o funcapps.json ``` Wat word opgevra -- Graph endpoints (examples): +- Graph endpunte (voorbeelde): - /v1.0/organization, /v1.0/users, /v1.0/groups, /v1.0/roleManagement/directory/roleDefinitions, directoryRoles, owners/members -- ARM endpoints (examples): +- ARM endpunte (voorbeelde): - management.azure.com/subscriptions/.../providers/Microsoft.Storage/storageAccounts - .../Microsoft.KeyVault/vaults, .../Microsoft.Compute/virtualMachines, .../Microsoft.Web/sites, .../Microsoft.ContainerService/managedClusters -Preflight behavior and endpoints -- Elke azurehound list voer tipies hierdie toets-oproepe uit voor enumerasie: -1) Identity platform: login.microsoftonline.com +Preflight-gedrag en endpunte +- Elke azurehound list voer gewoonlik hierdie toetsoproepe uit voor enumeration: +1) Identiteitsplatform: login.microsoftonline.com 2) Graph: GET https://graph.microsoft.com/v1.0/organization 3) ARM: GET https://management.azure.com/subscriptions?api-version=... -- Cloud-omgewing basiese URLs verskil vir Government/China/Germany. See constants/environments.go in the repo. +- Cloud environment base URLs verskil vir Government/China/Germany. Sien constants/environments.go in die repo. -ARM-heavy objects (less visible in Activity/Resource logs) -- Die volgende list targets maak oorwegend gebruik van ARM control plane reads: automation-accounts, container-registries, function-apps, key-vaults, logic-apps, managed-clusters, management-groups, resource-groups, storage-accounts, storage-containers, virtual-machines, vm-scale-sets, web-apps. -- Hierdie GET/list-operasies word gewoonlik nie in Activity Logs geskryf nie; data-plane reads (bv. *.blob.core.windows.net, *.vault.azure.net) word deur Diagnostic Settings op bronvlak gedek. +ARM-oorwegend voorwerpe (minder sigbaar in Activity/Resource logs) +- Die volgende teikens gebruik hoofsaaklik ARM control plane reads: automation-accounts, container-registries, function-apps, key-vaults, logic-apps, managed-clusters, management-groups, resource-groups, storage-accounts, storage-containers, virtual-machines, vm-scale-sets, web-apps. +- Hierdie GET/list operasies word gewoonlik nie in Activity Logs geskryf nie; data-plane reads (bv. *.blob.core.windows.net, *.vault.azure.net) word op hulpbronvlak deur Diagnostic Settings gedek. -OPSEC and logging notes -- Microsoft Graph Activity Logs is nie standaard geaktiveer nie; skakel dit aan en export na SIEM om sigbaarheid van Graph-oproepe te kry. Verwag die Graph preflight GET /v1.0/organization met UA azurehound/v2.x.x. -- Entra ID non-interactive sign-in logs neem die identity platform auth (login.microsoftonline.com) op wat deur AzureHound gebruik is. -- ARM control-plane read/list-operasies word nie in Activity Logs aangeteken nie; baie azurehound list-operasies teen resources sal daar nie verskyn nie. Slegs data-plane logging (via Diagnostic Settings) sal lees na service endpoints vang. -- Defender XDR GraphApiAuditEvents (preview) kan Graph-oproepe en token-identifikasies blootlê maar mag UserAgent ontbeer en beperkte retensie hê. +OPSEC en logboeknotas +- Microsoft Graph Activity Logs is nie standaard geaktiveer nie; aktiveer en voer uit na 'n SIEM om sigbaarheid van Graph-oproepe te kry. Verwag die Graph preflight GET /v1.0/organization met UA azurehound/v2.x.x. +- Entra ID non-interactive sign-in logs registreer die identiteitsplatform-auth (login.microsoftonline.com) wat deur AzureHound gebruik is. +- ARM control-plane read/list operations word nie in Activity Logs aangeteken nie; baie azurehound list operasies teen hulpbronne sal daar nie verskyn nie. Slegs data-plane logging (via Diagnostic Settings) sal reads na service endpoints vang. +- Defender XDR GraphApiAuditEvents (preview) kan Graph-oproepe en token-identifiers openbaar, maar mag UserAgent ontbreek en het beperkte bewaring. -Wenk: Wanneer jy vir privilege paths enumerasie doen, dump gebruikers, groups, roles, en role assignments, en importeer dit in BloodHound en gebruik voorafgeboude cypher queries om Global Administrator/Privileged Role Administrator en transitive eskalasie via nested groups en RBAC-toewysings te identifiseer. +Wenk: Wanneer jy vir privilege paths enumereer, dump gebruikers, groepe, rolle en rol-toewysings, laai dit dan in BloodHound en gebruik voorafgeboude cypher queries om Global Administrator/Privileged Role Administrator en transitive escalation via nested groups en RBAC assignments te identifiseer. -Launch the BloodHound web with `curl -L https://ghst.ly/getbhce | docker compose -f - up` and import the `output.json` file. Then, in the EXPLORE tab, in the CYPHER section you can see a folder icon that contains pre-built queries. +Start die BloodHound web met `curl -L https://ghst.ly/getbhce | docker compose -f - up` en importeer die `output.json` lêer. Dan, in die EXPLORE tab, in die CYPHER section kan jy 'n gids-ikoon sien wat voorafgeboude queries bevat. ### [**MicroBurst**](https://github.com/NetSPI/MicroBurst) -MicroBurst bevat funksies en skripte wat Azure Services discovery, swak konfigurasie auditing, en post exploitation actions soos credential dumping ondersteun. Dit is bedoel om gebruik te word tydens penetration tests waar Azure in gebruik is. +MicroBurst bevat funksies en skripte wat Azure Services discovery, weak configuration auditing, en post exploitation aksies soos credential dumping ondersteun. Dit is bedoel om gebruik te word tydens penetration tests waar Azure in gebruik is. ```bash Import-Module .\MicroBurst.psm1 Import-Module .\Get-AzureDomainInfo.ps1 @@ -355,9 +519,9 @@ Get-AzureDomainInfo -folder MicroBurst -Verbose ``` ### [**PowerZure**](https://github.com/hausec/PowerZure) -PowerZure is geskep uit die behoefte aan 'n raamwerk wat beide reconnaissance en exploitation van Azure, EntraID, en die verwante hulpbronne kan uitvoer. +PowerZure is geskep uit die behoefte aan 'n raamwerk wat beide reconnaissance en exploitation van Azure, EntraID en die geassosieerde hulpbronne kan uitvoer. -Dit gebruik die **Az PowerShell** module, so enige authentication wat deur hierdie module ondersteun word, word ook deur die tool ondersteun. +Dit gebruik die **Az PowerShell**-module, dus enige authentication wat deur hierdie hulpmiddel ondersteun word, word ook deur die hulpmiddel ondersteun. ```bash # Login Import-Module Az @@ -388,7 +552,7 @@ Invoke-AzureRunCommand -Command -VMName ``` ### [**GraphRunner**](https://github.com/dafthack/GraphRunner/wiki/Invoke%E2%80%90GraphRunner) -GraphRunner is 'post-exploitation' toolset vir interaksie met die Microsoft Graph API. Dit verskaf verskeie gereedskap om reconnaissance, persistence en pillaging van data vanaf 'n Microsoft Entra ID (Azure AD)-rekening uit te voer. +GraphRunner is 'n post-exploitation gereedskapstel vir interaksie met die Microsoft Graph API. Dit verskaf verskeie gereedskap om reconnaissance, persistence, en pillaging van data uit 'n Microsoft Entra ID (Azure AD) rekening uit te voer. ```bash #A good place to start is to authenticate with the Get-GraphTokens module. This module will launch a device-code login, allowing you to authenticate the session from a browser session. Access and refresh tokens will be written to the global $tokens variable. To use them with other GraphRunner modules use the Tokens flag (Example. Invoke-DumpApps -Tokens $tokens) Import-Module .\GraphRunner.ps1 @@ -432,9 +596,9 @@ Invoke-GraphRunner -Tokens $tokens ``` ### [Stormspotter](https://github.com/Azure/Stormspotter) -Stormspotter skep ’n “attack graph” van die resources in ’n Azure subscription. Dit stel red teams en pentesters in staat om die attack surface en pivot opportunities binne ’n tenant te visualiseer, en gee jou defenders die vermoë om vinnig te oriënteer en prioriteite te bepaal vir incident response werk. +Stormspotter skep ’n “attack graph” van die hulpbronne in ’n Azure subscription. Dit stel red teams en pentesters in staat om die attack surface en pivot opportunities binne ’n tenant te visualiseer, en gee jou verdedigers ’n groot hupstoot om vinnig te oriënteer en incident response-werk te prioritiseer. -**Ongelukkig lyk dit asof dit nie meer onderhou word nie.** +**Ongelukkig lyk dit of dit nie meer onderhou word nie**. ```bash # Start Backend cd stormspotter\backend\ @@ -456,7 +620,7 @@ python stormspotter\stormcollector\sscollector.pyz cli - [Wolkontdekking met AzureHound (Unit 42)](https://unit42.paloaltonetworks.com/threat-actor-misuse-of-azurehound/) - [AzureHound repository](https://github.com/SpecterOps/AzureHound) - [BloodHound repository](https://github.com/SpecterOps/BloodHound) -- [AzureHound Community Edition Flags](https://bloodhound.specterops.io/collect-data/ce-collection/azurehound-flags) +- [AzureHound Community Edition-vlae](https://bloodhound.specterops.io/collect-data/ce-collection/azurehound-flags) - [AzureHound constants/environments.go](https://github.com/SpecterOps/AzureHound/blob/main/constants/environments.go) - [AzureHound client/storage_accounts.go](https://github.com/SpecterOps/AzureHound/blob/main/client/storage_accounts.go) - [AzureHound client/roles.go](https://github.com/SpecterOps/AzureHound/blob/main/client/roles.go)