skip to content

Collecting Reusable Secrets

Reusable authentication material sits in three places: a workstation's stores, the domain database, and whatever the directory issues on request. Interviewers ask which is cheapest to reach.

on this pageshow

explore

questions

12

What does a DCSync attack achieve, and why does it need no code on a domain controller?

level: juniorimportance: must knowfreq 55%

answer

  1. pretend to be a domain controller
  2. use replication, not malware
  3. no logon, no dropped file
  4. one request, every account's hash

basics

~20 s

DCSync abuses Active Directory replication: with the right permissions an attacker asks a domain controller to send accounts' long-term password hashes, just as a peer controller would. Nothing runs on the controller, so it resembles ordinary replication.

solid answer

~40 s

DCSync (ATT&CK `T1003.006`) has an attacker impersonate a domain controller and issue a normal directory-replication request (`IDL_DRSGetNCChanges`) asking a real controller to replicate accounts' secret attributes — their long-term password hashes. Replication is a legitimate controller-to-controller function, so no binary is dropped and nothing executes on the target; from the controller's point of view a peer asked for an update. Given the right permissions, a single request can pull hashes for one account or for every principal in the domain, including computer and service accounts. That is why it is the domain database's cheapest route: no malware, no logon to the controller, just a request over an interface the directory is built to answer.

go deeper

for a junior

Recall that DCSync steals password hashes by asking a domain controller to replicate them, that it needs permissions rather than malware, and that nothing runs on the controller.

for a middle

Be ready to explain the replication request itself — impersonating a DC and calling the directory-replication interface for secret attributes — and why that leaves no trace on the target host.

for a senior

Show you understand the scope: one request can dump the entire directory, including machine and service accounts, which is what makes the database the highest-value and quietest target.

for a principal

Frame it as the reason the privileged tier must be defined by who can reach the database at all, not by who can log on to a controller.

## The target Active Directory keeps every account's authentication material — password hashes and Kerberos long-term keys — in a database on each **domain controller** (DC), the servers that authenticate users and hold the directory. Controllers keep in step by **replication**: when one changes, it tells the others, and a peer can ask for the changed data. That machinery is the target. ## What DCSync does DCSync is a technique (MITRE ATT&CK `T1003.006`, *OS Credential Dumping: DCSync*) in which an attacker with sufficient rights **pretends to be a domain controller** and sends a legitimate replication request — the `IDL_DRSGetNCChanges` call in the directory replication service protocol — asking a real DC to hand over the secret attributes of one account or of the whole directory partition. The DC, seeing a request it is designed to answer, replies with the requested hashes. ## Why nothing runs on the controller The crucial property is that **no code executes on the DC and no one logs on to it**. The request comes from any domain-joined host over the replication RPC interface. There is no dropped file, no new process, no service on the controller — only network traffic that looks like one DC talking to another. This is what makes the database the quietest place to steal from at the host level: an attack on a workstation leaves something on that workstation, but DCSync leaves nothing on the machine it robs. ## What you get A single request can be scoped to one account or to the entire directory naming context. Replicating the whole directory returns current and historical hashes for **every principal**: ordinary users, computer (machine) accounts, service accounts, and the domain's most sensitive keys. One request, and the offline copy of the domain's secrets is complete. That is the difference in value between this and dumping a single host — a host yields whatever logged on there; the database yields everyone. ## The two routes to the same data There are two ways to reach the domain database. DCSync uses the *live* replication interface with the right permissions. The other route is *offline*: obtain a copy of the database file and the key that decrypts it, from a snapshot or backup, so that again nothing runs on the running controller. Both end at the same prize — every long-term key held at once. ## Why juniors are asked this It is the canonical demonstration that a domain's crown jewels can be taken by *using* the directory as designed rather than by breaking anything. Knowing that DCSync needs permissions, not malware, and that it targets the replication interface, is the entry point to everything else about protecting the domain database.

  • Does DCSync require you to log on to the domain controller itself?
    No. It is a remote request over the directory-replication RPC interface issued from any domain-joined host and aimed at the controller. You never need an interactive session, a shell, or code execution on the DC — only the network path and sufficient replication rights.
  • What accounts' secrets can a single DCSync request return?
    Anywhere from one to all of them. You can target a single account or replicate the whole directory naming context, which returns current and historical long-term hashes for every user, computer account, service account, and the domain's key accounts at once.

saying these in an interview costs you the question

  • Claims DCSync installs a rootkit or malware on the domain controller.
  • Says you must be logged into the DC console to run it.
  • Thinks DCSync can only target one account at a time.
  • Believes it exploits a software vulnerability rather than using replication as designed.

context

open as a page

Why doesn't full-disk encryption stop a signed-in user copying credential files off a laptop?

level: juniorimportance: must knowfreq 62%

basics

~10 s

Full-disk encryption protects a powered-off volume. Once the machine is unlocked and someone is signed in, the volume key is loaded and every read is decrypted transparently, so credential files are ordinary readable files.

open as a page

What makes an Active Directory account 'roastable', and what does roasting one actually hand an attacker?

level: juniorimportance: must knowfreq 58%

basics

~20 s

An account is roastable if it carries a Service Principal Name or has Kerberos pre-authentication disabled. Either lets any ordinary user request material sealed with the account's password-derived key, which the attacker then cracks offline to recover the cleartext password.

open as a page

Which directory rights permit DCSync, and why is 'only Domain Admins can do this' wrong?

level: middleimportance: must knowfreq 50%

basics

~20 s

Two extended rights over the domain object grant it: DS-Replication-Get-Changes and DS-Replication-Get-Changes-All. Domain Admins hold them by default, but the rights are delegable and often sit on directory-sync connectors and backup accounts nobody counts as privileged.

open as a page

A browser profile's saved logins and cookie store are copied to another machine — why are they inert?

level: middleimportance: should knowfreq 45%

basics

~20 s

The profile's secrets are sealed with a per-profile key that Windows DPAPI protects, and the DPAPI master key behind it is derived from the user's own logon password. Copied alone, the files decrypt to nothing.

open as a page

Why is a group-managed service account effectively immune to roasting while a human-set service password is cheap to crack?

level: middleimportance: should knowfreq 46%

basics

~20 s

Offline cracking cost scales with the password's keyspace. A group-managed service account uses a long, machine-generated random key whose keyspace is astronomically large; a short human-chosen password has a small keyspace a GPU rig exhausts in hours. The sealing algorithm only multiplies per-guess cost.

open as a page

How does a snapshot or backup of a virtualised domain controller yield every hash offline?

level: seniorimportance: should knowfreq 45%

basics

~20 s

The directory database file NTDS.dit and the SYSTEM registry hive both sit on a controller's disk. A VM snapshot or backup copies them without touching running processes; offline, the SYSTEM hive's boot key decrypts the hashes NTDS.dit stores. So backup or snapshot access equals replication rights.

open as a page

A departing contractor copies their laptop's credential stores — which artefacts are usable as-is?

level: seniorimportance: should knowfreq 52%

basics

~20 s

Rank by what each artefact still needs. Plaintext bearer material — a cloud credentials file, a passphrase-less private key, tokens in dotfiles — works immediately. Password-chained stores need the user's context. Cached domain verifiers only yield to offline guessing.

open as a page

Holding one student account in a domain with 400 service principal names, which accounts do you roast and which do you skip?

level: seniorimportance: should knowfreq 38%

basics

~20 s

Skip machine-keyed accounts — computer accounts and group-managed service accounts — because their random keys will not crack. Target human-owned service accounts: old, role-named, ideally privileged. Pre-authentication left off is an account-age fingerprint that flags a legacy, likely-weak password worth taking first.

open as a page

If backup and snapshot access equal domain-secret theft, how should you scope the privileged tier?

level: principalimportance: should knowfreq 38%

basics

~20 s

Define the privileged tier by capability, not title: every principal that can replicate the directory, back up a domain controller, or snapshot its VM can reconstruct all password hashes and is therefore tier-zero. Counting named admins undercounts the real privileged set.

open as a page

If the adversary is 'just a kid with one laptop', are your roastable service accounts safe?

level: principalimportance: should knowfreq 28%

basics

~20 s

You cannot answer from the adversary's size alone. Safety is each service password's keyspace against the compute a realistic adversary can rent — a weekend of cloud GPUs clears far more than one laptop — weighted by blast radius. The only structural fix is machine-generated keys, not a patch.

open as a page

Can cached domain logon verifiers taken from a laptop's SECURITY hive be replayed to the domain?

level: middleimportance: nice to knowfreq 38%

basics

~10 s

No. Cached domain logon verifiers exist only so a laptop can validate a logon while no domain controller is reachable. No authentication protocol accepts them, so the only route is slow offline password guessing.

open as a page