How s12cybersecurity/windefenderkiller works
Project type and purpose
• This is a small native C++ utility whose sole purpose is to disable (and re-enable) Windows Defender by writing specific keys into the Windows Registry.
• It is not a multi-tier web app or microservice; rather, it is a single executable CLI tool that interacts directly with the OS.
File structure
• Top-level files:
• disableWinDef.cpp → source for the “disable” binary
• reverseDisableWinDef.cpp → source for the “re-enable” binary
• winDefKiller.exe, RevWinDefKiller.exe → compiled executables
• README.md → project description and build instructions
• No subdirectories, no external services or libraries beyond the standard C++ runtime and OS registry API.
README for additional insights
• Confirms usage of MinGW-w64 to compile a static C++ binary.
• The binary uses Windows API calls to modify registry keys under HKLM\SOFTWARE\Policies\Microsoft\Windows Defender (and related branches).
• No database, network, or UI components—pure command-line, registry manipulation.
a. Main components
• CLI Application (“WinDefenderKiller” binary)
• Windows Registry (target hive and keys)
• Windows Defender Service (reads policy on startup)
• Windows OS kernel and API layer (regulates registry calls)
b. Relationships and interactions
• The CLI App makes Windows API calls (RegOpenKeyEx, RegSetValueEx, etc.) → writes to Registry.
• Registry changes take effect when the Defender service reads its configuration (on restart or policy refresh).
• Defender service then disables its real-time protection engine.
c. Architectural patterns / design principles
• Single responsibility: one tool, one job.
• Direct system call: no abstraction layers, purely native OS API.
• Static linking for portability.
d. Relevant technologies
• C++ (compiled with x86_64-w64-mingw32-g++)
• Windows Registry API
• Windows Defender service (built-in OS component)
Detailed guidance
• That Defender only re-reads policies on reboot or service restart.
• Registry hive paths altered (HKLM\…\Windows Defender\DisableAntiSpyware).