Dark Reading is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them.Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.


01:15 PM

Attackers Already Targeting Apple's M1 Chip with Custom Malware

A proof-of-concept program infects systems with ARM64-compiled binaries and then reaches out to download additional functionality.

The latest processor for Apple's Macs — the M1 chip — has already become a target for malware authors, who have created Mac-specific binaries targeting the ARM64 architecture used by the processors, researchers said this week.

For example, one MacOS malware downloader, dubbed Silver Sparrow, has a number of interesting properties, including the use of the MacOS installer's JavaScript API to create persistence, and communication with a command-and-control (C2) infrastructure built on Amazon Web Services (AWS) servers and Akamai's content distribution network (CDN), security firm Red Canary stated in an analysis of the new malware. In addition, the malware also natively runs on the latest Macs running the M1 ARM64 architecture.

Related Content:

Mac Attackers Remain Focused Mainly on Adware, Fooling Users

Special Report: Understanding Your Cyber Attackers

New From The Edge: Breach Etiquette: How to Mind Your Manners When It Matters

While creating a native binary for the ARM64 architecture is an interesting step on the part of attackers, the development merely allows the malware to run a bit faster and may avoid some x86-focused security measures, says Tony Lambert, intelligence analyst at Red Canary.

"This threat didn't take advantage of any particular feature unique to M1 itself," he says, but adds that "the malware has a greater chance of success on M1 systems due to the [relative lack of] availability of security tools for the new architecture."

Attackers have traditionally focused on Mac systems as an afterthought, since Windows-based computers have historically dominated business applications. However, that has changed over the past decade, with nation-state attackers and more sophisticated hackers focusing on Mac systems, and cybercriminals attempting to focus on legal gray areas, such as adware. In 2020, for example, almost all malware encountered by Mac users was adware or potentially unwanted programs (PUPs), not malware.

In the case of Silver Sparrow, the creation of an M1-specific binary is merely a point of interest, says Lambert. The malware platform does not currently have any subsequent stage, so its hourly attempts to contact the operator's C2 infrastructure does not result in the installation of additional features or functions, according to Red Canary.

Yet, while tailoring the code to the M1 chip requires little effort on the part of the malware authors — just compiling the code on an M1 Mac will do — the fact that someone has done so indicates that attackers are looking to the future. In addition, security firms could be behind the curve, says Lambert.

"Since the architecture changed, software developers need to recompile their products and test for the new systems," he says. "As a result, some security vendors haven't fully caught up to the technology change."

Non-native ARM64 programs use an Apple technology known as Rosetta to run on M1-based Macs. Because the malware does not have to go through the Rosetta system for backward compatibility, it could avoid detection.

Independent researcher Patrick Wardle searched the malware repository VirusTotal for information on recent binaries and found at least one program that appears to be a malicious M1 executable. Malicious M1 programs appear to evade detection by current antivirus systems, he stated in an analysis.

"[M]ore worrisomely, [static] analysis tools or anti-virus engines may struggle with ARM64 binaries," he wrote. "Unfortunately detections of the arm64 version dropped roughly 15%—when compared to the standalone x86_64 version—[and] several industry leading AV engines, who readily detected the x86_64 version, failed to flag the malicious ARM64 binary."

Another anti-detection approach: The Silver Sparrow malware also uses the JavaScript API to automate installation and persistence, something researchers have not seen in Mac malware in the past and that security software might miss, Red Canary's Lambert says.

"If defenders have detection analytics written to look for malicious pre-install or post-install scripts — one usual route taken by malicious installers — using the JavaScript API to invoke commands will evade those detection analytics because it produces a different pattern in telemetry," Lambert says. "In this case, using JavaScript causes the legitimate macOS installer process to invoke the commands without indicating the precise source within the installer package."

Red Canary and other security firms notified Apple and Amazon of the issues, and both companies have taken steps to blunt the impact of Silver Sparrow. Apple has revoked the specific developer IDs used to create the malware, and Amazon has worked to prevent access to the specific S3 buckets used by the malware infrastructure. 

"Thankfully, that risk is decreasing due to the response of Apple and Amazon ... they both have internal processes to investigate and remove malicious use of their systems," Lambert says. "That said, it's still possible that versions of Silver Sparrow exist in the wild that no vendors have observed and that use different S3 instances or callback domains. Those users would definitely be at risk."

While a non-M1 version of the C2 infrastructure appeared in mid-August, the malware infrastructure was updated in December with the M1 download domains in December. The actual programs have both been submitted to VirusTotal in the last month.

Veteran technology journalist of more than 20 years. Former research engineer. Written for more than two dozen publications, including CNET News.com, Dark Reading, MIT's Technology Review, Popular Science, and Wired News. Five awards for journalism, including Best Deadline ... View Full Bio

Recommended Reading:

Comment  | 
Print  | 
More Insights
Newest First  |  Oldest First  |  Threaded View
Cyberattacks Are Tailored to Employees ... Why Isn't Security Training?
Tim Sadler, CEO and co-founder of Tessian,  6/17/2021
7 Powerful Cybersecurity Skills the Energy Sector Needs Most
Pam Baker, Contributing Writer,  6/22/2021
Microsoft Disrupts Large-Scale BEC Campaign Across Web Services
Kelly Sheridan, Staff Editor, Dark Reading,  6/15/2021
Register for Dark Reading Newsletters
White Papers
Current Issue
The State of Cybersecurity Incident Response
In this report learn how enterprises are building their incident response teams and processes, how they research potential compromises, how they respond to new breaches, and what tools and processes they use to remediate problems and improve their cyber defenses for the future.
Flash Poll
How Enterprises are Developing Secure Applications
How Enterprises are Developing Secure Applications
Recent breaches of third-party apps are driving many organizations to think harder about the security of their off-the-shelf software as they continue to move left in secure software development practices.
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
PUBLISHED: 2021-06-24
Shopware is an open source eCommerce platform. In versions prior to the admin api has exposed some internal hidden fields when an association has been loaded with a to many reference. Users are recommend to update to version You can get the update to regularly via the Auto-U...
PUBLISHED: 2021-06-24
Shopware is an open source eCommerce platform. In versions prior to private files publicly accessible with Cloud Storage providers when the hashed URL is known. Users are recommend to first change their configuration to set the correct visibility according to the documentation. The visibilit...
PUBLISHED: 2021-06-24
Shopware is an open source eCommerce platform. Versions prior to 5.6.10 are vulnerable to system information leakage in error handling. Users are recommend to update to version 5.6.10. You can get the update to 5.6.10 regularly via the Auto-Updater or directly via the download overview.
PUBLISHED: 2021-06-24
Shopware is an open source eCommerce platform. Versions prior to 5.6.10 suffer from an authenticated stored XSS in administration vulnerability. Users are recommend to update to the version 5.6.10. You can get the update to 5.6.10 regularly via the Auto-Updater or directly via the download overview.
PUBLISHED: 2021-06-24
Shopware is an open source eCommerce platform. Potential session hijacking of store customers in versions below We recommend to update to the current version You can get the update to regularly via the Auto-Updater or directly via the download overview. For older versions o...