Sophos Web Control can be used to block users from accessing websites categorized as hacking, thus web-based cryptominers are blocked. This feature is both available on the Sophos endpoint and network security products.
This article provides instructions on how to ensure protection against JavaScript cryptominers hosted on a website, such as Coinhive.
Note: This affects the websites that users can visit. It is recommended to test the policy first before deploying them.
The following sections are covered:
Applies to the following Sophos products and versions
Sophos UTM
Sophos Web Appliance
Sophos Firewall
Sophos Endpoint Security
Sophos Central Admin
Sophos Home
Sophos Central Admin
Sophos Enterprise Console managed endpoints and servers
- Open Sophos Enterprise Console.
- Navigate to Policies > Web Control.
- Right-click on the web control policy that is to be changed and select View/Edit Policy…
- From the General tab, select Enable web control.
- Make sure Hacking is set to Block.
- Click OK and confirm the changes within the policy.
Sophos Central managed endpoints and servers
- Log in to Sophos Central.
- Navigate to Endpoint Protection or Server Protection.
- Go to Policies > Web Control then select the policy you want to change.
- Select the Settings tab and make sure Web Control is enabled.
- Under Acceptable Web Usage, click View Details and find Adult and potentially inappropriate categories.
- Click View More and make sure Hacking is set to Block.
Sophos Home
- Log in to Sophos Home
- On the dashboard, select the computer to where the settings will be applied.
- Go to Web Filtering tab and in the Adult & Potentially Inappropriate section ensure that Hacking it set to Block.
Sophos XG Firewall
- Navigate to Protect > Web > Policies > then expand the policy you need to modify.
- Click on the + symbol then select Add Rule Above.
- Click on the corresponding item under Activities column then click Add New Item.
- Select Show Only > Web Category.
- Untick ALLWebTraffic, if it is ticked.
- Scroll down to locate and select Hacking > click on Apply 1 selected items.
- Ensure that the status of the rule is set to Block HTTP and is enabled.
Sophos UTM
- Navigate to Web Protection > Web Filtering > Policies.
- Select Default content filter action.
- On the Categories tab, set the Criminal Activities category to Block > click Save.
Note: The Category of Criminal Activities contains multiple web categories inside it, including the Hacking category needed to block cryptominers.To edit these categories, select Web Protection > Filtering Options > Categories.
Sophos Web Appliance
- Navigate to Configuration > Group Policy > Default Policy.
- Set the Hacking category to Block.
- Click Apply.
For instances that you want to block hacking websites but authorize cryptominers, follow the steps on how to authorize JavaScript Cryptominers. To understand more about cryptominers and why Sophos blocks them, see Web based cryptominers are malware.
- Web based cryptominers are malware
- Naked Security: Pirate Bay hits users’ CPUs with secret cryptocurrency mining
- How to authorize JavaScript Cryptominers
If you’ve spotted an error or would like to provide feedback on this article, please use the section below to rate and comment on the article.
This is invaluable to us to ensure that we continually strive to give our customers the best information possible.