
DNS 기반 서브도메인 열거 도구로, 순열 및 해석 기법을 통해 Azure 서비스(App Services, Storage Accounts, Databases, Key Vaults, CDN 엔드포인트)를 프로빙합니다.
AzSubEnum은 Azure 서비스에 특화된 서브도메인 열거 도구입니다. 이 도구는 다양한 Azure 서비스와 연관된 서브도메인을 꼼꼼하게 검색하고 식별하도록 설계되었습니다. 다양한 기법과 쿼리의 조합을 통해 AzSubEnum은 Azure 도메인 구조를 파고들어, 다양한 Azure 서비스와 관련된 서브도메인을 체계적으로 탐색하고 수집합니다.
AzSubEnum은 DNS 확인 기법과 체계적인 순열(permutation) 방법을 활용하여 Azure App Services, Storage Accounts, Azure Databases(MSSQL, Cosmos DB, Redis 포함), Key Vaults, CDN, Email, SharePoint, Azure Container Registry 등과 같은 Azure 서비스와 연관된 서브도메인을 드러냅니다. 그 기능은 다양한 Azure 서비스 도메인을 포괄적으로 스캔하여 연관된 서브도메인을 식별하는 데까지 확장됩니다.
이 도구를 사용하면 사용자는 Azure 환경 내에서 철저한 서브도메인 열거를 수행할 수 있으며, 보안 전문가, 연구자, 관리자가 Azure 서비스의 광범위한 환경과 그에 대응하는 서브도메인에 대한 통찰을 얻도록 돕습니다.
Azure AD 익스플로잇에 대한 학습 과정에서, NetSPI의 Azure 서브도메인 도구인 Invoke-EnumerateAzureSubDomains가 제 Debian PowerShell에서 실행되지 않는다는 것을 발견했습니다. 그 결과, 저는 그 도구를 Python으로 조잡하게 구현했습니다.
➜ AzSubEnum git:(main) ✗ python3 azsubenum.py --help
usage: azsubenum.py [-h] -b BASE [-v] [-t THREADS] [-p PERMUTATIONS]
[--blobsenum] [-bw BLOB_WORDLIST] [-bt BLOB_THREADS]
Azure Subdomain Enumeration and Blob Container Access Checker
options:
-h, --help show this help message and exit
-b BASE, --base BASE Base name to use
-v, --verbose Show verbose output
-t THREADS, --threads THREADS
Number of threads for concurrent execution
-p PERMUTATIONS, --permutations PERMUTATIONS
File containing permutations
--blobsenum Perform blob container enumeration
-bw BLOB_WORDLIST, --blob-wordlist BLOB_WORDLIST
Path to a custom wordlist file for blob container
enumeration
-bt BLOB_THREADS, --blob-threads BLOB_THREADS
Number of threads to use for blob container
enumeration
기본 열거:
python3 azsubenum.py -b retailcorp --threads 10
순열 워드리스트 사용:
python3 azsubenum.py -b retailcorp --threads 10 --permutations permutations.txt
상세 출력 사용:
python3 azsubenum.py -b retailcorp --threads 10 --permutations permutations.txt --verbose
Blob 컨테이너 열거:
python3 azsubenum.py -b retailcorp --threads 10 --blobsenum
python3 azsubenum.py -b retailcorp --threads 10 --blobsenum -bt 10
python3 azsubenum.py -b retailcorp --threads 10 --blobsenum --blob-wordlist custom_wordlist.txt --blob-threads 10

이 도구를 개선할 아이디어가 있으신가요? 함께 기여해요!
BSD-3-Clause. 저작권 고지를 유지하는 조건으로 자유롭게 사용, 수정, 재배포(상업적 이용 포함)할 수 있습니다. LICENSE를 참조하세요. NetSPI/MicroBurst(BSD-3-Clause)를 기반으로 합니다.
이 도구에 포함된 자료와 관련된 모든 행위 및 활동은 전적으로 사용자의 책임입니다. 이 도구의 정보를 오용하면 해당 당사자에게 형사 고발이 제기될 수 있습니다.