Hackers often attack Secure Email Gateways (SEGs) to bypass security measures and gain access to private communications.
Once they have attacked SEGs, they can snoop on emails, change them or even start a phishing scheme that will spread malware and steal sensitive information from the organizations involved.
Cybersecurity researchers at Cofense recently discovered that hackers have been actively attacking and bypassing the SEGs with sophisticated malware exploits.
Scan Your Business Email Inbox to Find Advanced Email Threats - Try AI-Powered Free Threat Scan
Technical Analysis
Secure Email Gateways (SEGs) have a vulnerability that threat actors are actively exploiting by sending them corrupted .zip archives.
These archives contain HTML files with .Mpeg extensions that enable obfuscation of harmful content from SEG scans.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS7mR8zsuHbSnszAAHLAp2rDDl4Syv-9pHNeB2H5Cz145UEE1AFbqDpk1ovt0hWGK9qCG8kVEzBUPw6AzWM7u0ZHlHxg2yU2EY1J-RbB0010LWyV0dGEk6qZyFRiHItDCJZTiv2yP7e-iyxlRu1Fj_JCmobWpwkLT3dTKu2RVXsT8qkGpIXrB9FFqeyRy3/s16000/Email%20with%20attached%20archive%20containing%20obfuscated%20contents%20(Source%20-%20Cofense).webp)
On Outlook or Windows Explorer, where the hidden nature of true HTML is exposed, it becomes possible to execute embedded malware like FormBook.
This method has evaded detection on Cisco’s IronPort system and similar products, which show a major email filter system flaw.
Hackers disseminated phishing emails well-tailored for Spanish-speaking employees at international financial firms. As this attack targets employees in Spain working for large international banks using carefully crafted phishing emails with fake invoices attached.
Download Free Cybersecurity Planning Checklist 2024 (PDF) – Download Here
While 7zip and PowerISO recognize the file as .mpg (but when opened, it is unable to play), besides this, SEGs and Windows built-in tools perceive it as HTML.
Consequently, this inconsistency in file parsing between various systems allows undetected malware to reach potential victims. The malicious .zip archive exploits these inconsistencies.
SEGs and typical archive software, such as Power ISO and 7zip, can identify the content as an .Mpeg file, while Windows Explorer and Outlook recognize it correctly as HTML.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVFvhhi-VGWbz3eSGSkY8W9xIFmhPYX7ECwQwQldz61GO77FSRlZK9z0n5gyxGiWiAqRcY1PvoqyWlww1IbOue__i1EkxBEwF_4ksJkgwuW9rDtLiIogEHH1pGOSfkEUt1QK6jMVgethth7Hj94khUjJ-h0GdiErmJk-UAAsdTSB0APKSaP6Ew5HeQ2jrE/s16000/Archive%20file%20contents%20viewed%20in%20multiple%20programs%20(Source%20-%20Cofense).webp)
In this case, the archive’s manipulated header and footer information causes this difference. The header shows that it is a .Mpeg file whereas the footer discloses its true HTML nature.
According to the report, This method allows malware to go undetected while under both SEG inspection and casual viewing, consequently revealing significant security risks in parsing files through email filters.
When one opens the HTML file, it delivers another .zip archive that carries a .cmd file, which is a .cab folder.
This contains a DBat Loader executable that can be downloaded and run inside the memory space of FormBook malware.
This particular variant of FormBook calls out to different C2 servers with multiple paths compared to standard versions.
Among the top 10 information stealers is FormBook, which can double up as a keylogger, File Manager, Clipboard Manager, Screenshot Grabber, Network Traffic Analyzer, and Browser Data thief. It may also be able to download and launch additional malware, including ransomware.
Download Free Cybersecurity Planning Checklist 2024 (PDF) – Download Here