Entra云渗透测试
noahfranklin2026-10-25查看 870复制 132
在测试 Microsoft Entra ID(Azure AD)和 Microsoft 365 身份安全性时使用——包括租户/用户枚举、认证攻击(密码喷洒、MFA 缺口、旧版认证)、条件访问绕过、OAuth/应用同意滥用、特权角色和 Graph API 滥用,以及混合 AD 到云(和云到 AD)的攻击路径。映射到 MITRE ATT&CK,包含检测和修复建议。仅限已授权的参与场景。
📘如何使用这个技能
- 1复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
- 2打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
- 3粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
- 4直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景
💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。
SKILL.md3352 chars
--- name: entra-cloud-pentest description: "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." --- # 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). - **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 prime `vuln-chaining` territory. - **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](https://github.com/noahfranklin/gideon) security suite · MIT License · Original work.</sub>