Cybersecurity

Is your firewall's web filter doing its job? Here's what we find in a review

We recently reviewed the web filtering configuration on a UAE company's head office firewall. The main office network was well protected. Someone had clearly put thought into which websites staff should be able to access.

The problem was everything around that policy.

More than half of the enabled rules sending traffic to the internet had no restrictive web policy attached, and not a single one had HTTPS decryption switched on.

If you want to understand how well your firewall's web filter is protecting your business, start with the configuration rather than the dashboard.

There are five things worth checking: which internet rules bypass the filter, whether "allow by default" policies block the dangerous categories, whether HTTPS traffic is decrypted, how your allow lists handle keywords, and how much of the configuration is no longer in use.

Here's what we found when we worked through those checks.

Rules that quietly skip the filter

The main office network policy was configured to deny by default. Only nine categories were permitted, including banks, government, financial services, business sites and a few others. Anything new, unusual or uncategorised was automatically blocked.

For an office like this, that's the right approach.

But when we looked at the individual firewall rules, more than half of the enabled rules sending traffic to the internet had no restrictive web policy. Nearly all of them had no restrictive application filter either.

The rule names gave us a fairly good idea of how this had happened. There was a rule for one person's laptop, a "full access" rule, another for a single website, and separate rules for the phone system and a Wi-Fi network.

Each was probably created to solve a legitimate problem at the time. Nobody went back to review them.

A dashboard showing "web filtering: enabled" wouldn't tell you any of this. The main office policy was working exactly as intended. It simply wasn't being applied to a good portion of the traffic leaving the building.

"Allow by default" policies that forget the dangerous categories

The policies for compliance, marketing, staff with social media access, and the Wi-Fi network took a different approach. They allowed access by default and blocked specific website categories.

With this approach, anything you haven't explicitly blocked is permitted.

Four of those policies were missing Command & Control, Newly Registered Websites and Uncategorized from their block lists. One was also missing Phishing & Fraud.

These aren't categories you'd want to overlook.

Command and control traffic is what happens when malware on a PC communicates with its operator. A phishing page hosted on a domain registered last week may not have developed a bad reputation yet. Blocking newly registered and uncategorised websites helps catch threats that reputation lists haven't picked up.

The filter could only see website names

HTTPS decryption was disabled on every internet rule.

To understand why that matters, consider what Sophos's own documentation says:

"To read the full URL, the firewall must decrypt traffic. The Server Name Indication (SNI) header only contains the domain name."

In other words, every filtering decision on this firewall was based on the website's name rather than the full address.

A harmful file hosted on a major file-sharing or cloud-storage website looks the same to the filter as a harmless file on that website. All it can see is the domain name.

That doesn't mean you should immediately enable decryption across the entire network.

Every device needs the firewall's certificate installed. Banking and government websites are usually excluded. Some applications won't work through decryption without exceptions, and the additional processing puts more demand on the firewall.

Our preference is to decrypt general staff browsing, exclude banking and sensitive websites, and test the configuration with a pilot group first.

Leaving decryption disabled can also be a reasonable decision. What matters is that the people responsible for security understand what the filter can and cannot see.

Keyword allow lists that let too much through

The main custom allow list contained a few hundred domains and dozens of keywords, most of which were single words. The social media list added keywords such as "youtube", "facebook" and "google".

On a Sophos firewall, there's an important distinction between allowing a domain and allowing a keyword.

Sophos's documentation for adding a category explains that the firewall "checks the keywords against the entire URL, including domain, path, and query". It also recommends that "categories using keywords are only in policy rules that block rather than allow".

We found the same issue while reviewing a multi-branch network. Its allow list included the keywords "outlook" and "Microsoft".

The intention is understandable, but the firewall allows any address containing those words. Fake login pages often contain exactly those words in their addresses.

Those same allow lists also contained advertising and tracking domains, IP addresses entered as keywords, and two nearly identical lists that had gradually become different.

The fix is straightforward, if somewhat tedious: replace keywords in allow lists with the exact domains they were intended to permit.

Dead configuration

On the head office firewall, roughly three quarters of the web policies and most of the application filter policies weren't attached to any enabled rule.

An unused policy isn't necessarily a security problem. The confusion it creates is.

Someone reviewing the firewall might tighten the settings in a policy they believe is protecting their staff, without realising that the policy isn't actually being used. They've made a configuration change, but nothing has changed for the users.

We would remove these unused policies once the owner confirms that nothing depends on them.

What was right

A firewall review shouldn't just be a list of things that need fixing.

Logging was enabled on every rule that applied a filter, giving us a record to investigate from. The main office network used a deny-by-default policy, and the Wi-Fi application filter blocked the usual methods of getting around web filtering: VPN apps, proxy tools, DNS over HTTPS and the QUIC protocol.

These findings belong in the report as well. Whoever reviews or maintains the firewall should understand which settings are already doing useful work, so nobody inadvertently removes them while trying to simplify the configuration.

On a multi-branch network, look for the odd one out

For the multi-branch client, we exported the full configuration of every branch firewall and compared them side by side.

The rules appearing across most branches gave us the standard configuration. What interested us were the exceptions: rules that existed on only one or two branches.

For each exception, the questions for the owner were simple. Is this rule still necessary, and who originally requested it?

Some were fairly easy to explain, such as a rule written for an old Wi-Fi router.

Rather than working through a stack of configuration files in isolation, comparing the branches gave us a short list of specific questions worth investigating.

Check this on your own firewall this week

  • List every enabled rule that sends traffic to the internet. Check which web policy and application filter each rule uses. Anything without a filter, or with an "allow all" policy, needs an owner and a reason for being configured that way.
  • Open each "allow by default" web policy. Confirm that the following categories are blocked: Phishing & Fraud, Spyware & Malware, Command & Control, Newly Registered Websites, Uncategorized and Anonymizers.
  • Search your allow lists for single words. Establish which websites those keywords were originally intended to permit, and replace them with the exact domains.
  • Check whether HTTPS decryption is enabled for staff browsing. If it isn't, make sure the person signing off on security understands that the web filter can only read website names.
  • Count the policies that aren't used by any rule. Make a plan to remove them.

Want a second pair of eyes on your firewall?

We review web and application filtering using a configuration export, without making any changes to the firewall itself. We give you a clear list of what's working, what isn't and where the configuration needs attention.

It's part of our Advanced Threat Protection work. If you'd like us to review your firewall, get in touch.

  • firewall
  • web filtering
  • Sophos
  • network security

Need Expert
IT Support?

Let's discuss how we can help transform your business

Contact Us Today