DEV Community

Cover image for Microsoft Defender Said the PC Was Clean. The Screen Was Covered in "Virus" Alerts.
Danny Wareham
Danny Wareham

Posted on AI-assisted

Microsoft Defender Said the PC Was Clean. The Screen Was Covered in "Virus" Alerts.

If you work in tech, you are automatically unpaid family IT.

Last week, my wife's uncle called me in a full-blown panic about his Windows 10 desktop. He told me he had a massive virus—pop-ups were flooding his screen, security warnings were flashing nonstop, the whole nine yards.

Here was the catch: he was only running Microsoft Defender, and he was only running it because I told him years ago to ditch third-party antivirus bloat.

I drove over and booted up his PC. As Windows loaded, my stomach dropped. Relentless toast notifications immediately started firing in the bottom-right corner of the screen. Fake McAfee renewals, "CRITICAL SYSTEM INFECTION" banners, urgent virus warnings—one right after another. For a solid ten seconds, I thought my own advice had burned him.

I kicked off a Microsoft Defender Offline scan and waited. When it finished, the result came back: Clean. Zero threats found.

That didn't make sense. Microsoft Defender is the baseline every other antivirus gets compared against—it doesn't miss loud, obvious adware screaming across the desktop.

Then I stopped panicking and actually read one of the toast notifications.

At the top of the alert was the browser's name and icon. Printed inside the box, alongside the fake "Windows Security Alert" text, was a sketchy, randomized domain name. Every single warning was coming from the browser.

I checked the site in the browser, clicked the site info icon in the address bar, opened site permissions, and saw Notifications: Allowed.

I switched it to Block.

Instant silence. Not another pop-up. Microsoft Defender was right the entire time—there was no malware, no trojan, and no infection. Just the Web Push API being abused for notification spam.

Why This Fools So Many People

Modern browsers let websites register service workers that send native Windows toast notifications—even after the website's tab is closed. If the browser runs in the background or launches at startup, queued spam alerts can start firing the moment Windows boots. To a non-technical user, a notification sliding out of the Windows Action Center looks identical to a real system alert.

Getting permission is trivial because of dark patterns:

  • Fake "Click Allow to prove you are not a robot" CAPTCHA overlays.
  • Fake video players claiming you need to click Allow to watch a clip.
  • Misleading download buttons that trigger the browser's permission prompt right as the user clicks.

Once a user clicks Allow once, that domain owns the bottom-right corner of their screen until someone revokes it.

How to Fix and Prevent It (Especially on Family Machines)

If you manage computers for relatives—or just want to eliminate this headache altogether—lock it down before it happens:

1. Clear existing allowed sites and disable prompts globally
If the offending tab is already closed, the address bar icon won't show it—you need the browser's global notification list. Paste the address below directly into the address bar, remove every unfamiliar domain from the Allowed list, and turn off future prompts so sites cannot even ask:

  • Chrome: chrome://settings/content/notifications → select Don't allow sites to send notifications.
  • Edge: edge://settings/privacy/sitePermissions/allPermissions/notifications → toggle off Ask before sending.
  • Brave: brave://settings/content/notifications → select Don't allow sites to send notifications.
  • Firefox: about:preferences#privacy → Permissions → Notifications → Settings... → check Block new requests asking to allow notifications.

If someone genuinely needs alerts from a specific web app later, you can manually add that single URL to the allow list.

2. Filter redirects with a content blocker or DNS
Scareware push prompts almost always start with shady ad redirects. Install uBlock Origin Lite on Chrome (full uBlock Origin still works on Firefox, and Brave blocks ads natively with Shields), or point the router to a filtered DNS provider like AdGuard DNS or Quad9 to block most of those domains before a prompt ever appears.

3. Teach the "Top Line" rule
Show non-technical family members how Windows toast notifications work: Windows prints the sending app's name at the very top of the box. If a "Microsoft Defender Virus Warning" has Chrome, Edge, or Brave at the top and a weird domain printed inside, it is just a webpage trying to scare them into calling a fake support number.

Top comments (0)