skip to Main Content

Egress Filtering: The Most Important Cloud Security Control You’re Probably Missing

As we kick off 2023, we wanted to explore important cloud security controls organizations should think about but might not be. This is part 1 of 2 articles on Egress URL filtering. Read part 2, “How to Effectively Implement URL Filtering,” here.

As we work with enterprise cloud security architects daily, it’s abundantly clear that one of the top priorities in 2023 is how to standardize security policy enforcement through improved network architecture across project teams and accounts. We hear that secure cloud networking is not just a nice to have; it’s a must-have for these architects in 2023. 

But what are the most important controls to enable the security of cloud networks? 

Again and again, URL filtering of cloud egress traffic, along with much more well-known FQDN filtering, comes to the top of the list. This blog will explore why

What’s Cloud Egress Traffic URL Filtering?

URL filtering works by analyzing web traffic and filtering it based on the URLs (e.g. https://domain.com/URL) that are accessed. This involves identifying the URLs accessed by your applications and then comparing those URLs to a list of known malicious or potentially harmful URLs or known good URLs. If the URL that is accessed matches a URL on the harmful list, the traffic is blocked, and the connection (possibly malicious) is prevented from connecting. If it matches an approved one, then the connection is allowed. More on why this is important later…

How URL Filtering Works

URL filtering is a well-known technique for the security of ‘user’ endpoints. Most enterprises have a mature URL filtering technology as part of a suite of end-user security functions. What’s new is applying this control to cloud deployments to protect workloads and data from command-and-control (C2) and exfiltration. And if you’re running a Virtual Desktop Infrastructure (VDI), the need should be even more apparent.

Domain or fully qualified domain name (FQDN) filtering works similarly but focuses only on the destination domain. Just because a solution delivers FQDN filtering doesn’t mean it can provide URL filtering (i.e. solutions like Squid, AWS Firewall, and Aviatrix don’t provide this critical capability). 

URL filtering requires TLS decryption since the URL is part of the TLS-encrypted HTTP traffic. FQDN (domain) filtering doesn’t require decryption, although it does require category-based domain intelligence that most solutions don’t provide.

URL and domain filtering work on a very simple idea. Allow or block traffic to a destination by checking against…

  • Customer-provided lists of known good sites (domains) and URLs
  • Domain and URL categories that you approve

A great example of a domain where you also need to care about the URL is github.com. Whether the URL is github.com/MyOrganization vs. github.com/MaliciousSite is a pretty important detail when implementing a secure egress strategy. Clearly, FQDN filtering will not help in this case. You need to filter based on URL.

Domain and URL category classification is provided by a service built into your security platform that can in real-time classify any domain/site and URL. This means that you don’t have to explicitly list the specific ones you want in your policy out of the millions of domains and billions of URLs. This is especially useful for VDI use cases. So you can:

  • Block all malicious categories like malware, phishing, botnets, and so on.
  • Allow only approved pre-defined categories like Financial Services, AWS Cloud Services etc.
  • Allow only approved customer-defined categories: My Payment Processors, My Third-Party Vendors

Why Does URL Filtering Matter?

Without domain and URL filtering, the only way to stop an attacker inside your network is to add each known good IP to an access control list (ACL). But this is not practical as the IP addresses of commonly used services and sites are substantial and dynamic. Caching at the edge makes this even more challenging, as that can result in an explosion of IPs.

Both these controls are also required by most security compliance standards and guidelines, such as PCI DSS and SOC2 Type2. For example, PCI Requirement 1.2.1 states, “Restrict inbound and outbound traffic to that which is necessary for the cardholder data environment, and specifically deny all other traffic.”

This really stops an attacker or malicious insider from…

  • Connecting to their command and control (C2) for persisting an attack inside your network
  • Exfiltrating data to a site that they control

What’s Special About URL filtering

While domain-based filtering will ensure that known malicious ones are blocked, it’s often a challenge to use common public services that can potentially host malicious actors. For example, you may be using the following services, but they could also be used by the attackers. So domain-based filtering provides a good baseline, URL filtering is a necessity to prevent malicious actions.

Service Allow Block
GitHub github.com/myOrgRepo github.com/someSoftwareRepo
AWS S3 s3.amazonaws.com/MyBucket s3.amazonaws.com/BadGuysBucket
GCP API Gateway myAPI-GW.us-west-2.gateway.dev badGuyAPI-GW.us-east-2.gateway.dev

The key point from this… Imagine an attacker able to set up a legitimate-looking GitHub repository to exfiltrate data. Given the likelihood that you already have many legitimate GitHub connections, this activity would go completely undetected. 

Why is URL Filtering So Important?

It’s the last line of defense in the case of a reasonably sophisticated attacker who manages to bypass other defenses. How do you implement URL Filtering? That’s where security inside your cloud networks comes in. More on that in the next part of this series.

Requirements

What are the essential requirements for your domain and URL filtering controls?

  • Support for custom lists and categories of domains and URLs
  • Built-in categories for real-time lookup of 100s of millions of domains and 10s of billions of URLs, both good and bad ones
  • Support for TLS decryption at high performance and low latency to perform URL filtering without hindering your applications
  • Ability to apply domain and URL filtering based on the workload’s identity, i.e. using its cloud-assigned tags: web, backend, database, pci, prod, test, staging, business-team, app-type
  • Adaptability to specific network, data, and/or app requirements.
  • And finally, the ability to deploy the infrastructure to do all of this in minutes, not hours, and route all of the network traffic to the appropriate point of inspection.

In the next article, we’ll explore how to operationalize an FQDN and URL Filtering strategy effectively. Hint: This can be next to impossible in reality with other solutions.

URL Filtering With Valtix

Get started with URL filtering using Valtix and sign-up for our Free Tier today, or contact us for a cloud security architecture review.

Latest Posts

Back To Top