WeCyberYou! Unlocked Podcast

Cyber Security Controls Demystified Part 10 - Email Firewall

Season 1 Episode 10

Use Left/Right to seek, Home/End to jump to start or end. Hold shift to jump forward or backward.

0:00 | 15:16

In this episode, we break down what an Email Firewall is, how it protects one of the most frequently targeted communication channels in modern organisations by inspecting and securing inbound and outbound email traffic and why it has become a critical layer of defense against phishing, business email compromise, malware, ransomware, spam, malicious attachments and other email-based cyber threats.

Duration: 0:15:16

Visit https://www.wecyberyou.com for more cyber security education, resources and awareness content like this. 

Thank you for listening. 
WeCyberYou! Team

Support the show

Like and follow us to be notified when a new episode is released on this channel.

SPEAKER_00

It takes just a few bytes of plain text, really. No complex malware, no zero-day software exploit.

SPEAKER_01

Right, just a handful of carefully chosen words.

SPEAKER_00

Exactly. Sent to the right inbox at the exact right time, and suddenly, you know, a billion-dollar enterprise finds its entire network completely compromised.

SPEAKER_01

It happens every single day.

SPEAKER_00

It really does. Welcome to the deep dive, everyone. Today we are tearing into a stack of research titled Email Firewall Deep Dive: Securing the Organization's Primary Attack Vector.

SPEAKER_01

It's a great paper.

SPEAKER_00

Oh, it's fantastic. And real quick, you are tuning in to the WeCyber You Unlocked Podcast. Do make sure you follow the channel and check out WeCyberU.com for more content like that.

SPEAKER_01

Highly recommend checking it out.

SPEAKER_00

Thanks. But uh let's get right to the core mystery here for you guys listening. You look at the modern enterprise perimeter, right? We have endpoint detection, network segmentation, zero trust architectures.

SPEAKER_01

All this incredibly expensive tech.

SPEAKER_00

Right. And yet the undisputed king of attack vectors remains the standard everyday email. So our mission today is exploring the unsung hero that sits between the chaotic public internet and your corporate inbox, the email firewall.

SPEAKER_01

Which is, I mean, it's the ultimate bottleneck of corporate infrastructure. You think about it, organizations are transmitting millions of emails daily.

SPEAKER_00

Yeah, financials, logins.

SPEAKER_01

Everything. Financial transactions, login portals, confidential contracts, sensitive intellectual property. It all flows through the simple mail transfer protocol, SMTP. Trevor Burrus, Jr.

SPEAKER_00

The lifeblood of the business.

SPEAKER_01

Exactly. And attackers, while they understand return on investment, why would they spend weeks trying to bypass a next generation network firewall when they can just, you know, spoof an invoice?

SPEAKER_00

Oh, yeah, just send it to an accounts payable quirk.

SPEAKER_01

Right. And have them wire you $2 million directly. Tricking the human bypasses the perimeter entirely. All it takes is one person making one mistake.

SPEAKER_00

Aaron Powell, it's the path of least resistance. So to stop this, organizations deploy an email firewall. But okay, let's unpack this because I think a lot of people picture a standard stateful network firewall, right?

SPEAKER_01

Ones that just inspect IP packets.

SPEAKER_00

Yeah, exactly. Just blocking bad ports and moving on. But this is a totally different beast. Instead of just checking traffic, think of an email firewall as an intense multi-stage customs checkpoint.

SPEAKER_01

That's a great analogy, actually.

SPEAKER_00

Thanks. It's specifically engineered to interrogate email protocols, sender identities, and attachments. Right. It sits right there between the internet and the user's inbox.

SPEAKER_01

That distinction is crucial. A standard network firewall operates at the lower layers of the OSI model. It just looks at traffic flow. But an email firewall, it operates at the application layer. It's literally pulling apart the actual anatomy of the message.

SPEAKER_00

Right. So let's walk the gauntlet here. Stage one, an email arrives.

SPEAKER_01

Yeah. So when a message arrives, stage one is that it doesn't go to your inbox, it goes straight to the firewall. And the entire life cycle begins at the absolute outer edge, which is the initial connection.

SPEAKER_00

Stage two.

SPEAKER_01

Right. Before the firewall even cares about the contents of the email, it scrutinizes the server attempting to make the connection.

SPEAKER_00

The initial handshake.

SPEAKER_01

Exactly. The firewall looks at the sending IP address and cross-references it against real-time black hole lists, RBLs. It's basically evaluating the global reputation of that IP address.

SPEAKER_00

Aaron Powell Hey, is this guy a known troublemaker?

SPEAKER_01

Exactly. Is it part of a known botnet? Or maybe it's a newly spun-up server in a region your company doesn't even do business with.

SPEAKER_00

Oh, right. Geolocation.

SPEAKER_01

Yeah. If the IP reputation is poor, the firewall just terminates the SMTP connection right there. It drops the traffic at the edge.

SPEAKER_00

Aaron Powell Which is great because that saves enormous amounts of compute power.

SPEAKER_01

Right. Huge amounts. Because it doesn't have to scan the actual payload if it just rejects the bad actor instantly.

SPEAKER_00

Aaron Powell Okay. So you drop the obvious junk at the front door. Yeah. But let's say the sender is using a reputable IP address. Maybe they compromised a legitimate server, or they are using a massive public cloud provider. Trevor Burrus, Jr.

SPEAKER_01

Which happens all the time. Aaron Powell Right.

SPEAKER_00

So the connection is accepted. Now we move into stage three, the ID check, the realm of sender authentication.

SPEAKER_01

Aaron Powell And this is where we evaluate the holy trinity of email identity SBF, DKM, and DMRC.

SPEAKER_00

Wait, wait. I have to ask, how can a computer tell if an email from the CEO is actually from the CEO and not like a scammer in a basement somewhere?

SPEAKER_01

Aaron Ross Powell Well, it relies on those three protocols. Let's start with SBF, the sender policy framework. It's essentially a DNS lookup.

SPEAKER_00

Okay.

SPEAKER_01

The domain owner publishes a specific TXT record in their domain name system, and this record contains a strict list of all the IP addresses that are legally authorized to send mail on behalf of that domain.

SPEAKER_00

Aaron Powell Like a VIP guess list for the domain.

SPEAKER_01

Spot on. So when the firewall receives an email claiming to be from, say, your bank.com, it queries the DNS records for your bank.com. If the IP address delivering the email isn't on that published list, SPF fails.

SPEAKER_00

Simple enough, you check the guest list. Yeah. But then we have DKIM. Domain keys identified mail.

SPEAKER_01

Right, the cryptographic layer.

SPEAKER_00

Yeah, and this is where the heavy lifting happens. And I want to get away from the generic, it's a digital signature explanation. How are the public and private keys actually interacting here?

SPEAKER_01

Okay, so it relies on public key cryptography. When an authorized server sends an email, it completes a cryptographic hash of the email's body and specific headers.

SPEAKER_00

Aaron Powell Like a mathematical summary of the text.

SPEAKER_01

Right. It then encrypts that hash using a private key securely stored on that server. That encrypted hash is then attached to the email as the D keem signature.

SPEAKER_00

So the email arrives at our firewall. What does our firewall do with that encrypted hash?

SPEAKER_01

It queries the sender's DNS records again, but this time it asks for the domain's public key. It uses that public key to decrypt the signature, which reveals the original hash. Oh, okay. Then the firewall completes its own hash of the email body and headers it just received. If the firewall's hash perfectly matches the decrypted hash, two things are proven.

SPEAKER_00

Which are?

SPEAKER_01

First, the owner of the domain genuinely sent it. And second, not a single character of that email was altered in transit.

SPEAKER_00

Because if even one letter was changed, the math wouldn't match.

SPEAKER_01

Exactly. And then DMRC is the policy layer. It basically combines both of those and tells the receiving firewall what to do, like reject it or quarantine it if unauthenticated messages fail, SBF or decomm.

SPEAKER_00

Right. But what happens if the ID looks real but the letter inside is suspicious?

SPEAKER_01

Yeah.

SPEAKER_00

That moves us to inspecting the actual message, right? Stage four, looking under the hood.

SPEAKER_01

Yeah, because authentication only proves who sent it, not if they're sending something safe.

SPEAKER_00

Exactly. So the firewall tears into the header analysis. This is where it catches forged routing info, right?

SPEAKER_01

An email isn't just a block of text. It's a complex MIE structure, multi-purpose internet mail extensions. The firewall tears apart the headers looking for anomalies that are totally invisible to the user.

SPEAKER_00

Like hidden reply to addresses.

SPEAKER_01

Yes. A classic example is header misalignment. In SMTP, there's the envelope sender, which is the actual routing address used by the servers, and then there is the header from, which is what the user actually sees in their client.

SPEAKER_00

Aaron Powell, which is how you get an email that visually says it's from the CEO, but the actual routing address hidden in the envelope belongs to a server in a completely different country.

SPEAKER_01

The firewall detects that misalignment immediately. It also looks for those deceptive reply-to headers you mentioned, where the attacker hopes you'll hit reply and sends sensitive data straight to an external drop account.

SPEAKER_00

Okay, so let's say the headers are clean. Now the firewall drops into stage five. The payload itself, content inspection.

SPEAKER_01

Right, the actual text of the email.

SPEAKER_00

And we are talking about natural language processing here or NLP. It uses that to flag urgent payment requests or credential harvesting tactics. It's not just looking for the word invoice, right.

SPEAKER_01

Far beyond it, if you just blocked every email with the word urgent or invoice, you would completely paralyze the finance department.

SPEAKER_00

Right. They never get any work done.

SPEAKER_01

Modern firewalls use machine learning models to analyze semantic intent and sentiment. The NLP engine parses the syntax, it contextualizes the language, it understands the difference between a marketing email offering an urgent discount and an executive demanding an urgent wire transfer to a new vendor.

SPEAKER_00

That makes sense. But even if the text is completely benign, the real danger usually lies in the links and the attachments, stages six and seven.

SPEAKER_01

Yeah, URL inspection is stage six. And there is a really fascinating detail here about something called time of click protection.

SPEAKER_00

Okay, how does that work?

SPEAKER_01

Well, attackers use this delayed weaponization tactic. They set up a benign web page, maybe a copy of a standard tech blog. They send the email containing that link, the firewall receives it, stands the link, visits the page, sees nothing malicious, and delivers it to your inbox.

SPEAKER_00

Because it was safe at that moment.

SPEAKER_01

Right. But an hour later, the attacker alters the web server. They redirect that benign URL to a malicious credential harvesting portal. If the user clicks the link now, they are compromised.

SPEAKER_00

So how does the firewall stop a trap that didn't exist when the email arrived?

SPEAKER_01

Time of click protection. During the initial inspection, the firewall actively rewrites the HTML of the email. It takes the original URL and replaces it with a unique proxy link hosted by the security vendor.

SPEAKER_00

Oh wow. So when I click it, it checks it again.

SPEAKER_01

Yes. It reevaluates the URL the exact moment a user clicks it. The proxy reaches out to the original target, renders the page in a headless browser, and if it has been weaponized since delivery, it blocks the request.

SPEAKER_00

Aaron Powell Yeah, it's brilliant. It's like rechecking their ID at every single door inside the building.

SPEAKER_01

Aaron Powell Exactly.

SPEAKER_00

And then we have attachment analysis stage seven. I like to compare this to X-raying a package, you know, searching for everything from standard viruses and Trojans to hidden executable code.

SPEAKER_01

Aaron Powell Yeah, it deconstructs the attachment, it pulls apart ZIP files, looking for archive bombs designed to crash the system, it examines PDFs for embedded JavaScript.

SPEAKER_00

Aaron Powell But what if the X-ray shows something completely new, something no one has ever seen before?

SPEAKER_01

A zero day.

SPEAKER_00

Yeah. Here's where it gets really interesting. Stage eight, the sandbox, the virtual bomb squad.

SPEAKER_01

It really is a bomb squad. If an attachment is suspicious but unknown, the firewall tosses it into an isolated virtual room and basically forces it to open.

SPEAKER_00

Right, a controlled detonation.

SPEAKER_01

Exactly. What's fascinating here is that the firewall watches what the file actually does. Does it try to change the registry? Does it start encrypting things? Does it try to communicate with a strange network?

SPEAKER_00

And if it does, boom. Neutralized.

SPEAKER_01

It's flagged as a critical threat and dropped entirely.

SPEAKER_00

So then we get to stage nine, catching the invisible threats.

SPEAKER_01

Aaron Powell Right. Behavioral analysis.

SPEAKER_00

Aaron Powell Because what if there is no malware? What if it's just business email compromise or BEC? Let's say a trusted vendor's account is hacked and they ask for payment to a new bank account. There's no bad link, no bad attachment. How do you catch that?

SPEAKER_01

Aaron Powell The AI builds a massive communication graph of the entire organization. It monitors historical communication patterns, who normally talks to whom, what time of day do they communicate, what is the typical length and tone of their messages.

SPEAKER_00

So it flags it because the language is inconsistent with past emails.

SPEAKER_01

Yeah. If a CFO never emails the junior account's payable clerk directly and suddenly does so at two in the morning on a Sunday, the AI flags it. It notices geographing anomalies, like the vendor's account authenticating from an IP address in a different hemisphere. It learns communication patterns and aggressively flags deviations.

SPEAKER_00

Okay, so once the firewall has gathered all this data from all these stages, it has to make a final ruling. Stage 10, the sentencing.

SPEAKER_01

The policy enforcement.

SPEAKER_00

Right. It decides to either deliver the email, quarantine it, delete it completely, or maybe trigger an incident response, right?

SPEAKER_01

Yeah, based on the organization's specific rule sets.

SPEAKER_00

But there's a plot twist here. Stage 11. Outbound protection. This usually surprises people because the firewall also watches emails leaving the building.

SPEAKER_01

It's a critical function that organizations routinely overlook. Outbound inspection integrates data loss prevention or DLP.

SPEAKER_00

So stopping an employee from accidentally sending out a spreadsheet of customer records.

SPEAKER_01

Exactly. The firewall actively scans emails leaving the corporate environment. It hunts for credit card numbers, social security numbers, or proprietary source code. If an exhausted HR manager accidentally attaches the master payroll spreadsheet and tries to email it to an external contractor, the firewall intercepts the outbound message and blocks it.

SPEAKER_00

Saving them from a massive compliance breach.

SPEAKER_01

Aaron Powell And it also catches a compromised account before it uses the company's servers to spam others, which protects your domain's reputation.

SPEAKER_00

So you don't end up on those blacklists we talked about. Right. Okay, I have to push back a bit here, though. Because if this thing is so smart, why do we still hear about massive corporate hacks starting with an email like every single week?

SPEAKER_01

Aaron Powell It's a fair point. The reality check here is that firewalls aren't infallible. They have inherent operational limitations.

SPEAKER_00

Aaron Powell Like what?

SPEAKER_01

Well, one of the most glaring is encrypted archives. If an attacker sends a password-protected ZIP file.

SPEAKER_00

Oh, because the firewall can't see inside it?

SPEAKER_01

Right. If they include the password in the body of the email, the firewall is completely blind to the attachment's contents. It can't put it in the sandbox because it doesn't know how to open it.

SPEAKER_00

Aaron Powell So the encryption is doing its job just for the wrong side.

SPEAKER_01

Exactly. And firewalls also struggle with highly customized social engineering that preys on human psychology. The multi-channel attacks, where an attacker sends a benign email referencing a malicious link that they simultaneously send via a LinkedIn direct message.

SPEAKER_00

Aaron Powell Bypassing the email perimeter entirely.

SPEAKER_01

Yes. Which is why organizations absolutely still need user awareness training and multi-factor authentication. You can't just rely on the firewall.

SPEAKER_00

We've seen how it works, we've seen where its limits are. So where is this technology heading? What's the future look like?

SPEAKER_01

Email firewalls are evolving to integrate with Zero Trust Architectures and Extended Detection and Response or XDR platforms.

SPEAKER_00

Oh, so they're talking to the rest of the network now.

SPEAKER_01

Yes, exactly. It's becoming a unified immune system. If the email gateway detects a novel threat, it automatically shares that telemetry with the endpoint security agent on your laptop. They are an essential layer in a defense in depth strategy.

SPEAKER_00

Wow, it really is the unsung hero holding the perimeter together. Well, that brings us to the end of our deep dive today. A quick reminder to you all you've been listening to the WeCyberU Unlock podcast. Please take a second to follow the channel and check out WeCyber You.com for more deep dives into the technology that secures our digital lives.

SPEAKER_01

Lots of great resources on there.

SPEAKER_00

For sure. But before we let you go, I want to leave you with a final thought to mull over. We learned today that AI is analyzing our writing styles, right? Our tone, our syntax, just to block scammers and prove we are who we say we are.

SPEAKER_01

The behavioral analysis, yeah.

SPEAKER_00

Right. But as generative AI gets better at mimicking us perfectly, learning exactly how we format our requests or how we joke, will we eventually need our own personal AI agents just to read our emails and verify our own identities before we're even allowed to communicate? I mean, human trust might become totally obsolete. Something to think about.

SPEAKER_01

A scary thought.

SPEAKER_00

It really is. Until next time, stay safe out there.