Jump to content

How to Enable PUA, PUP or Adware Protection in Windows Defender?


Batu69

Recommended Posts

windows defender header

 

Windows Defender can detect and remove malware and viruses, but it doesn’t detect Potentially Unwanted Programs by default. However, there is an opt-in feature which you can enable by editing the registry, to make Windows Defender scan and eliminate adware, PUAs or PUPs in real-time.

 

Potentially Unwanted Program (PUP), Potentially Unwanted Application (PUA) and Potentially Unwanted Software (PUS) refer to the category of software which are considered unwanted, untrusted or undesirable. PUPs include adware, dialers, fake “optimizer” programs, toolbars and search bars that come bundled with programs.

 

PUAs don’t fall under the definition of “malware” as they’re not malicious, but still, some PUAs are classified as “risky”.

 

Bottomline: You don’t need “Potentially Unwanted” stuff in your system regardless of the risk level unless you seriously believe that the benefits offered by a particular program outweigh the risks or inconvenience created by the PUP which accompanied the main program.

 

Now, here is how to enable scanning and removal of adware, PUPs or PUAs using Windows Defender (in Windows 8 and higher).

Enable Windows Defender real-time scanning for adware, PUA or PUP

There are three different ways to enable PUA protection in Windows Defender, but I’m unsure which setting takes precedence in the event of conflict. The registry location is different in each method described. It’s advisable to use only one of the following methods to avoid confusion.

Method 1: Enable PUA Protection Using PowerShell

Start PowerShell (powershell.exe) as administrator.

Run the following command and press ENTER:

Set-MpPreference -PUAProtection 1

enable pua protection in windows defender

 

This PowerShell command adds a registry value to the following key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender
  • Value: PUAProtection
  • Data: 1 – enables PUA protection | 0 – disables protection

Note that manually setting the registry value would still work. But the above registry path is protected and can’t be edited using the Registry Editor, unless you’re editing it as SYSTEM.

Method 2: Enable PUA Protection Manually [Registry Location 2]

This method uses the same registry value, but implements it under the Policies registry key.

Start Regedit.exe and go to the following key:

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender

Create a DWORD value named PUAProtection

Double-click PUAProtection and set its value data to 1.

Method 3: Enable PUA Protection Manually [Registry Location 3]

Start the Registry Editor (regedit.exe) and go to the following key:

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender

Create a subkey named “MpEngine”

Under MpEngine, create a DWORD value named MpEnablePus

Double-click MpEnablePus and set its value data to 1

 

configure windows defender to scan and eliminate adware pup or pua

 

This configures Windows Defender to enable real-time scanning and removal of “Potentially Unwanted” stuff.

Exit the Registry Editor.

Of those three methods, 1 & 2 are not yet documented by Microsoft — but I managed to find them out when playing with PowerShell. Methods 1 & 2 were tested in a system running Windows 10. Method 3 was originally published by the MMPC blog.

Apply the changes

Do one of these things to apply the changes:

  • Turn off real-time protection, and turn it back on.
  • Update Windows Defender definitions
  • Restart Windows

PUA will be blocked only at download or install time. A file will be included for blocking if it meets one of the following conditions:

  1. The file is being scanned from the browser
  2. The file has Mark of the Web (Zone ID) set
  3. The file is in the Downloads folder
  4. The file in the %temp% folder

Does Windows Defender PUA Protection actually work in systems that are not part of a corporate enterprise network?

This opt-in Windows Defender feature was announced last year by the Microsoft Malware Protection Center (MMPC) blog. But, as the MMPC blog post references only “enterprise” systems, some home users may be wondering whether or not the PUA detection feature works on standalone computers.

Yes. Windows Defender PUA scanning works in standalone systems, as well.

 

The following test shows that Windows Defender PUA detection certainly works in systems that are not part of a domain network.

MMPC Security Portal has the complete list of “Potentially Unwanted Programs” or “Potentially Unwanted Applications”, each threat name is prefixed with “PUA:”.

 

configure windows defender to scan and eliminate adware pup or pua

 

For example, PUA: Win32/CandyOpen is a PUP/PUA bundled with Magicaljellybean Keyfinder and other programs.

(Magical Jelly Bean Keyfinder, otherwise is a useful piece of software.)

 

Before activating Windows Defender PUA protection, I downloaded Magicaljellybean’s Keyfinder and tried to run it on a Windows 10 v1607 standalone computer. Windows Defender allowed me download the installer, as well as run it.

 

configure windows defender to scan and eliminate adware pup or pua

 

After setting the “MpEnablePus” value data to 1 using the Registry Editor and updating the definitions, Windows Defender blocked the setup program from running.

Also, when I tried to download a new copy of the Keyfinder installer, the file was blocked as it landed up in the Downloads or %temp% folder. The result was the same when I chose a folder other than “Downloads”.

 

configure windows defender to scan and eliminate adware pup or pua

 

And the Windows Defender notification message was shown.

Windows Defender has found an untrusted app

Your IT settings cause the blocking of any app that might perform unwanted actions on your computer

Whereas, the notification message verbatim is different for “malware” detections; in which case it would say “Found some malware”.

 

set windows defender to find and remove adware pup or pua

 

And the PUA was quarantined, as shown in the Windows Defender scan history.

 

configure windows defender to scan and eliminate adware pup or pua

 

Conclusion: The Windows Defender PUA detection feature can be very useful for systems that don’t already leverage a third-party premium anti-malware solution with real-time monitoring capability. One would only wish that Microsoft adds a GUI option to enable PUA scanning feature in Windows Defender, like the “Limited Periodic Scanning” opt-in feature (and the GUI option) they added in Windows 10.

 

Guide source

Link to comment
Share on other sites


  • Replies 1
  • Views 1.1k
  • Created
  • Last Reply

Does it only works with "realtime on "  ?

I have switched realtime off , while using other firewall-software , only using WinDef for second opinian-scanner.........:rolleyes:

Link to comment
Share on other sites


Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...