Hacker Directory — Understand what you hack.Hacker Directory — Understand what you hack.
Continue learning
TR
Contents15 chapters · 82 lessons
LESSON 10.03DERİN TEKNİK İNCELEME

FSMO roles: Understanding their special tasks without confusing them with a single “main DC”

FSMO roles do not make Active Directory single-master. Ordinary directory writes remain multi-master, while specific operations rely on a designated DC: Schema Master and Domain Naming Master at forest scope; RID Master, PDC Emulator and Infrastructure Master at domain scope. Losing a role holder does not stop the entire domain at once. The effect depends on the operation and the duration of the outage.

1. Core mechanism

This lesson explains the scope of the five operations-master roles, the operations they coordinate, and the different recovery decisions behind transfer and seizure. A role holder is not a universal primary DC.

Interfaces and specifications

  • Schema Master: coordinates forest-wide schema changes.
  • Domain Naming Master: coordinates adding or removing domains and application partitions at forest scope.
  • RID Master: allocates RID pools to DCs in each domain.
  • PDC Emulator: has specific responsibilities for password-change priority, account lockout coordination and the domain time hierarchy.
  • Infrastructure Master: updates cross-domain object references; whether this work is needed depends on GC placement and the Recycle Bin feature.
  • fSMORoleOwner: stores the role holder’s NTDS Settings DN on the relevant directory object.

Five roles, two scopes

There is one Schema Master and one Domain Naming Master per forest. RID Master, PDC Emulator and Infrastructure Master exist separately in each domain. A forest with several domains therefore has the two forest roles plus three roles for each domain.

The first forest-root DC can initially hold all the roles. This does not make it a permanent main DC. Planned transfers can move the roles to other writable DCs.

Where should the Infrastructure Master run?

In a multi-domain forest where only some DCs in a domain are GCs, place the Infrastructure Master on a non-GC DC. A GC holds partial replicas of forest objects, so an Infrastructure Master on a GC does not identify cross-domain references needing updates in the same way. This placement restriction does not apply when all DCs in the domain are GCs or the forest has a single domain.

When the AD Recycle Bin optional feature is enabled, each DC updates its own cross-domain references. Current Microsoft guidance says this leaves no tasks associated with the Infrastructure Master role. The role still has an owner: not needing this work in that configuration does not remove the role or fSMORoleOwner.

A role outage has role-specific effects

If the Schema Master is unavailable, ordinary authentication and most directory writes can continue, but new schema changes cannot be made. During a temporary RID Master outage, DCs can create principals from their existing RID pools. New SID allocation is affected as those pools run out.

A PDC Emulator outage can affect password-change convergence, lockout handling and the time hierarchy. Identify the operation that depends on the role rather than describing every outage as a failed domain.

Transfer and seizure are different recovery decisions

Transfer is a planned handover with a reachable, cooperative current owner. Seizure is a disaster-recovery decision made when the former owner will not return.

Bringing the former owner back online after seizing the Schema Master, Domain Naming Master or RID Master can create conflicting ownership and inconsistent operations. Reusing the former DC requires a metadata and rebuild plan.

State and data flow

  1. The request first reaches an ordinary writable DC.
  2. If the operation does not require FSMO coordination, the multi-master write path continues.
  3. For a role-specific operation, locate the relevant role holder.
  4. A reachable owner can coordinate the special operation. Otherwise, the effect is role-specific; temporary loss of connectivity does not prove permanent loss.
  5. A planned transfer with a reachable owner and seizure after confirmed permanent loss, with the former owner isolated, are separate recovery paths.

2. Exploitation

Broken trust assumption

Assume an attacker has administrative control of a role-holder DC or access to role-transfer/seizure authority. This lesson provides no attack procedure against a real system.

Technical prerequisites

  • Privileged directory administration or high privileges on a role-holder DC are available.
  • The organization has concentrated roles on one DC and documented its recovery decisions.

Exploitation mechanism

A role-holder DC is a critical control point for its specific operations. Compromising it does not make it the sole owner of all directory writes, but it can amplify effects on schema, domain topology, RID allocation, or password/time coordination.

A role-holder DC is an impact multiplier

Privileges on the Schema Master affect the schema-change surface; privileges on the PDC Emulator affect password and time operations. Describe impact within the responsibilities of the particular role.

An unplanned seizure can leave the defender with conflicting role ownership. Distinguishing an unreachable owner from one that is permanently lost is therefore a security decision.

3. Defense & Detection

Telemetry scope

  • Inventory expected and observed FSMO owners for every forest/domain.
  • Correlate fSMORoleOwner changes with change-management records; verify the target-object/attribute SACL and DC audit policy for 5136 monitoring.
  • Monitor PDC Emulator time source and replication health separately from other roles.
  • For seizure, retain a recovery record showing that the former DC will not return.

Events and relevant fields

  • 5136(S) · If the target role-owner object has an attribute-specific Write-audit SACL and Audit Directory Service Changes Success is enabled on a domain controller, a directory-modification record can be generated in the Security channel. A modification typically produces Value Deleted and Value Added records with the same OpCorrelationID; the event alone does not prove an approved transfer/seizure or role-holder health.

Check ownership and the operation separately

Check the relevant directory object’s fSMORoleOwner value together with the role holder’s reachability, rather than relying only on a GUI list. Ownership and health are different observations.

An alert should connect the ownership change to its context: was it an approved transfer or a disaster-recovery seizure, and is the former owner isolated?

Detection logic · XPath

*[System[(EventID=5136)]]

Query assumptions

  • This XPath is a broad candidate filter for 5136 records in the Security channel; environment-specific enrichment must identify the role-owner object and AttributeLDAPDisplayName=fSMORoleOwner.
  • The event requires Audit Directory Service Changes Success on a DC and a matching Write-audit SACL ACE on the changed attribute.
  • A modification typically produces Value Deleted and Value Added records with the same OpCorrelationID; inspect the Value Added record and correlate the prior value.
  • The artifact is synthetic, not a Windows or SIEM record.

False positives

  • A planned attribute change can occur during an approved role transfer, DC demotion, or recovery.
  • Without the audit policy/SACL, 5136 may not be generated; its absence does not prove the current fSMORoleOwner value is correct or unchanged.

Hardening

  • Place roles on protected, monitored writable DCs. For the Infrastructure Master, also evaluate GC placement and Recycle Bin state.
  • Perform role transfers with delegated least privilege and change approval.
  • Require a role-specific seizure runbook, backup, and isolation step for the former owner.
  • Use a reliable upstream time source and separate availability monitoring for the PDC Emulator.

Read the examples

READ THE EXAMPLE TOGETHER

SYNTHETIC TEACHING EXAMPLE

Which object and attribute appear in this record?

5136 · fSMORoleOwner modification candidate

01
Which directory object?DC=outreason,DC=example

The object’s distinguished name in the directory. It identifies the object associated with the operation.

02
Which attribute?fSMORoleOwner

The directory attribute named in the record. Read it with the value and operation type.

03
Recorded attribute valueCN=NTDS Settings,CN=DC02,CN=Servers,CN=Site-A,CN=Sites,CN=Configuration,DC=outreason,DC=example

The value recorded for this attribute. One Value Added/Deleted record does not show the complete before-and-after state.

04
Subject accountsvc-change-review

The account name in the Subject section. It is distinct from the event’s target account.

What to take away

Read the fields together: account, object, service and result answer different questions. One record is not the system’s entire story.

We are reading a sample record. This does not connect to Windows or verify that an event or an attack occurred.

Scope of this example

Synthetic, abbreviated Event 5136 Value Added example; it was not collected from a real host. Field names follow Microsoft Event 5136 schema. Selecting the event does not prove an authorized transfer/seizure or that the new owner is healthy/reachable. Production generation requires the DC audit policy and a Write-audit SACL on the relevant attribute.

Open the raw record · EVENT-XML
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"><System><Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-A5BA-3E3B0328C30D}"/><EventID>5136</EventID><Version>0</Version><Level>0</Level><Task>14081</Task><Opcode>0</Opcode><Keywords>0x8020000000000000</Keywords><TimeCreated SystemTime="2026-10-02T08:30:00.0000000Z"/><EventRecordID>1042</EventRecordID><Correlation/><Execution ProcessID="544" ThreadID="720"/><Channel>Security</Channel><Computer>DC01.outreason.example</Computer><Security/></System><EventData><Data Name="OpCorrelationID">{b92c5c32-1bf4-4fd6-a5a2-7a3c43810a21}</Data><Data Name="AppCorrelationID">-</Data><Data Name="SubjectUserSid">S-1-5-21-1111111111-2222222222-3333333333-1104</Data><Data Name="SubjectUserName">svc-change-review</Data><Data Name="SubjectDomainName">OUTREASON</Data><Data Name="SubjectLogonId">0x49001</Data><Data Name="DSName">outreason.example</Data><Data Name="DSType">%%14676</Data><Data Name="ObjectDN">DC=outreason,DC=example</Data><Data Name="ObjectGUID">{671a7f50-7950-4dce-87e5-a5f35e7e055a}</Data><Data Name="ObjectClass">domainDNS</Data><Data Name="AttributeLDAPDisplayName">fSMORoleOwner</Data><Data Name="AttributeValue">CN=NTDS Settings,CN=DC02,CN=Servers,CN=Site-A,CN=Sites,CN=Configuration,DC=outreason,DC=example</Data><Data Name="OperationType">%%14674</Data></EventData></Event>

Two reality checks

Assumption: The FSMO owner is the main DC through which every domain write passes.
In fact: No. AD DS is normally multi-master. FSMO roles assign five specific coordination responsibilities to designated role holders.
Assumption: If an FSMO owner becomes unreachable, the entire domain immediately stops working.
In fact: The effect depends on the role and the duration. Existing RID pools can support further principal creation; ordinary authentication and most writes can continue. Role-specific operations may be affected immediately or later.

YOUR TURN

Work through this story.

Go beyond recall: change a condition, read evidence, explain the reason for a decision.

1 / 3 · PREDICT

DC01 is briefly unreachable; DC02 has an available RID pool. Which is correct?

Choose an answer

A hint

Consider the coordinated operation and the available reserve.

Read the answer reasoning

DC02 can create principals from its pool; later pool allocation may be affected.

Losing the RID Master does not immediately stop all ordinary writes or authentication.

2 / 3 · READ EVIDENCE

Does this record alone justify seizure to DC02?

Synthetic RID Master review card.
fSMORoleOwner
CN=NTDS Settings,CN=DC01,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=iyelabs,DC=example
Erişilebilirlik gözlemi / Reachability observation
One failed check
Choose an answer

A hint

Is ownership information proof of permanent loss?

Read the answer reasoning

No; permanent loss and recovery prerequisites need separate verification.

fSMORoleOwner identifies the owner; one failed reachability check does not prove it will never return.

3 / 3 · EXPLAIN

Explain planned transfer versus seizure and what happens to the old DC01.

A hint

Connect owner cooperation with the possibility of its return.

Read the answer reasoning

Transfer is a planned handover with reachable DC01. Seizure is a separate recovery decision after confirmed permanent loss; especially for RID, Schema and Domain Naming roles, the former owner must not simply return online without isolation and a rebuild/metadata plan.

  • I identified the reachable, cooperating owner for transfer.
  • I tied the old owner’s return after seizure to a recovery plan.

Your explanation is not automatically graded. Compare the checkpoints with your answer.

These are learning practices; they do not affect certification exam scores.

Sources