Answers from the documentation; checking which model is on duty
Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
Detect DCSync attacks (MITRE T1003.006) where adversaries abuse Active Directory replication privileges to extract password hashes, by auditing Event ID 4662 for the DS-Replication-Get-Changes GUIDs…
Imported from mukul975/anthropic-cybersecurity-skills (skills/detecting-dcsync-attack-in-active-directory/SKILL.md). Install upstream with npx skills add mukul975/anthropic-cybersecurity-skills --skill detecting-dcsync-attack-in-active-directory. Copyright stays with the author (Apache-2.0).
Detecting DCSync Attack in Active Directory
When to Use
When hunting for credential theft in Active Directory environments
After compromise of accounts with Replicating Directory Changes permissions
When investigating suspected use of Mimikatz or Impacket secretsdump
During incident response involving lateral movement with domain admin credentials
When auditing AD replication permissions as part of security hardening
Prerequisites
Windows Security Event Logs with Event ID 4662 (Object Access) enabled
Advanced Audit Policy: Audit Directory Service Access enabled
Domain Controller event forwarding to SIEM
Knowledge of legitimate domain controller hostnames and IPs
Directory Service Access auditing with SACL on domain object
Workflow
Identify Legitimate Replication Sources: Document all domain controllers in the environment by hostname, IP, and computer account. Only these should perform directory replication.
Enable Required Auditing: Configure Advanced Audit Policy to capture Event ID 4662 on domain controllers with specific GUID monitoring for replication rights.
Monitor Replication Rights Access: Track access to three critical GUIDs -- DS-Replication-Get-Changes (1131f6aa-9c07-11d1-f79f-00c04fc2dcd2), DS-Replication-Get-Changes-All (1131f6ad-9c07-11d1-f79f-00c04fc2dcd2), and DS-Replication-Get-Changes-In-Filtered-Set (89e95b76-444d-4c62-991a-0facbeda640c).
Detect Non-DC Replication Requests: Alert when any account NOT associated with a domain controller requests replication rights.
Correlate with Network Traffic: DCSync generates replication traffic (MS-DRSR/RPC) from the attacker's machine to the DC. Monitor for DrsGetNCChanges RPC calls from non-DC IP addresses.
Investigate Source Context: Examine the process, user account, and machine originating the replication request.
Check for Credential Abuse: After DCSync detection, audit for subsequent use of extracted hashes (pass-the-hash, golden ticket creation).
Key Concepts
Concept
Description
T1003.006
OS Credential Dumping: DCSync
DCSync
Mimicking domain controller replication to extract credentials
DsGetNCChanges
RPC function used to request AD replication data
DS-Replication-Get-Changes
AD permission required (GUID: 1131f6aa-...)
DS-Replication-Get-Changes-All
Permission including confidential attributes (GUID: 1131f6ad-...)
MS-DRSR
Microsoft Directory Replication Service Remote Protocol
KRBTGT Hash
Key target of DCSync enabling Golden Ticket attacks
Event ID 4662
Directory service object access audit event
Tools & Systems
Tool
Purpose
Mimikatz (lsadump::dcsync)
Primary DCSync attack tool
Impacket secretsdump.py
Python-based DCSync implementation
DSInternals
PowerShell module for AD replication
BloodHound
Map accounts with replication rights
Splunk / Elastic
SIEM correlation of 4662 events
Microsoft Defender for Identity
Native DCSync detection
CrowdStrike Falcon
EDR-based DCSync detection
Detection Queries
Splunk -- DCSync Detection via Event 4662
index=wineventlog EventCode=4662| where Properties IN ("*1131f6aa-9c07-11d1-f79f-00c04fc2dcd2*", "*1131f6ad-9c07-11d1-f79f-00c04fc2dcd2*", "*89e95b76-444d-4c62-991a-0facbeda640c*")| where NOT match(SubjectUserName, ".*\\$$")| where NOT SubjectUserName IN ("known_svc_account1", "known_svc_account2")| stats count values(Properties) as ReplicationRights by SubjectUserName SubjectDomainName Computer| where count > 0| table SubjectUserName SubjectDomainName Computer count ReplicationRights
KQL -- Microsoft Sentinel DCSync Detection
SecurityEvent| where EventID == 4662| where Properties has "1131f6ad-9c07-11d1-f79f-00c04fc2dcd2" or Properties has "1131f6aa-9c07-11d1-f79f-00c04fc2dcd2"| where SubjectUserName !endswith "$"| where SubjectUserName !in ("AzureADConnect", "MSOL_*")| project TimeGenerated, SubjectUserName, SubjectDomainName, Computer, Properties| sort by TimeGenerated desc
Install detecting-dcsync-attack-in-active-directory and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.
When a provider is down or over quota the request moves on; the trace says it did.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slotcurl-s-X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.
{
"ocm": "1",
"id": "mukul975-anthropic-cybersecurity-skills-detecting-dcsync-2e912f",
"kind": "skill",
"name": "detecting-dcsync-attack-in-active-directory",
"description": "Detect DCSync attacks (MITRE T1003.006) where adversaries abuse Active Directory replication privileges to extract password hashes, by auditing Event ID 4662 for the DS-Replication-Get-Changes GUIDs and flagging non-domain-controller accounts issuing DsGetNCChanges RPC calls. Use when hunting for credential theft via Mimikatz lsadump::dcsync or Impacket secretsdump, investigating lateral movement with domain admin credentials, or auditing AD replication permissions.",
"publisher": "mukul975",
"version": "1.0.0",
"capabilities": {
"domains": [
"observability",
"math"
],
"tags": [
"skill-md",
"threat-hunting",
"active-directory",
"dcsync",
"credential-theft",
"mitre-t1003-006",
"mimikatz",
"kerberos",
"skills-sh"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Detect DCSync attacks (MITRE T1003.006) where adversaries abuse Active Directory replication privileges to extract password hashes, by auditing Event ID 4662 for the DS-Replication-Get-Changes GUIDs and flagging non-domain-controller accounts issuing DsGetNCChanges RPC calls. Use when hunting for credential theft via Mimikatz lsadump::dcsync or Impacket secretsdump, investigating lateral movement with domain admin credentials, or auditing AD replication permissions."
],
"primary": false,
"metadata": {
"source": {
"provider": "skills.sh",
"repository": "https://github.com/mukul975/anthropic-cybersecurity-skills",
"path": "skills/detecting-dcsync-attack-in-active-directory/SKILL.md",
"ref": "HEAD",
"url": "https://github.com/mukul975/anthropic-cybersecurity-skills/blob/HEAD/skills/detecting-dcsync-attack-in-active-directory/SKILL.md",
"key": "mukul975/anthropic-cybersecurity-skills/skills/detecting-dcsync-attack-in-active-directory/SKILL.md"
},
"license": "Apache-2.0"
},
"instructions": "# Detecting DCSync Attack in Active Directory\n\n## When to Use\n\n- When hunting for credential theft in Active Directory environments\n- After compromise of accounts with Replicating Directory Changes permissions\n- When investigating suspected use of Mimikatz or Impacket secretsdump\n- During incident response involving lateral movement with domain admin credentials\n- When auditing AD replication permissions as part of security hardening\n\n## Prerequisites\n\n- Windows Security Event Logs with Event ID 4662 (Object Access) enabled\n- Advanced Audit Policy: Audit Directory Service Access enabled\n- Domain Controller event forwarding to SIEM\n- Knowledge of legitimate domain controller hostnames and IPs\n- Directory Service Access auditing with SACL on domain object\n\n## Workflow\n\n1. **Identify Legitimate Replication Sources**: Document all domain controllers in the environment by hostname, IP, and computer account. Only these should perform directory replication.\n2. **Enable Required Auditing**: Configure Advanced Audit Policy to capture Event ID 4662 on domain controllers with specific GUID monitoring for replication rights.\n3. **Monitor Replication Rights Access**: Track access to three critical GUIDs -- DS-Replication-Get-Changes (1131f6aa-9c07-11d1-f79f-00c04fc2dcd2), DS-Replication-Get-Changes-All (1131f6ad-9c07-11d1-f79f-00c04fc2dcd2), and DS-Replication-Get-Changes-In-Filtered-Set (89e95b76-444d-4c62-991a-0facbeda640c).\n4. **Detect Non-DC Replication Requests**: Alert when any account NOT associated with a domain controller requests replication rights.\n5. **Correlate with Network Traffic**: DCSync generates replication traffic (MS-DRSR/RPC) from the attacker's machine to the DC. Monitor for DrsGetNCChanges RPC calls from non-DC IP addresses.\n6. **Investigate Source Context**: Examine the process, user account, and machine originating the replication request.\n7. **Check for Credential Abuse**: After DCSync detection, audit for subsequent use of extracted hashes (pass-the-hash, golden ticket creation).\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| T1003.006 | OS Credential Dumping: DCSync |\n| DCSync | Mimicking domain controller replication to extract credentials |\n| DsGetNCChanges | RPC function used to request AD replication data |\n| DS-Replication-Get-Changes | AD permission required (GUID: 1131f6aa-...) |\n| DS-Replication-Get-Changes-All | Permission including confidential attributes (GUID: 1131f6ad-...) |\n| MS-DRSR | Microsoft Directory Replication Service Remote Protocol |\n| KRBTGT Hash | Key target of DCSync enabling Golden Ticket attacks |\n| Event ID 4662 | Directory service object access audit event |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| Mimikatz (lsadump::dcsync) | Primary DCSync attack tool |\n| Impacket secretsdump.py | Python-based DCSync implementation |\n| DSInternals | PowerShell module for AD replication |\n| BloodHound | Map accounts with replication rights |\n| Splunk / Elastic | SIEM correlation of 4662 events |\n| Microsoft Defender for Identity | Native DCSync detection |\n| CrowdStrike Falcon | EDR-based DCSync detection |\n\n## Detection Queries\n\n### Splunk -- DCSync Detection via Event 4662\n```spl\nindex=wineventlog EventCode=4662\n| where Properties IN (\"*1131f6aa-9c07-11d1-f79f-00c04fc2dcd2*\",\n \"*1131f6ad-9c07-11d1-f79f-00c04fc2dcd2*\",\n \"*89e95b76-444d-4c62-991a-0facbeda640c*\")\n| where NOT match(SubjectUserName, \".*\\\\$$\")\n| where NOT SubjectUserName IN (\"known_svc_account1\", \"known_svc_account2\")\n| stats count values(Properties) as ReplicationRights by SubjectUserName SubjectDomainName Computer\n| where count > 0\n| table SubjectUserName SubjectDomainName Computer count ReplicationRights\n```\n\n### KQL -- Microsoft Sentinel DCSync Detection\n```kql\nSecurityEvent\n| where EventID == 4662\n| where Properties has \"1131f6ad-9c07-11d1-f79f-00c04fc2dcd2\"\n or Properties has \"1131f6aa-9c07-11d1-f79f-00c04fc2dcd2\"\n| where SubjectUserName !endswith \"$\"\n| where SubjectUserName !in (\"AzureADConnect\", \"MSOL_*\")\n| project TimeGenerated, SubjectUserName, SubjectDomainName, Computer, Properties\n| sort by TimeGenerated desc\n```\n\n### Sigma Rule -- DCSync Activity\n```yaml\ntitle: DCSync Activity Detected - Non-DC Replication Request\nstatus: stable\nlogsource:\n product: windows\n service: security\ndetection:\n selection:\n EventID: 4662\n Properties|contains:\n - '1131f6aa-9c07-11d1-f79f-00c04fc2dcd2'\n - '1131f6ad-9c07-11d1-f79f-00c04fc2dcd2'\n filter_dc:\n SubjectUserName|endswith: '$'\n condition: selection and not filter_dc\nlevel: critical\ntags:\n - attack.credential_access\n - attack.t1003.006\n```\n\n## Common Scenarios\n\n1. **Mimikatz DCSync**: Attacker with Domain Admin privileges runs `lsadump::dcsync /user:krbtgt` to extract KRBTGT hash for Golden Ticket creation.\n2. **Impacket secretsdump**: Remote DCSync via `secretsdump.py domain/user:password@dc-ip` extracting all domain hashes.\n3. **Delegated Replication Rights**: Attacker grants themselves Replicating Directory Changes rights via ACL modification before performing DCSync.\n4. **Azure AD Connect Abuse**: Compromising the Azure AD Connect service account which has legitimate replication rights.\n5. **DSInternals PowerShell**: Using `Get-ADReplAccount` cmdlet to replicate specific account credentials.\n\n## Output Format\n\n```\nHunt ID: TH-DCSYNC-[DATE]-[SEQ]\nAlert Severity: Critical\nSource Account: [Account requesting replication]\nSource Machine: [Hostname/IP of requestor]\nTarget DC: [Domain controller receiving request]\nReplication Rights: [GUIDs accessed]\nTimestamp: [Event time]\nLegitimate DC: [Yes/No]\nKnown Service Account: [Yes/No]\nRisk Assessment: [Critical - non-DC replication detected]\n```",
"cost": {
"context_tokens": 1437
}
}
Fetch it by URL: GET /api/v1/registry/mukul975-anthropic-cybersecurity-skills-detecting-dcsync-2e912f/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.