Az - 列挙ツール
Tip
AWSハッキングを学び、実践する:
HackTricks Training AWS Red Team Expert (ARTE)
GCPハッキングを学び、実践する:HackTricks Training GCP Red Team Expert (GRTE)
Azureハッキングを学び、実践する:
HackTricks Training Azure Red Team Expert (AzRTE)
HackTricksをサポートする
- サブスクリプションプランを確認してください!
- **💬 Discordグループまたはテレグラムグループに参加するか、Twitter 🐦 @hacktricks_liveをフォローしてください。
- HackTricksおよびHackTricks CloudのGitHubリポジトリにPRを提出してハッキングトリックを共有してください。
LinuxにPowerShellをインストール
Tip
LinuxではPowerShell Coreをインストールする必要があります:
sudo apt-get update
sudo apt-get install -y wget apt-transport-https software-properties-common
# Ubuntu 20.04
wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb
# Update repos
sudo apt-get update
sudo add-apt-repository universe
# Install & start powershell
sudo apt-get install -y powershell
pwsh
# Az cli
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
MacOSにPowerShellをインストール
手順はdocumentation:
- まだインストールしていない場合は
brewをインストールします:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- PowerShell の最新の安定版をインストールしてください:
brew install powershell/tap/powershell
- PowerShell を実行する:
pwsh
- 更新:
brew update
brew upgrade powershell
主要な列挙ツール
az cli
Azure Command-Line Interface (CLI) は、Pythonで書かれたクロスプラットフォームのツールで、(ほとんどの)AzureおよびEntra IDリソースの管理と運用を行います。Azureに接続し、コマンドラインやスクリプト経由で管理コマンドを実行します。
インストールについては、次のリンクを参照してください: installation instructions¡.
Commands in Azure CLI are structured using a pattern of: az <service> <action> <parameters>
Debug | MitM az cli
Using the parameter --debug it’s possible to see all the requests the tool az is sending:
az account management-group list --output table --debug
ツールに対してMitMを行い、送信しているすべてのrequestsを手動で確認するには、以下を実行します:
export ADAL_PYTHON_SSL_NO_VERIFY=1
export AZURE_CLI_DISABLE_CONNECTION_VERIFICATION=1
export HTTPS_PROXY="http://127.0.0.1:8080"
export HTTP_PROXY="http://127.0.0.1:8080"
# If this is not enough
# Download the certificate from Burp and convert it into .pem format
# And export the following env variable
openssl x509 -in ~/Downloads/cacert.der -inform DER -out ~/Downloads/cacert.pem -outform PEM
export REQUESTS_CA_BUNDLE=/Users/user/Downloads/cacert.pem
“CA cert does not include key usage extension” の修正
なぜこのエラーが発生するのか
Azure CLIが認証する際、HTTPSリクエストを行います(MSAL → Requests → OpenSSL経由)。BurpでTLSをインターセプトしている場合、Burpはlogin.microsoftonline.comのようなサイト用に“on the fly”で証明書を生成し、BurpのCAで署名します。
新しいスタック(Python 3.13 + OpenSSL 3)では、CAの検証がより厳格になっています:
- CA証明書は Basic Constraints:
CA:TRUEを含み、証明書署名を許可する Key Usage 拡張(keyCertSign、通常はcRLSign)を持っている必要があります。
BurpのデフォルトCA(PortSwigger CA)は古く、通常 Key Usage 拡張が欠けているため、OpenSSLはそれを「信頼している」場合でも却下します。
その結果、以下のようなエラーが発生します:
CA cert does not include key usage extensionCERTIFICATE_VERIFY_FAILEDself-signed certificate in certificate chain
したがって、次を行う必要があります:
- モダンなCA(適切なKey Usageを持つ)を作成する。
- Burpにそれを使わせてインターセプトした証明書を署名させる。
- そのCAをmacOSで信頼する。
- Azure CLI / RequestsにそのCAバンドルを指し示す。
ステップバイステップ:動作する構成
0) 前提条件
- Burpがローカルで稼働している(proxy が
127.0.0.1:8080) - Azure CLIがインストールされている(Homebrew)
sudoが使える(システムキーチェーンにCAを信頼させるため)
1) Create a standards-compliant Burp CA (PEM + KEY)
OpenSSLの設定ファイルを作成して、CA拡張を明示的に設定します:
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
CA証明書 + 秘密鍵を生成する:
openssl req -x509 -new -nodes \
-days 3650 \
-keyout burp-ca.key \
-out burp-ca.pem \
-config burp-ca.cnf
サニティチェック(Key Usage が必ず表示されていることを確認してください):
openssl x509 -in burp-ca.pem -noout -text | egrep -A3 "Basic Constraints|Key Usage"
以下のような内容が含まれているはずです:
CA:TRUEKey Usage: ... Certificate Sign, CRL Sign
2) PKCS#12 に変換する (Burp インポート形式)
Burp は certificate + private key を必要とし、最も簡単なのは PKCS#12 です:
openssl pkcs12 -export \
-out burp-ca.p12 \
-inkey burp-ca.key \
-in burp-ca.pem \
-name "Burp Custom Root CA"
エクスポート用のパスワードを要求されます(必ず設定してください;Burpも同じパスワードを要求します)。
3) CAをBurpにインポートしてBurpを再起動する
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)
なぜ再起動するのか?Burpは再起動するまで古いCAを使い続ける可能性があります。
4) macOSのシステムキーチェーンで新しいCAを信頼する
これによりシステムアプリや多くのTLSスタックがそのCAを信頼するようになります。
sudo security add-trusted-cert \
-d -r trustRoot \
-k /Library/Keychains/System.keychain \
~/burp-ca/burp-ca.pem
(If you prefer GUI: Keychain Access → System → Certificates → import → set “Always Trust”.)
5) プロキシの環境変数を設定
export HTTPS_PROXY="http://127.0.0.1:8080"
export HTTP_PROXY="http://127.0.0.1:8080"
6) Requests/Azure CLI を Burp CA を信頼するように設定する
Azure CLI は内部で Python Requests を使用します。次の両方を設定してください:
export REQUESTS_CA_BUNDLE="$HOME/burp-ca/burp-ca.pem"
export SSL_CERT_FILE="$HOME/burp-ca/burp-ca.pem"
Notes:
REQUESTS_CA_BUNDLEは Requests によって使用されます。SSL_CERT_FILEは他の TLS クライアントやエッジケースで役立ちます。- CA が正しく設定されていれば、通常は古い
ADAL_PYTHON_SSL_NO_VERIFY/AZURE_CLI_DISABLE_CONNECTION_VERIFICATIONは不要です。
7) Burpが実際に新しいCAで署名していることを確認する(重要なチェック)
これにより、インターセプトチェーンが正しいことが確認できます:
openssl s_client -connect login.microsoftonline.com:443 \
-proxy 127.0.0.1:8080 </dev/null 2>/dev/null \
| openssl x509 -noout -issuer
期待される発行者にはあなたの CA 名が含まれます。例:
O=Burp Custom CA, CN=Burp Custom Root CA
それでも PortSwigger CA が表示される場合、Burp はインポートした CA を使用していません → インポートを再確認して再起動してください。
8) Python Requests が Burp 経由で動作することを確認する
python3 - <<'EOF'
import requests
requests.get("https://login.microsoftonline.com")
print("OK")
EOF
期待値: OK
9) Azure CLI テスト
az account get-access-token --resource=https://management.azure.com/
すでにログインしている場合、accessToken を含む JSON を返すはずです。
Az PowerShell
Azure PowerShell は、PowerShell のコマンドラインから Azure リソースを直接管理するための cmdlets を含むモジュールです。
Follow this link for the installation instructions.
Commands in Azure PowerShell AZ Module are structured like: <Action>-Az<Service> <parameters>
Debug | MitM Az PowerShell
パラメータ -Debug を使用すると、ツールが送信しているすべてのリクエストを確認できます:
Get-AzResourceGroup -Debug
ツールに対してMitMを行い、送信しているすべてのリクエストを手動で確認するために、HTTPS_PROXY と HTTP_PROXY の環境変数を docs に従って設定できます。
Microsoft Graph PowerShell
Microsoft Graph PowerShell はクロスプラットフォームの SDK で、単一のエンドポイントを使って SharePoint、Exchange、Outlook のようなサービスを含むすべての Microsoft Graph APIs にアクセスできます。PowerShell 7+、MSAL を使ったモダン認証、外部アイデンティティ、および高度なクエリをサポートします。最小権限アクセスに重点を置き、安全な操作を保証するとともに、最新の Microsoft Graph API 機能に合わせて定期的にアップデートされます。
インストール手順は installation instructions を参照してください。
Microsoft Graph PowerShell のコマンドは次のような形式です: <Action>-Mg<Service> <parameters>
Debug Microsoft Graph PowerShell
パラメータ -Debug を使用すると、ツールが送信しているすべてのリクエストを確認できます:
Get-MgUser -Debug
AzureAD Powershell
Azure Active Directory (AD) モジュールは、現在 deprecated で、Azure AD リソースの管理を行う Azure PowerShell の一部です。ユーザーやグループ、アプリケーション登録の管理など、Entra ID 上での作業を行うための cmdlets を提供します。
Tip
これは Microsoft Graph PowerShell に置き換えられています。
インストール手順は次のリンクを参照してください: installation instructions.
自動化された Recon & コンプライアンスツール
turbot azure plugins
Turbot は steampipe と powerpipe を使って Azure と Entra ID から情報を収集し、コンプライアンスチェックや構成ミスの検出を行えます。現在推奨される Azure モジュールは次のとおりです:
- https://github.com/turbot/steampipe-mod-azure-compliance
- https://github.com/turbot/steampipe-mod-azure-insights
- https://github.com/turbot/steampipe-mod-azuread-insights
# Install
brew install turbot/tap/powerpipe
brew install turbot/tap/steampipe
steampipe plugin install azure
steampipe plugin install azuread
# Config creds via env vars or az cli default creds will be used
export AZURE_ENVIRONMENT="AZUREPUBLICCLOUD"
export AZURE_TENANT_ID="<tenant-id>"
export AZURE_SUBSCRIPTION_ID="<subscription-id>"
export AZURE_CLIENT_ID="<client-id>"
export AZURE_CLIENT_SECRET="<secret>"
# Run steampipe-mod-azure-insights
cd /tmp
mkdir dashboards
cd dashboards
powerpipe mod init
powerpipe mod install github.com/turbot/steampipe-mod-azure-insights
steampipe service start
powerpipe server
# Go to http://localhost:9033 in a browser
Prowler
Prowler は、AWS、Azure、Google Cloud、Kubernetes のセキュリティのベストプラクティスに関する評価、監査、インシデント対応、継続的モニタリング、ハードニング、およびフォレンジック準備を行うためのオープンソースのセキュリティツールです。
基本的に、Azure 環境に対して数百件のチェックを実行し、セキュリティの誤設定を検出して結果を json(およびその他のテキスト形式)で収集したり、ウェブ上で確認したりできます。
# Create a application with Reader role and set the tenant ID, client ID and secret in prowler so it access the app
# Launch web with docker-compose
export DOCKER_DEFAULT_PLATFORM=linux/amd64
curl -LO https://raw.githubusercontent.com/prowler-cloud/prowler/refs/heads/master/docker-compose.yml
curl -LO https://raw.githubusercontent.com/prowler-cloud/prowler/refs/heads/master/.env
## If using an old docker-compose version, change the "env_file" params to: env_file: ".env"
docker compose up -d
# Access the web and configure the access to run a scan from it
# Prowler cli
python3 -m pip install prowler --break-system-packages
docker run --rm toniblyx/prowler:v4-latest azure --list-checks
docker run --rm toniblyx/prowler:v4-latest azure --list-services
docker run --rm toniblyx/prowler:v4-latest azure --list-compliance
docker run --rm -e "AZURE_CLIENT_ID=<client-id>" -e "AZURE_TENANT_ID=<tenant-id>" -e "AZURE_CLIENT_SECRET=<secret>" toniblyx/prowler:v4-latest azure --sp-env-auth
## It also support other authentication types, check: prowler azure --help
Monkey365
自動で Azure サブスクリプションおよび Microsoft Entra ID のセキュリティ構成レビューを実行できます。
HTML レポートは、github リポジトリフォルダ内の ./monkey-reports ディレクトリに格納されます。
git clone https://github.com/silverhack/monkey365
Get-ChildItem -Recurse monkey365 | Unblock-File
cd monkey365
Import-Module ./monkey365
mkdir /tmp/monkey365-scan
cd /tmp/monkey365-scan
Get-Help Invoke-Monkey365
Get-Help Invoke-Monkey365 -Detailed
# Scan with user creds (browser will be run)
Invoke-Monkey365 -TenantId <tenant-id> -Instance Azure -Collect All -ExportTo HTML
# Scan with App creds
$SecureClientSecret = ConvertTo-SecureString "<secret>" -AsPlainText -Force
Invoke-Monkey365 -TenantId <tenant-id> -ClientId <client-id> -ClientSecret $SecureClientSecret -Instance Azure -Collect All -ExportTo HTML
ScoutSuite
Scout Suite は手動検査用の構成データを収集し、リスク領域を強調表示します。マルチクラウドのセキュリティ監査ツールで、クラウド環境のセキュリティ態勢の評価を可能にします。
virtualenv -p python3 venv
source venv/bin/activate
pip install scoutsuite
scout --help
# Use --cli flag to use az cli credentials
# Use --user-account to have scout prompt for user credentials
# Use --user-account-browser to launch a browser to login
# Use --service-principal to have scout prompt for app credentials
python scout.py azure --cli
Azure-MG-Sub-Governance-Reporting
これはpowershellスクリプトで、Management GroupとEntra IDテナント内のすべてのリソースと権限を可視化し、セキュリティの誤設定を見つけるのに役立ちます。
Az PowerShell module を使用して動作するため、Az PowerShell module がサポートする認証方式はすべてこのツールで利用できます。
import-module Az
.\AzGovVizParallel.ps1 -ManagementGroupId <management-group-id> [-SubscriptionIdWhitelist <subscription-id>]
Automated Post-Exploitation tools
ROADRecon
ROADReconのenumerationは、Entra IDの設定(users、groups、roles、conditional access policiesなど)に関する情報を提供します。
cd ROADTools
pipenv shell
# Login with user creds
roadrecon auth -u test@corp.onmicrosoft.com -p "Welcome2022!"
# Login with app creds
roadrecon auth --as-app --client "<client-id>" --password "<secret>" --tenant "<tenant-id>"
roadrecon gather
roadrecon gui
AzureHound
AzureHoundはMicrosoft Entra IDとAzure向けのBloodHoundコレクターです。Windows/Linux/macOS用の単一の静的Goバイナリで、直接次にアクセスします:
- Microsoft Graph (Entra ID directory, M365) および
- Azure Resource Manager (ARM) の制御プレーン (subscriptions, resource groups, compute, storage, key vault, app services, AKS, etc.)
主な特徴
- パブリックインターネット上のどこからでも tenant APIs に対して実行可能(内部ネットワークアクセスは不要)
- JSONを出力し、BloodHound CE に取り込んでアイデンティティとクラウドリソース間の攻撃経路を可視化
- 観測されるデフォルトのUser-Agent: azurehound/v2.x.x
認証オプション
- ユーザー名 + パスワード: -u
-p - Refresh token: –refresh-token
- JSON Web Token (access token): –jwt
- Service principal secret: -a
-s - Service principal certificate: -a
–cert <cert.pem> –key <key.pem> [–keypass ]
使用例
# Full tenant collection to file using different auth flows
## User creds
azurehound list -u "<user>@<tenant>" -p "<pass>" -t "<tenant-id|domain>" -o ./output.json
## Use an access token (JWT) from az cli for Graph
JWT=$(az account get-access-token --resource https://graph.microsoft.com -o tsv --query accessToken)
azurehound list --jwt "$JWT" -t "<tenant-id>" -o ./output.json
## Use a refresh token (e.g., from device code flow)
azurehound list --refresh-token "<refresh_token>" -t "<tenant-id>" -o ./output.json
## Service principal secret
azurehound list -a "<client-id>" -s "<secret>" -t "<tenant-id>" -o ./output.json
## Service principal certificate
azurehound list -a "<client-id>" --cert "/path/cert.pem" --key "/path/key.pem" -t "<tenant-id>" -o ./output.json
# Targeted discovery
azurehound list users -t "<tenant-id>" -o users.json
azurehound list groups -t "<tenant-id>" -o groups.json
azurehound list roles -t "<tenant-id>" -o roles.json
azurehound list role-assignments -t "<tenant-id>" -o role-assignments.json
# Azure resources via ARM
azurehound list subscriptions -t "<tenant-id>" -o subs.json
azurehound list resource-groups -t "<tenant-id>" -o rgs.json
azurehound list virtual-machines -t "<tenant-id>" -o vms.json
azurehound list key-vaults -t "<tenant-id>" -o kv.json
azurehound list storage-accounts -t "<tenant-id>" -o sa.json
azurehound list storage-containers -t "<tenant-id>" -o containers.json
azurehound list web-apps -t "<tenant-id>" -o webapps.json
azurehound list function-apps -t "<tenant-id>" -o funcapps.json
What gets queried
- Graph エンドポイント(例):
- /v1.0/organization, /v1.0/users, /v1.0/groups, /v1.0/roleManagement/directory/roleDefinitions, directoryRoles, owners/members
- ARM エンドポイント(例):
- management.azure.com/subscriptions/…/providers/Microsoft.Storage/storageAccounts
- …/Microsoft.KeyVault/vaults, …/Microsoft.Compute/virtualMachines, …/Microsoft.Web/sites, …/Microsoft.ContainerService/managedClusters
Preflight behavior and endpoints
- 各 azurehound list
- Identity platform: login.microsoftonline.com
- Graph: GET https://graph.microsoft.com/v1.0/organization
- ARM: GET https://management.azure.com/subscriptions?api-version=…
- クラウド環境のベースURLは Government/China/Germany で異なります。リポジトリの constants/environments.go を参照してください。
ARM-heavy objects (less visible in Activity/Resource logs)
- 以下のターゲットは主に ARM コントロールプレーンの読み取りを使用します: 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.
- これらの GET/list 操作は通常 Activity Logs に書き込まれません。データプレーンの読み取り(例: *.blob.core.windows.net, *.vault.azure.net)はリソースレベルの Diagnostic Settings でカバーされます。
OPSEC and logging notes
- Microsoft Graph Activity Logs はデフォルトで有効になっていません。Graph コールの可視化のために有効化して SIEM にエクスポートしてください。Graph のプリフライト GET /v1.0/organization は UA azurehound/v2.x.x で行われることを想定してください。
- Entra ID の non-interactive sign-in ログは、AzureHound が使用する identity platform の auth (login.microsoftonline.com) を記録します。
- ARM のコントロールプレーンの read/list 操作は Activity Logs に記録されません。多くの azurehound list 操作はそこに表示されません。サービスエンドポイントへの読み取りを記録するのは、Diagnostic Settings 経由のデータプレーンロギングのみです。
- Defender XDR GraphApiAuditEvents (preview) は Graph コールやトークン識別子を露出する可能性がありますが、UserAgent が欠落していたり保持期間が短い場合があります。
Tip: 権限経路を列挙する際は、ユーザー、グループ、ロール、およびロール割り当てをダンプしてから BloodHound に取り込み、事前構築された Cypher クエリを使用して Global Administrator/Privileged Role Administrator やネストされたグループおよび RBAC 割り当て経由の推移的昇格を可視化してください。
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.
MicroBurst
MicroBurst includes functions and scripts that support Azure Services discovery, weak configuration auditing, and post exploitation actions such as credential dumping. It is intended to be used during penetration tests where Azure is in use.
Import-Module .\MicroBurst.psm1
Import-Module .\Get-AzureDomainInfo.ps1
Get-AzureDomainInfo -folder MicroBurst -Verbose
PowerZure
PowerZureは、Azure、EntraID、および関連リソースに対してreconnaissanceとexploitationの両方を実行できるフレームワークの必要性から作られました。
これはAz PowerShellモジュールを使用しているため、このツールがサポートする認証方式はすべて利用可能です。
# Login
Import-Module Az
Connect-AzAccount
# Clone and import PowerZure
git clone https://github.com/hausec/PowerZure
cd PowerZure
ipmo ./Powerzure.psd1
Invoke-Powerzure -h # Check all the options
# Info Gathering (read)
Get-AzureCurrentUser # Get current user
Get-AzureTarget # What can you access to
Get-AzureUser -All # Get all users
Get-AzureSQLDB -All # Get all SQL DBs
Get-AzureAppOwner # Owners of apps in Entra
Show-AzureStorageContent -All # List containers, shared and tables
Show-AzureKeyVaultContent -All # List all contents in key vaults
# Operational (write)
Set-AzureUserPassword -Password <password> -Username <username> # Change password
Set-AzureElevatedPrivileges # Get permissions from Global Administrator in EntraID to User Access Administrator in Azure RBAC.
New-AzureBackdoor -Username <username> -Password <password>
Invoke-AzureRunCommand -Command <command> -VMName <vmname>
[...]
GraphRunner
GraphRunnerは、Microsoft Graph APIとやり取りするためのpost-exploitationツールセットです。Microsoft Entra ID (Azure AD) アカウントからデータのreconnaissance、persistence、およびpillagingを行うための各種ツールを提供します。
#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
Get-GraphTokens
#This module gathers information about the tenant including the primary contact info, directory sync settings, and user settings such as if users have the ability to create apps, create groups, or consent to apps.
Invoke-GraphRecon -Tokens $tokens -PermissionEnum
#A module to dump conditional access policies from a tenant.
Invoke-GraphRecon -Tokens $tokens -PermissionEnum
#A module to dump conditional access policies from a tenant.
Invoke-DumpCAPS -Tokens $tokens -ResolveGuids
#This module helps identify malicious app registrations. It will dump a list of Azure app registrations from the tenant including permission scopes and users that have consented to the apps. Additionally, it will list external apps that are not owned by the current tenant or by Microsoft's main app tenant. This is a good way to find third-party external apps that users may have consented to.
Invoke-DumpApps -Tokens $tokens
#Gather the full list of users from the directory.
Get-AzureADUsers -Tokens $tokens -OutFile users.txt
#Create a list of security groups along with their members.
Get-SecurityGroups -AccessToken $tokens.access_token
#Gets groups that may be able to be modified by the current user
Get-UpdatableGroups -Tokens $tokens
#Finds dynamic groups and displays membership rules
Get-DynamicGroups -Tokens $tokens
#Gets a list of SharePoint site URLs visible to the current user
Get-SharePointSiteURLs -Tokens $tokens
#This module attempts to locate mailboxes in a tenant that have allowed other users to read them. By providing a userlist the module will attempt to access the inbox of each user and display if it was successful. The access token needs to be scoped to Mail.Read.Shared or Mail.ReadWrite.Shared for this to work.
Invoke-GraphOpenInboxFinder -Tokens $tokens -Userlist users.txt
#This module attempts to gather a tenant ID associated with a domain.
Get-TenantID -Domain
#Runs Invoke-GraphRecon, Get-AzureADUsers, Get-SecurityGroups, Invoke-DumpCAPS, Invoke-DumpApps, and then uses the default_detectors.json file to search with Invoke-SearchMailbox, Invoke-SearchSharePointAndOneDrive, and Invoke-SearchTeams.
Invoke-GraphRunner -Tokens $tokens
Stormspotter
Stormspotter は Azure サブスクリプション内のリソースの“attack graph”を作成します。これにより red teams と pentesters は tenant 内の attack surface と pivot の機会を可視化でき、defenders が incident response 作業を迅速に把握・優先付けできるようになります。
残念ながら、メンテナンスされていないようです。
# Start Backend
cd stormspotter\backend\
pipenv shell
python ssbackend.pyz
# Start Front-end
cd stormspotter\frontend\dist\spa\
quasar.cmd serve -p 9091 --history
# Run Stormcollector
cd stormspotter\stormcollector\
pipenv shell
az login -u test@corp.onmicrosoft.com -p Welcome2022!
python stormspotter\stormcollector\sscollector.pyz cli
# This will generate a .zip file to upload in the frontend (127.0.0.1:9091)
参考文献
- Cloud Discovery With AzureHound (Unit 42)
- AzureHound repository
- BloodHound repository
- AzureHound Community Edition Flags
- AzureHound constants/environments.go
- AzureHound client/storage_accounts.go
- AzureHound client/roles.go
Tip
AWSハッキングを学び、実践する:
HackTricks Training AWS Red Team Expert (ARTE)
GCPハッキングを学び、実践する:HackTricks Training GCP Red Team Expert (GRTE)
Azureハッキングを学び、実践する:
HackTricks Training Azure Red Team Expert (AzRTE)
HackTricksをサポートする
- サブスクリプションプランを確認してください!
- **💬 Discordグループまたはテレグラムグループに参加するか、Twitter 🐦 @hacktricks_liveをフォローしてください。
- HackTricksおよびHackTricks CloudのGitHubリポジトリにPRを提出してハッキングトリックを共有してください。
HackTricks Cloud

