SkillAgentSearch skills...

StopDefender

Stop Windows Defender programmatically

Install / Use

/learn @lab52io/StopDefender
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

StopDefender

Stop Windows Defender programmatically creating a new token using TrustedInstaller and Windefend service accounts.

One button stop action, no need for supply commandline options nor pid. Usefull for integration with Post Explotation frameworks.

Blogpost

https://www.securityartwork.es/2021/09/27/trustedinstaller-parando-windows-defender/

Presentations

Check Presentations folder

  • [Rootedcon Valencia 2022] Kill -9 Windows Defender

Credits

  • https://github.com/slyd0g/PrimaryTokenTheft
  • https://posts.specterops.io/understanding-and-defending-against-access-token-theft-finding-alternatives-to-winlogon-exe-80696c8a73b
  • https://www.tiraniddo.dev/2017/08/the-art-of-becoming-trustedinstaller.html
  • https://docs.microsoft.com/en-us/windows/win32/com/impersonation-levels
  • https://halove23.blogspot.com/2021/08/executing-code-in-context-of-trusted.html
  • https://docs.microsoft.com/es-es/windows/win32/api/winsvc/ns-winsvc-service_sid_info?redirectedfrom=MSDN
  • https://www.alex-ionescu.com/?paged=2&cat=2
  • https://github.com/rbmm/DisableSvc
View on GitHub
GitHub Stars992
CategoryDevelopment
Updated13d ago
Forks151

Languages

C++

Security Score

95/100

Audited on Mar 19, 2026

No findings