# DC Sync

## Introduction

In Active Directory, domain controllers **replicate** data to stay synchronized, using the **DRS Remote Protocol** to request updates like user account changes.&#x20;

**DC Sync attack** exploits this process by impersonating a domain controller and **replicating** sensitive information, such as **password hashes**.

In order to perform DC Sync the following privileges are required:

* `DS-Replication-Get-Changes`
* `DS-Replication-Get-Changes-All`

These privileges often granted to **Domain Admins** or **Enterprise Admins.**

**DC Sync** attack allows the attacker to gain further access and launch attacks like **Golden Tickets**.

## Performing the attack

### Mimikatz

```
lsadump::dcsync /user:<user>
```

### Impacket

{% code overflow="wrap" %}

```bash
impacket-secretsdump <domain>/<username>:"<password>"@<ip_address>
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dudisamarel.gitbook.io/oscp-notes/windows/authentication-attacks/dc-sync.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
