Hackers keep trying to get malicious Windows file onto MacOS
Malware pushers are experimenting with a novel way to infect Mac users that runs executable files that normally execute only on Windows computers.
Researchers from antivirus provider Trend Micro made that discovery after analyzing an app available on a Torrent site that promised to install Little Snitch, a firewall application for macOS. Stashed inside the DMG file was an EXE file that delivered a hidden payload. The researchers suspect the routine is designed to bypass Gatekeeper, a security feature built into macOS that requires apps to be code-signed before they can be installed. EXE files don’t undergo this verification, because Gatekeeper only inspects native macOS files.
“We suspect that this specific malware can be used as an evasion technique for other attack or infection attempts to bypass some built-in safeguards such as digital certification checks, since it is an unsupported binary executable in Mac systems by design,” Trend Micro researchers Don Ladores and Luis Magisa wrote. “We think that the cybercriminals are still studying the development and opportunities from this malware bundled in apps and available in torrent sites, and therefore we will continue investigating how cybercriminals can use this information and routine.”
By default, EXE files won’t run on a Mac. The booby-trapped Little Snitch installer worked around this limitation by bundling the EXE file with a free framework known as Mono. Mono allows Windows executables to run on MacOS, Android, and a variety of other operating systems. It also provided the DLL mapping and other support required for the hidden EXE to execute and install the hidden payload. Interestingly, the researchers couldn’t get the same EXE to run on Windows.
The researchers wrote:
Currently, running EXE on other platforms may have a bigger impact on non-Windows systems such as MacOS. Normally, a mono framework installed in the system is required to compile or load executables and libraries. In this case, however, the bundling of the files with the said framework becomes a workaround to bypass the systems given EXE is not a recognized binary executable by MacOS’ security features. As for the native library differences between Windows and MacOS, mono framework supports DLL mapping to support Windows-only dependencies to their MacOS counterparts.
The Little Snitch installer the researchers analyzed collected a wealth of system details about the infected computer, including its unique ID, model name, and the apps installed. It then downloaded and installed various adware apps, some of which were disguised as legitimate versions of Little Snitch and Adobe’s Flash Media Player.
The discovery underscores the cat-and-mouse game that plays out almost endlessly between hackers and developers. As soon as developers devise a new way to protect users, hackers find a way to get around it. Developers then introduce a fix that remains in place until hackers find a new way to skirt the protection.
In 2015, macOS security expert Patrick Wardle reported a drop-dead simple way for malware to bypass Gatekeeper. The technique worked by bundling a signed executable with a non-signed executable. Apple fixed the bypass weakness after Wardle reported it. Company representatives didn’t immediately respond to an email seeking comment about the reported ability of EXE files to bypass Gatekeeper.