entra-cloud-pentest
Skill2 starsChanged 47 days agoMITView on GitHub
Use when testing Microsoft Entra ID (Azure AD) and Microsoft 365 identity security — tenant/user enumeration, authentication attacks (password spray, MFA gaps, legacy auth), conditional-access bypass, OAuth/app-consent abuse, privileged-role and Graph API abuse, and hybrid AD-to-cloud (and cloud-to-AD) attack paths. Maps to MITRE ATT&CK, with detection and remediation. Authorized engagements only.
In this repository25 other files it gives its agents.
- active-directory-pentestSkill
- agentic-ai-securitySkill
- api-secure-designSkill
- api-security-auditSkill
- cicd-supplychain-securitySkill
- cloud-pentestSkill
- container-k8s-pentestSkill
- detection-engineeringSkill
- iot-embedded-pentestSkill
- llm-app-defenseSkill
- llm-redteamSkill
- mobile-pentestSkill
- network-device-pentestSkill
- network-pentestSkill
- post-exploitationSkill
- privilege-escalationSkill
- recon-osintSkill
- red-team-opsSkill
- report-writingSkill
- social-engineeringSkill
- source-code-reviewSkill
- threat-modelSkill
- vuln-chainingSkill
- web-app-pentestSkill
- wireless-pentestSkill
The file
Files
Entra ID (Azure AD) & M365 Identity Testing
Assessment of cloud identity — the modern crown jewels. Covers Entra ID, M365, and hybrid attack paths bridging on-prem AD and the cloud. Mapped to MITRE ATT&CK.
0. Authorization gate
- Written authorization from the tenant owner (cloud provider ToS also apply).
- Scope: tenant, in-scope identities/apps, allowed auth testing (spray limits).
- Coordination with the SOC (identity attacks generate alerts).
1. Enumeration
- Tenant existence/details, federation/managed domains, user enumeration via auth responses, guest accounts.
- Enumerate roles, service principals, enterprise apps, app registrations, and API permissions.
2. Authentication attacks
- Password spray (lockout- and lockout-alert-aware), against exposed auth endpoints.
- Legacy auth protocols that bypass modern controls / MFA.
- MFA gaps & fatigue: accounts without MFA, weak methods, push-fatigue susceptibility (test per RoE).
- Device-code & consent phishing: OAuth device-code flow abuse and illicit consent as MFA-aware phishing paths (test per RoE; coordinate with
social-engineering). - Token / Primary Refresh Token (PRT) theft & replay: stolen tokens that sidestep re-authentication — assess token-protection posture (conditional-access token binding, sign-in risk).
- Fix: disable legacy auth, enforce phishing-resistant MFA, smart lockout, block-legacy conditional access.
3. Conditional Access (CA) review & bypass
- Enumerate CA policies; look for gaps: excluded apps/users, device/location loopholes, report-only policies, missing coverage.
- Fix: close exclusions, require compliant devices + MFA broadly, remove report-only gaps.
4. OAuth / application & consent abuse
- Illicit consent grants, over-privileged app registrations, dangerous Graph permissions, credential/secret exposure on service principals.
- Fix: restrict user consent, review app permissions (least privilege), monitor consent grants, rotate SP secrets.
5. Privilege escalation & Graph abuse
- Escalation via role assignments, service principals with high privilege, group-based role grants, and Microsoft Graph API abuse.
- Fix: PIM (just-in-time roles), least-privilege role model, monitor privileged role/SP changes.
6. Hybrid attack paths (the high-value part)
- On-prem → cloud: connect-sync account abuse, Seamless SSO/PRT abuse, federation (token-signing) trust abuse.
- Cloud → on-prem: management endpoints (Intune/config) to run code on enrolled/hybrid devices.
- Correlate with
active-directory-pentest— hybrid paths are primevuln-chainingterritory. - Fix: protect sync/federation servers as tier-0, restrict privileged identities, segment management planes.
7. Tooling
AADInternals, ROADtools/roadrecon, GraphRunner, MSOLSpray (spray, lockout-aware), Microsoft Graph queries. Follow RoE and provider ToS.
8. Reporting
Present as identity attack paths with detection guidance; emphasize MFA/CA hardening and tier-0 protection of sync/federation. Checklist: references/entra-checklist.md.
<sub>© 2026 noahfranklin · Part of the Gideon security suite · MIT License · Original work.</sub>
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

