MSFTRecon is a specialized reconnaissance tool designed for red teamers and security professionals to map and analyze Microsoft 365 and Azure tenant infrastructures.

Its primary focus is on identifying potential security misconfigurations and attack vectors without requiring authentication, making it an invaluable asset for penetration testing and security assessments.

Key Features

  1. Comprehensive Enumeration:
    • MSFTRecon performs tenant-wide enumeration, uncovering details such as tenant names, IDs, federation information, Azure AD configurations, and authentication types.
    • It provides insights into cloud-only authentication setups, which can highlight vulnerabilities in cloud-based security.
  2. Red Team Applications:
    • Identity Attack Vectors: Identifies authentication methods, potential password spray opportunities, and SAML federation configurations.
    • Application Attack Surface: Discovers exposed enterprise applications, OAuth abuse opportunities, and phishing targets via admin consent endpoints.
    • Infrastructure Insights: Maps Azure services for lateral movement, identifies B2C configurations, and detects storage misconfigurations.
    • Security Awareness: Detects Microsoft Defender for Identity (MDI) presence, conditional access policies, and authentication requirements.
  3. Cloud-Specific Scans:
    • Supports scans tailored for government clouds (--gov) and China-specific Azure instances (--cn).

To install MSFTRecon:

bash# Clone the repository
git clone https://github.com/Arcanum-Sec/msftrecon.git
cd msftrecon

# Set up virtual environment
python3 -m venv venv
source venv/bin/activate

# Install dependencies
pip install -r requirements.txt
chmod +x msftrecon.py
  • Basic scan: ./msftrecon.py -d example.com
  • JSON output: ./msftrecon.py -d example.com -j
  • Government cloud scan: ./msftrecon.py -d example.gov --gov
  • China cloud scan: ./msftrecon.py -d example.cn --cn
text[+] Target Organization:
Tenant Name: Contoso
Tenant ID: 1234abcd-1234-abcd-1234-1234abcd1234

[+] Federation Information:
Namespace Type: Managed
Brand Name: Contoso
Cloud Instance: microsoftonline.com

[+] Identity Insights:
* Cloud-only authentication detected.

MSFTRecon is intended strictly for legal security assessments. Users must obtain proper authorization before using this tool. The authors disclaim responsibility for misuse or damages caused by its application.

By providing detailed insights into Microsoft 365 and Azure infrastructures, MSFTRecon empowers security professionals to proactively identify vulnerabilities and enhance organizational defenses.

LEAVE A REPLY

Please enter your comment!
Please enter your name here