defense-ad-defense
Detect and harden against Active Directory attacks — Kerberoasting, AS-REP roasting, DCSync, ADCS abuse, and delegation/relay. Load for "detect kerberoasting", "harden AD", "AD monitoring", "did someone DCSync us", or defending a domain. The defensive counterpart to the ad-* offensive skills.
v2026.10.14-ee0e0c53 instalações+3 em 7 dias27 EstrelasMITsincronizado há 22 horas
Instalar
Ainda não tem a CLI da NotHoly? Instale primeiro.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install noorqureshi/defense-ad-defenseGrava em ~/.notholy/skills depois de conferir a assinatura e o SHA-256.
AssinaturaAssinado, ed25519
Pacote0b414cb7…c7050ac0
0b414cb7cc88…d273c7050ac01 arquivo · 1.6 KBVarreduraBaixonenhum achado
Fontegithub.com/NoorQureshi/security-skills/tree/main/skills/defense/defense-ad-defense@ee0e0c5
Este item ainda não foi escrito no seu idioma, então aparece em English.
Nesta página
When it applies
You run an AD domain and need to catch the standard attacker toolkit and close the structural weaknesses it relies on — before or after a foothold.
Why it works
Most AD attacks abuse features, not bugs, so they leave predictable event signatures and depend on specific misconfigurations. Watch the right events and remove the preconditions, and the common paths (the ones BloodHound finds) simply close.
Method
- Kerberoasting (T1558.003): alert on Event
4769(TGS request) with RC4 (0x17) encryption or high volume from one account. Harden: strong (25+ char) managed service-account passwords, gMSAs, and AES-only where possible. - AS-REP roasting (T1558.004): find and fix accounts with "do not require Kerberos
preauth"; alert on
4768without preauth. - DCSync (T1003.006): alert on
4662replication GUIDs (DS-Replication-Get-Changes) from a principal that is not a DC. Harden: audit who holds replication rights. - ADCS (ESC1-8, T1649): audit templates for enrollee-supplied SAN + client-auth EKU (ESC1) and
dangerous enrollment rights; monitor
4886/4887(cert requests/issues). Fix the template. - Delegation / relay (T1207): inventory unconstrained/RBCD delegation; enable SMB signing + LDAP channel binding/signing to kill NTLM relay; monitor for coercion (PetitPotam-style).
- Structural hygiene: run PingCastle/BloodHound as the defender, tier admin accounts,
Protected Users group, LAPS for local admin, and remove the attack-graph edges (see
tradecraft-attack-path-mapping).
Gotchas
4769fires constantly — key on RC4/volume/odd source, not the raw event.- Legacy apps may need RC4/unconstrained delegation; document exceptions, don't leave them silent.
- ADCS is often the fastest domain-takeover path and the least monitored — prioritise it.
Verify success
A controlled roast/DCSync/ESC1 in a lab produces the expected event and alerts, and a BloodHound run shows the corresponding attack-graph edge removed after hardening.
References
Microsoft AD security docs; SpecterOps ADCS ("Certified Pre-Owned"); PingCastle; MITRE ATT&CK.
Arquivos desta versão
- SKILL.md2.7 KB
Permissões
| Permissão | Declarada | Encontrada na varredura |
|---|---|---|
| Lê arquivos | Não | Não |
| Grava arquivos | Não | Não |
| Roda comandos no shell | Não | Não |
| Usa a rede | Não | Não |
| Usa conectores | Não | Não |
| Controla um navegador | Não | Não |
Achados da varredura
Revisado em 13 de nov. de 2026
A varredura não encontrou nada para apontar nesta versão.
Uma varredura limpa reduz o risco, mas não prova que o pacote é seguro. Leia o que você instala.
| Versão | Publicada em | Commit | SHA-256 | Assinatura | Mudança de permissão |
|---|---|---|---|---|---|
| v2026.10.14-ee0e0c5 | 13 de nov. de 2026 | ee0e0c5 | 0b414cb7 | Assinada | – |
Mais de NoorQureshi
Tudo deste publicadorMais em Active Directory e Windows
Ver a categoria- offensive-windows-mitigationssnailsploit/offensive-windows-mitigations4
- active-directory-attack-pathssecurityskills/active-directory-attack-paths3
- analyzing-powershell-script-block-loggingmukul975/analyzing-powershell-script-block-logging3
- offensive-windows-boundariessnailsploit/offensive-windows-boundaries3
- evil-winrmaeondave/evil-winrm3
- bloodyadaeondave/bloodyad3
Pergunte tudo o que o seu escopo permite.
Crie a conta, adicione créditos e faça a primeira pergunta no chat ou no terminal.
- 1/3
Crie a conta
Individual ou empresa. Dá para virar empresa depois sem perder saldo nem chaves.
Pessoa físicaEmpresa - 2/3
Adicione créditos
No cartão. Você paga por token, sem assinatura.
$5.00recarga mínima - 3/3
Pergunte
No chat, ou instale o CLI e rode notholy login no terminal.
$ notholy login