A lightweight Windows background service that prevents Windows Defender from automatically re-enabling itself.
- Event-driven architecture with near-zero resource usage
- Monitors registry keys for Defender state changes
- Instantly disables Defender when detected as enabled
- System tray icon with status display
- Windows toast notifications
- Automatic startup with Windows
- Tamper Protection detection and retry logic
- Proper installer with uninstaller
- Supports both x86 and x64 Windows
- Windows 10/11
- Administrator privileges (for installation and service operation)
- Download the latest
defender-disabler-setup.exefrom Releases - Run the installer as Administrator
- The service will start automatically and disable Defender
After installation:
- The service runs in the background as a Windows Service
- A system tray icon shows the current Defender status
- Right-click the tray icon to see options:
- Defender Status: Shows current state (ON/OFF)
- View Logs: Opens the log folder and highlights the log file
- Exit: Stops the service and closes the tray app
If Tamper Protection is enabled, the service will:
- Show a toast notification warning you
- Retry every 30 seconds
- Show reminder notifications every 5 minutes
To disable Tamper Protection:
- Open Windows Security
- Go to Virus & threat protection
- Click Manage settings
- Toggle Tamper Protection OFF
-
The service monitors these registry keys for changes:
HKLM\SOFTWARE\Microsoft\Windows Defender\Real-Time ProtectionHKLM\SOFTWARE\Microsoft\Windows Defender\FeaturesHKLM\SOFTWARE\Microsoft\Windows DefenderHKLM\SOFTWARE\Policies\Microsoft\Windows DefenderHKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection
-
When a change is detected, it checks if Defender is enabled
-
If enabled, it immediately disables real-time protection
Logs are stored at:
C:\Program Files\Defender Disabler\defender-disabler.log
- Open Windows Settings > Apps > Installed apps
- Find "Defender Disabler" and click Uninstall
- Or run the uninstaller from the Start Menu
- Rust (install from https://rustup.rs)
- Inno Setup 7.0+ (for building the installer)
# Clone the repository
git clone https://github.com/alper-dev/DefenderDisabler.git
cd DefenderDisabler
# Build release binaries (x64)
cargo build --release
# Build release binaries (x86)
cargo build --release --target i686-pc-windows-msvc
# Build installer (requires Inno Setup)
iscc installer.iss- Written in Rust for minimal resource usage
- Uses
RegNotifyChangeKeyValueAPI for event-driven registry monitoring - Implements Windows Service API for proper service management
- Communication between service and tray app via named pipes
- Service runs as SYSTEM account for registry access
- Tray app runs per-user for UI interaction
MIT License
This tool is for educational and personal use only. Disabling Windows Defender may leave your system vulnerable to malware. Use at your own risk.