m365-entra-attack

Execute Microsoft 365/Entra ID credential attacks and Conditional Access bypass.

3|Updated Nov 12, 2025
One-click install
npx skills add https://github.com/cmndcntrlcyber/rtpi --skill m365-entra-attack-cmndcntrlcyber
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: m365-entra-attack
Source: https://github.com/cmndcntrlcyber/rtpi/tree/main/knowledge_seed/bug_hunter_skills/m365-entra-attack
Command: npx skills add https://github.com/cmndcntrlcyber/rtpi --skill m365-entra-attack-cmndcntrlcyber

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires msftrecon, o365spray, playwright, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a comprehensive attack chain for red team operations against Microsoft 365/Entra ID, enabling targeted credential attacks, password spraying, user enumeration, and Conditional Access bypass exploration.

Core Features & Use Cases

  • Credential Attack: Targets M365/Entra credential attacks and password spraying.
  • User Enumeration: Enumerates users and identifies user enumeration vectors.
  • Conditional Access Bypass: Explains and demonstrates bypass options for Conditional Access policies.
  • Smart Lockout Detection: Detects Smart Lockout conditions and provides guidance on mitigation.
  • Active-Attacker Detection: Identifies active attackers through lockout differential analysis.

Quick Start

Trigger the skill to start the attack chain on a target tenant by providing the necessary domain and credentials.

Frequently Asked Questions about m365-entra-attack

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform user enumeration and password spraying against Microsoft 365 and Entra ID?

User enumeration and password spraying against Microsoft 365 and Entra ID are performed using a red team attack chain that leverages msftrecon for tenant discovery and o365spray for credential attacks. It requires Python and playwright to execute.

What is the best way to bypass Conditional Access policies in Entra ID during a red team engagement?

Bypassing Conditional Access policies in Entra ID involves exploring specific bypass options within a structured red team attack chain. The skill demonstrates these techniques alongside credential attacks to test policy enforcement.

How does Smart Lockout detection work for Microsoft 365 credential attacks?

Smart Lockout detection for Microsoft 365 works by analyzing AADSTS codes returned during authentication attempts. This analysis identifies lockout conditions and provides mitigation guidance to avoid account lockouts during password spraying.

Do I need Python and playwright to run Entra ID red team attack scripts?

Yes, Python, playwright, msftrecon, and o365spray are required dependencies to run the Entra ID red team attack scripts. These tools enable tenant discovery, user enumeration, and automated credential attack execution.

Can I detect active attackers targeting Microsoft 365 credentials using lockout differential analysis?

Active attackers targeting Microsoft 365 credentials can be identified through lockout differential analysis. This technique detects ongoing credential attacks by comparing lockout states and patterns within the Entra ID tenant.

What limitations should I consider when using o365spray for Entra ID user enumeration?

When using o365spray for Entra ID user enumeration, limitations include triggering Smart Lockout conditions if thresholds are exceeded. Analyzing AADSTS codes is necessary to detect lockouts and adjust attack timing to avoid detection.

Related Skills