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

Comments in Bash Scripts

What Are Bash Comments? In Bash scripting, comments are notes in your code that the…

3 hours ago

Shebang (#!) in Bash Script

When you write a Bash script in Linux, you want it to run correctly every…

23 hours ago

Bash String Concatenation – Bash Scripting

Introduction If you’re new to Bash scripting, one of the first skills you’ll need is…

1 day ago

Learn Bash Scripting: How to Create and Run Shell Scripts for Beginners

What is Bash Scripting? Bash scripting allows you to save multiple Linux commands in a file and…

2 days ago

Bash if…else Statement – Bash Scripting

When it comes to automating tasks on Linux, Bash scripting is an essential skill for both beginners…

2 days ago

Bash Functions Explained: Syntax, Examples, and Best Practices

Learn how to create and use Bash functions with this complete tutorial. Includes syntax, arguments,…

4 days ago