# Azure Hybrid Lateral

Azure Cloud 到本地 AD 的横向移动方法论。当已获取 Azure/Entra ID 权限并需要穿越到本地 Active Directory 环境、发现目标使用...

- Repository: https://github.com/wgpsec/AboutSecurity (1833 stars)
- Category: AI and agents
- License: see repository
- Last updated: 2026-10-24
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add wgpsec/AboutSecurity --skill azure-hybrid-lateral -g -a claude-code -y`
Codex: `npx skills add wgpsec/AboutSecurity --skill azure-hybrid-lateral -g -a codex -y`
Cursor: `npx skills add wgpsec/AboutSecurity --skill azure-hybrid-lateral -g -a cursor -y`
Gemini CLI: `npx skills add wgpsec/AboutSecurity --skill azure-hybrid-lateral -g -a gemini-cli -y`

## Description

Azure Cloud 到本地 AD 的横向移动方法论。当已获取 Azure/Entra ID 权限并需要穿越到本地 Active Directory 环境、发现目标使用 Azure AD Connect/Cloud Sync/PTA/Federation 等混合身份架构、或需要利用 PRT/Certificate/Cookie 等凭据进行 Cloud-to-OnPrem 横向时使用。覆盖 14 种横向技术：Pass the PRT/Certificate/Cookie、Cloud Kerberos Trust、Connect Sync/Cloud Sync 凭据提取、PTA Agent 后门、Federation Token 伪造、Seamless SSO 银票、Exchange Hybrid 模拟、Arc GPO 部署脚本注入、本地云凭据提取

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Azure 混合身份横向移动方法论（Cloud <-> On-Prem）

在现代企业环境中，Azure/Entra ID 与本地 Active Directory 之间的混合身份架构极为普遍。这种架构在提供便利的同时，也创造了独特的攻击面, , 攻击者一旦控制了云端身份（Entra ID），便可借助同步服务、信任关系和凭据桥接机制穿越到本地 AD 环境，反之亦然。Cloud-to-OnPrem 横向移动是红队评估中最关键的攻击阶段之一，也是防御方最容易忽视的盲区。

**核心要点**：混合身份架构中的每一个同步组件（Connect Sync、Cloud Sync、PTA Agent、Federation）都是潜在的横向移动桥梁。攻击者需要首先识别目标使用的混合身份架构类型，然后选择对应的横向技术。

## 深入参考

识别到具体攻击集群后，加载对应参考文档获取完整技术细节：

- 身份同步类攻击（Connect Sync/Cloud Sync/PTA/Federation/Domain Services/Arc） → 读 [references/identity-sync-attacks.md](references/identity-sync-attacks.md)
- 令牌与凭据类攻击（PRT/Certificate/Cookie/Seamless SSO/Cloud Kerberos Trust/Exchange Hybrid） → 读 [references/token-credential-attacks.md](references/token-credential-attacks.md)

## 横向移动决策树

获取云端或本地权限后，按以下决策树选择可用的横向技术：

The rest: https://github.com/wgpsec/AboutSecurity/blob/HEAD/skills/cloud/azure-hybrid-lateral/SKILL.md
