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

Playwright-MCP : A Powerful Tool For Browser Automation

Playwright-MCP (Model Context Protocol) is a cutting-edge tool designed to bridge the gap between AI…

2 weeks ago

JBDev : A Tool For Jailbreak And TrollStore Development

JBDev is a specialized development tool designed to streamline the creation and debugging of jailbreak…

2 weeks ago

Kereva LLM Code Scanner : A Revolutionary Tool For Python Applications Using LLMs

The Kereva LLM Code Scanner is an innovative static analysis tool tailored for Python applications…

2 weeks ago

Nuclei-Templates-Labs : A Hands-On Security Testing Playground

Nuclei-Templates-Labs is a dynamic and comprehensive repository designed for security researchers, learners, and organizations to…

2 weeks ago

SSH-Stealer : The Stealthy Threat Of Advanced Credential Theft

SSH-Stealer and RunAs-Stealer are malicious tools designed to stealthily harvest SSH credentials, enabling attackers to…

2 weeks ago

ollvm-unflattener : A Tool For Reversing Control Flow Flattening In OLLVM

Control flow flattening is a common obfuscation technique used by OLLVM (Obfuscator-LLVM) to transform executable…

2 weeks ago