How do you block Regsvr32.exe/Regsvr64.exe using windows firewall?

groze

Tester
Power User
VIP
Local time
9:51 AM
Messages
1,162

My Computer My Computer

At a glance

W10 32 bit, XUbuntu 18.xx 64 bitIntel(R) Celeron(R) CPU G1620T @ 2.40GHz, 240...4GBIntel HD graphics
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell All in one Inspiron 2020
OS
W10 32 bit, XUbuntu 18.xx 64 bit
CPU
Intel(R) Celeron(R) CPU G1620T @ 2.40GHz, 2400 Mhz
Motherboard
Dell
Memory
4GB
Graphics Card(s)
Intel HD graphics
Sound Card
High Definition Audio Device
Monitor(s) Displays
20 inch Screen
Screen Resolution
W7=1280 x 720 & Linux Mint Xfce=1360 x 768
Hard Drives
500 GB hard drive
Keyboard
Usb
Mouse
Usb
Internet Speed
High-Speed
Antivirus
MSE
Browser
Main Browser Firefox
Other Info
I have done a clean install of Windows 7 using Dell re-installation disk (Dell sent me one). I also use Free Macrium reflect backup and restore.
I don't use Wimdows Firewall do I don't know how to use it.

RE: regsvr64.exe - I don't see it on my 64bit machine.

VoodooShield blocks regsvr32 by default and there's no option to block regsvr64 so I guess that it doesn't exist.

VoodooShield Settings.jpg

EDIT:

Found these paths to block:

Block %systemroot%\System32\regsvr32.exe and %systemroot%\SysWoW64\regsvr32.exe from network access

Note: SysWoW64\regsvr32.exe on a 64bit machine.

Maybe someone who uses Windows Firewall can post the solution?
 
Last edited:

My Computer My Computer

At a glance

Microsoft Windows 7 Home Premium 64-bit 7601 ...AMD C-60 APU with Radeon(tm) HD Graphics4.00 GBAMD Radeon HD 6290 Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
ASUS
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD C-60 APU with Radeon(tm) HD Graphics
Motherboard
ASUSTeK COMPUTER INC. X501U
Memory
4.00 GB
Graphics Card(s)
AMD Radeon HD 6290 Graphics
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
Hitachi HTS545050A7E380 SATA Disk Device
Antivirus
Comodo CIS & FW, SecureAplus App Whitelisting, Threatfire
Browser
Cyberfox 64bit, Opera 64bit, Airfox
Other Info
Spy-The-Spy, HitmanPro.Alert, Norton Connect Safe, MJRegWatcher, BitDefender TrafficLight, Voodoo Shield, Zemana AntiMalware
Okay it looks like only outbound connections need to be blocked as the exploit will attempt to connect to a URL.

The Powershell command to create a new rule should be:

New-NetFirewallRule -DisplayName "Block Regsrvr32" -Program "%SystemRoot%\System32\regsvr32.exe" -Direction Outbound -Action Block

and for 64bit:

New-NetFirewallRule -DisplayName "Block Regsvr32" -Program "%SystemRoot%\SysWOW64\regsvr32.exe" -Direction Outbound -Action Block

Administrator_ Elevated Command Prompt - Powershell.jpg

If you plan on upgrading to Windows 10 you'll need to use full paths:

"C:\Windows\System32" and "C:\Windows\SysWow64" instead of "%SystemRoot%\System32\" and "%SystemRoot%\SysWOW64\"
 

My Computer My Computer

At a glance

Microsoft Windows 7 Home Premium 64-bit 7601 ...AMD C-60 APU with Radeon(tm) HD Graphics4.00 GBAMD Radeon HD 6290 Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
ASUS
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD C-60 APU with Radeon(tm) HD Graphics
Motherboard
ASUSTeK COMPUTER INC. X501U
Memory
4.00 GB
Graphics Card(s)
AMD Radeon HD 6290 Graphics
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
Hitachi HTS545050A7E380 SATA Disk Device
Antivirus
Comodo CIS & FW, SecureAplus App Whitelisting, Threatfire
Browser
Cyberfox 64bit, Opera 64bit, Airfox
Other Info
Spy-The-Spy, HitmanPro.Alert, Norton Connect Safe, MJRegWatcher, BitDefender TrafficLight, Voodoo Shield, Zemana AntiMalware
I've blocked regsvr32.exe in my firewall anyway. (Even though it's already blocked from running by VoodooShield)

Thanks for posting! :)

Firewall.jpg
 

My Computer My Computer

At a glance

Microsoft Windows 7 Home Premium 64-bit 7601 ...AMD C-60 APU with Radeon(tm) HD Graphics4.00 GBAMD Radeon HD 6290 Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
ASUS
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD C-60 APU with Radeon(tm) HD Graphics
Motherboard
ASUSTeK COMPUTER INC. X501U
Memory
4.00 GB
Graphics Card(s)
AMD Radeon HD 6290 Graphics
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
Hitachi HTS545050A7E380 SATA Disk Device
Antivirus
Comodo CIS & FW, SecureAplus App Whitelisting, Threatfire
Browser
Cyberfox 64bit, Opera 64bit, Airfox
Other Info
Spy-The-Spy, HitmanPro.Alert, Norton Connect Safe, MJRegWatcher, BitDefender TrafficLight, Voodoo Shield, Zemana AntiMalware
I also couldn't find a regsvr64.exe on my system, same as Callender I just have regsvr32.exe in those two locations.

Blocked using Comodo! :thumbsup:

Capture-02.png
 

My Computer My Computer

At a glance

Win 7 Ultimate, Win 8.1 Pro, Linux Mint 19 Ci...Intel i5 4690KCorsair Vengeance LP 32GB DDR3MSI GTX 1060 GAMING X 6GB
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Win 7 Ultimate, Win 8.1 Pro, Linux Mint 19 Cinnamon (All 64-Bit)
CPU
Intel i5 4690K
Motherboard
Gigabyte Z97X-UD3H
Memory
Corsair Vengeance LP 32GB DDR3
Graphics Card(s)
MSI GTX 1060 GAMING X 6GB
Sound Card
Onboard
Hard Drives
Samsung 850 EVO 250GB SSD (x2)
Samsung 860 EVO 1TB SSD (x2)
Crucial MX300 525GB SSD
WD Blue 2TB 5400rpm Intellipark Disabled (x2)
PSU
Corsair HX750i
Case
Phanteks Enthoo Pro
Cooling
CM Hyper 212 EVO on CPU, Noctua Redux NF-P14S 1500rpm (x6)
Keyboard
Corsair K70 RGB LUX
Mouse
Corsair Sabre RGB
Antivirus
Avast Free, MalwareBytes, SAS & CryptoPrevent
Browser
Chrome
Other Info
StarTech PEXESAT322I 2 Port PCI-E SATA Card
ASUS PCE-AC56 Dual-band AC1300 Wireless Card
Akasa FC.Six Manual Fan Controller
And a Partridge in a Pear Tree!
Back
Top