You’re watching YouTube, the video stutters, the laptop fan spins up — and Task Manager shows Antimalware Service Executable (MsMpEng.exe) eating 30-50% of your CPU. It feels backwards: the antivirus is hurting performance more than any virus would. This is one of the most reported Defender behaviors, and it has specific, fixable causes.
The mechanism is straightforward. YouTube streams video in small chunks that your browser writes to its disk cache continuously. Defender’s real-time protection intercepts every one of those writes and scans it. At 1080p or 4K, that’s thousands of scan operations per minute — and if Defender’s own cache is corrupted or a full scan is running in the background, CPU usage snowballs.
Every fix below keeps your protection intact — no disabling Defender, no registry hacks that gut security. If high CPU plagues your whole system rather than just video playback, our guide to fixing high CPU usage in Windows 11 24H2 covers the broader diagnosis.
Why this happens
- Real-time scanning of browser cache writes — Every YouTube video chunk written to the browser cache triggers a real-time scan. High-bitrate 4K video means constant scanning load for the entire viewing session.
- A scheduled full scan running during playback — Defender’s default scheduled scan can kick off while you’re watching. A full system scan plus video streaming saturates CPU on quad-core laptops.
- Corrupted Defender definition or scan cache — Damaged signature files make the engine work harder per file or re-scan the same files in a loop — a classic cause of sudden-onset high CPU.
- Browser cache grown to gigabytes — A multi-GB cache gives Defender vastly more files to churn through. Cache corruption also triggers repeated re-scans of the same data.
- Conflicting third-party antivirus remnants — Leftover drivers from an uninstalled Norton/McAfee/Avast can make Defender and the remnant fight over every file access, doubling scan overhead.
- Outdated Defender platform version — Microsoft regularly ships performance fixes in Defender platform updates. A stale engine version may carry scanning inefficiencies fixed months ago.
- Hardware without modern scan offload — Older CPUs lack the instruction sets newer Defender builds use to accelerate scanning, so the same workload costs more CPU cycles on aging laptops.
How to fix it
Work through these in order — diagnose first, then act.
Fix 1: Confirm Defender is the real culprit
Verify before tuning — video stutter has many causes.
- While a YouTube video plays, open Task Manager (Ctrl + Shift + Esc) and sort by CPU.
- If Antimalware Service Executable sits above 20-30% sustained during playback, Defender is confirmed.
- Check the Details tab for MsMpEng.exe specifically, and note whether CPU drops when you pause the video — that correlation seals the diagnosis.
Fix 2: Clear your browser cache
A bloated or corrupted cache is the most common amplifier. Clearing it is safe and takes a minute.
- In Chrome/Edge: press Ctrl + Shift + Del, set time range to All time, check Cached images and files, and clear.
- In Firefox: Settings > Privacy & Security > Cookies and Site Data > Clear Data (cached content only).
- Restart the browser and replay the same video — if Defender CPU drops sharply, the cache was the problem.
- Consider capping cache size going forward; our guide to disabling background apps also helps reduce background disk churn.
Fix 3: Add a targeted Defender exclusion for the browser cache
This is the highest-impact safe fix: exclude the cache folder, nothing else.
- Open Windows Security > Virus & threat protection > Manage settings > Exclusions > Add or remove exclusions.
- Click Add an exclusion > Folder and add your browser’s cache path (Chrome:
%LocalAppData%\Google\Chrome\User Data\Default\Cache; Edge:%LocalAppData%\Microsoft\Edge\User Data\Default\Cache). - Do NOT exclude Downloads, Program Files, or whole drives — cache only.
- Replay YouTube and watch MsMpEng.exe CPU fall while real-time protection stays on everywhere else.
Fix 4: Reschedule Defender scans to idle hours
Stop full scans from ambushing your viewing time.
- Open Task Scheduler (search it in Start), navigate to Task Scheduler Library > Microsoft > Windows > Windows Defender.
- Right-click Windows Defender Scheduled Scan > Properties > Triggers, and set it for a time you’re never watching (e.g., 3 AM), with Wake the computer to run this task unchecked on laptops.
- On the Conditions tab, check Start the task only if the computer is idle.
- This keeps full protection on a schedule that never touches your YouTube time.
Fix 5: Update the Defender platform and definitions
Stale engines scan slower. Force the update.
- Open Windows Security > Virus & threat protection > Protection updates > Check for updates.
- Then open Settings > Windows Update and install everything, including Optional updates — Defender platform updates often ride along there.
- Microsoft documents Defender update behavior in the Windows support hub if you want the official details.
- Restart after updating and re-test with the same video.
Fix 6: Repair a corrupted Defender installation
If CPU stays high after the above, the engine itself may be damaged.
- Open PowerShell as administrator and run
sfc /scannowto repair protected system files. - Then run
DISM /Online /Cleanup-Image /RestoreHealthto repair the component store Defender depends on. - If problems persist, use Settings > Apps > Installed apps, find Microsoft Defender, and use Repair — or reinstall the latest definitions from the Microsoft Update Catalog by searching ‘Definition Update for Microsoft Defender Antivirus’.
Fix 7: Remove conflicting antivirus remnants
Two security products scanning the same YouTube chunks is a CPU disaster.
- Check Settings > Apps for any Norton, McAfee, Avast, or AVG entries and uninstall them.
- Run the vendor’s official removal tool (each major vendor publishes one) to clear leftover filter drivers.
- Verify only Microsoft Defender Antivirus appears under Windows Security > Virus & threat protection.
- Restart — filter driver conflicts only clear on reboot.
Closing
Defender hammering your CPU during YouTube is annoying but fixable without weakening security: clear the cache, exclude the browser cache folder, and move scans to idle hours. Those three steps resolve nearly every case while keeping real-time protection exactly where it belongs.
