Using Group Policy to block malwares and ransomwares

Using Group Policy to block malwares and ransomwares

Like Evolution, attackers are able to keep adapting to changing environment to create smarter viruses, malwares and ransomwares. And security companies are always trying to catch up, especially in dealing with zero day attacks.

The best protection is physical isolation - air gap defense. But this comes with a huge inconvenient to the end users, affecting their productivity. Not to mention high cost to companies in distributing two set of PCs for each user, where one is connected to the internet and isolated from the intranet, and another is connected to the intranet and isolated from the internet.

Striking a balance, we make use of Group Policy to block all executable files downloaded from the internet from executing in all known locations. The most obvious location is the download folder, and the temp folder for compress file to get uncompressed. Do not forget the hidden application data folders under the user profile as well, often used to install app to bypass the required administrator permission.

Under Group Policy: Computer Configuration > Policies > Windows Settings > Security Settings > Software Restriction Policies: Additional Rules:

Disallowed all these locations from running exe files:

  • %userprofile%\downloads\*.exe
  • %AppData%\*.exe
  • %LocalAppData%\*.exe
  • %temp%\*.zip\*.exe
  • %temp%\7z*\*.exe
  • %temp%\Rar*\*.exe
  • %temp%\wz*\*.exe

Beside exe files, you may also want to block these known harmful file extensions as well: bat, com, com1, dll, js, java, jar, jse, lnk, pif, reg, scf, scr, vbs, vbe, ps1, sh, ws, fla, msi, wsfch, hta, thmx, ocx, cmd, xpi, wmz, themepack.

You should also block known ransomware location and filename. For example, wannacry randomware is known to store under Windows folder as mssecsvc.exe. So add this into the Group Policy as well:

No alt text provided for this image

Warning: Do note that blocking the application data folder from executables may affect some software installation from working properly. There are many work arounds, such as excluding administrators from this restriction or adding exclusion folders from known installation folder names etc.

#security #windows

要查看或添加评论,请登录

Boon Hong Wong的更多文章

  • Reset Android Phones

    Reset Android Phones

    In the past, you can perform a factory reset and wipe off your login pin simply by powering up your Android phone while…

  • How to remove the battery from Creative iRoar. And why we need to put a stop to Planned Obsolescence to save our environment.

    How to remove the battery from Creative iRoar. And why we need to put a stop to Planned Obsolescence to save our environment.

    Recently, my Creative iRoar battery went dead. While it can no longer be used as a portable speaker, it can still work…

    4 条评论
  • The Next Frontier - Virtual Reality

    The Next Frontier - Virtual Reality

    Space is unlikely to be our next frontier, for it is simply far too hostile to sustain life, and the distance between…

  • The danger of using the latest versions

    The danger of using the latest versions

    There is a saying, never use version x.0 of any software, because any major upgrade will always comes with major new…

  • Fix Windows 11 right-click bug

    Fix Windows 11 right-click bug

    For those old enough to experience upgrading countless software, will know that all major software releases are always…

    1 条评论
  • Modern Technologies are build NOT TO LAST.

    Modern Technologies are build NOT TO LAST.

    Most of the apps are no longer available for Gear VR anyway. (https://support.

    1 条评论
  • NAS: QNAP vs Synology

    NAS: QNAP vs Synology

    Two of the most popular Network Attached Storage (NAS) brands are QNAP and Synology, both from Taiwan. NAS do not just…

  • Best Free VPN

    Best Free VPN

    Two most popular free VPN providers are ProtoVPN - with 3 countries to pick from (US, Japan and Netherlands), and…

  • The Fallibility of Technology

    The Fallibility of Technology

    I loved technologies, because they have empowered us to perform many things that our ancestors could only dream of. But…

  • Lessons that technology companies must learn from Intel... and VMware

    Lessons that technology companies must learn from Intel... and VMware

    We have seen this far too many times in the IT industry, on how technology companies frequently fall into focusing on…

社区洞察

其他会员也浏览了