Hacking Tools

MSFTRecon : A Powerful Reconnaissance Tool For Microsoft 365 And Azure

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.

Varshini

Varshini is a Cyber Security expert in Threat Analysis, Vulnerability Assessment, and Research. Passionate about staying ahead of emerging Threats and Technologies.

Recent Posts

SpyAI : Intelligent Malware With Advanced Capabilities

SpyAI is a sophisticated form of malware that leverages advanced technologies to capture and analyze…

3 days ago

Proxmark3 : The Ultimate Tool For RFID Security And Analysis

The Proxmark3 is a versatile, open-source tool designed for radio-frequency identification (RFID) security analysis, research,…

3 days ago

Awesome Solana Security : Enhancing Program Development

The "Awesome Solana Security" collection is a comprehensive resource designed to help developers build more…

3 days ago

IngressNightmare-POCs : Understanding The Vulnerability Exploitation Flow

The "IngressNightmare" vulnerabilities, disclosed in March 2025, represent a critical set of security issues affecting…

3 days ago

AdaptixC2 : Enhancing Penetration Testing With Advanced Framework Capabilities

AdaptixC2 is an advanced post-exploitation and adversarial emulation framework designed specifically for penetration testers. It…

3 days ago

Bincrypter : Enhancing Linux Binary Security through Runtime Encryption And Obfuscation

Bincrypter is a powerful Linux binary runtime crypter written in BASH. It is designed to…

3 days ago