The Antimalware Service Executable (MsMpEng.exe) is the core background process of Windows Defender, the built-in antivirus software for Windows 11. While it is designed to run silently, users frequently encounter a severe glitch where this process consumes 50% to 100% of the CPU, causing intense thermal throttling, loud fan noise, and system lag.
This excessive resource drain typically occurs when Windows Defender gets caught in an infinite loop—constantly scanning its own installation folder, struggling with a corrupted definition update, or fighting against a third-party antivirus program. Here is how to regain control of your CPU without leaving your system vulnerable.
Phase 1: Diagnostic Verification
First, confirm that MsMpEng.exe is the actual culprit and not a cryptomining malware disguising itself as a system file.
- Press
Ctrl + Shift + Escto open Task Manager. - Click on the Processes tab (the grid icon on the left).
- Click the CPU column header to sort by highest usage.
- Locate Antimalware Service Executable. If it is consistently hovering above 30% while the computer is idling, proceed with the fixes below.
- Security Note: Right-click the process and select Open file location. It must be located in
C:\ProgramData\Microsoft\Windows Defender\Platform\.... If it opens a random folder in your AppData directory, it is malware, and you must run an offline scan immediately.

Phase 2: Step-by-Step Fixes
Fix 1: Add MsMpEng.exe to the Exclusion List
The most common cause of high CPU usage is Windows Defender endlessly scanning its own executable file. By adding MsMpEng.exe to the exclusion list, you prevent it from inspecting itself and break the infinite processing loop.
- Press the Start button, type Windows Security, and press Enter.
- Click on Virus & threat protection in the left sidebar.
- Under the “Virus & threat protection settings” heading, click on Manage settings.
- Scroll all the way to the bottom to the Exclusions section and click Add or remove exclusions. (Approve the User Account Control prompt).
- Click the + Add an exclusion button and select Process from the dropdown menu.
- Type the exact process name:
MsMpEng.exe - Click Add. The high CPU usage should drop significantly within 30 seconds as the loop breaks.

Fix 2: Reschedule Windows Defender Scans in Task Scheduler
By default, Windows 11 allows Defender to initiate full system scans at random idle times. If you have a large hard drive, this background scan can bottleneck the CPU for hours. You can force the system to only scan during specific off-hours.
- Press
Win + R, typetaskschd.msc, and press Enter to open Task Scheduler. - In the left navigation pane, expand the folders in this exact path:
Task Scheduler Library>Microsoft>Windows>Windows Defender. - In the middle pane, locate the task named Windows Defender Scheduled Scan.
- Right-click this task and select Properties.
- Navigate to the Conditions tab. Ensure the box for “Start the task only if the computer is idle for:” is checked.
- Navigate to the Triggers tab. Click New, and set a schedule for a time when you are away from the computer (e.g., Weekly on Sundays at 3:00 AM).
- Click OK to save the new parameters.

Fix 3: Disable Real-Time Protection Temporarily (Diagnostic Step)
To determine if a corrupted Windows Defender engine update is causing the spike, disable real-time protection. If the CPU usage instantly drops to 0%, the engine is glitching.
- Open Windows Security > Virus & threat protection > Manage settings.
- Toggle Real-time protection to Off.
Note: Windows 11 will automatically turn this back on after a short period or upon reboot. If the CPU spike goes away while off but returns immediately when toggled back on, proceed to Fix 4 to repair the operating system files.
Fix 4: Repair Corrupted System Files (SFC and DISM)
If the core architecture of Windows Security is corrupted, it will endlessly consume resources attempting to execute broken scripts.
- Right-click the Start menu, select Terminal (Admin) or Command Prompt (Admin).
- Type
sfc /scannowand press Enter. Allow the System File Checker to reach 100%. - Once complete, type
DISM /Online /Cleanup-Image /RestoreHealthand press Enter. This contacts Windows Update servers to download fresh copies of corrupted system files. - Restart your computer.
Fix 5: Fully Remove Conflicting Third-Party Antivirus
Windows Defender is designed to step back and disable its real-time scanning if you install McAfee, Norton, or Avast. However, if a third-party antivirus is uninstalled incorrectly (leaving leftover registry keys), Windows Defender will constantly fight for permissions against the ghost software.
- Identify any third-party antivirus you previously installed.
- Go to the developer’s official website and download their dedicated removal tool (e.g., Norton Remove and Reinstall tool, or Avast Clear).
- Run the dedicated removal tool in Safe Mode to obliterate lingering registry keys.
- Reboot your PC. Windows Defender will now properly recognize itself as the sole security provider.
Frequently Asked Questions
1. Can I completely disable the Antimalware Service Executable?
In Windows 11, Microsoft has made it incredibly difficult to permanently disable MsMpEng.exe through standard settings or the registry. The only way to permanently stop it is to install a recognized third-party antivirus, which forces Windows Defender to hand over control and enter a passive state.
2. Why is Windows Defender taking up so much RAM as well?
During an active “Full Scan,” Windows Defender loads signatures and unzips compressed files into your system RAM to scan them faster. If it is consuming multiple gigabytes of RAM while idling, it is likely stuck on a massive, highly compressed archive file (.zip or .rar). Adding an exclusion to that specific folder can fix the memory leak.
3. Is MsMpEng.exe a virus?
No, MsMpEng.exe is a legitimate Microsoft core system file. However, advanced malware can occasionally name itself MsMpEng.exe to hide in plain sight. You can verify its authenticity by ensuring the file is located in the official C:\ProgramData\Microsoft\Windows Defender\Platform directory.
Sources:
- Microsoft Support: How to add an exclusion to Windows Security.
- Microsoft Learn: Windows Defender Antivirus compatibility.




