Cybersecurity researchers have uncovered a set of malicious artifacts that they say is part of a sophisticated toolkit targeting Apple macOS systems.
“As of now, these samples are still largely undetected and very little information is available about any of them,” Bitdefender researchers Andrei Lapusneanu and Bogdan Botezatu said in a preliminary report published on Friday.
The Romanian firm’s analysis is based on an examination of four samples that were uploaded to VirusTotal by an unnamed victim. The earliest sample dates back to April 18, 2023.
Two of the three malicious programs are said to be generic Python-based backdoors that are designed to target Windows, Linux, and macOS systems. The payloads have been collectively dubbed JokerSpy.
The first constituent is shared.dat, which, once launched, runs an operating system check (0 for Windows, 1 for macOS, and 2 for Linux) and establishes contact with a remote server to fetch additional instructions for execution.https://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-7983783048239650&output=html&h=250&slotname=2185767680&adk=3131036013&adf=4257282429&pi=t.ma~as.2185767680&w=300&fwrn=4&fwrnh=100&lmt=1687484085&rafmt=12&format=300×250&url=https%3A%2F%2Fthehackernews.com%2F2023%2F06%2Fresearchers-discover-new-sophisticated.html&fwr=0&fwrattr=true&rh=250&rw=300&sfro=1&wgl=1&dt=1687496904405&bpp=1&bdt=373&idt=537&shv=r20230620&mjsv=m202306160601&ptt=9&saldr=aa&abxe=1&cookie=ID%3D5604485fd265ab7d-220e8a6d58df0019%3AT%3D1682023517%3ART%3D1687496904%3AS%3DALNI_MZRZpKGtl2P_PjUncQNpTaITwMVHw&gpic=UID%3D00000bfafde4201f%3AT%3D1682023517%3ART%3D1687496904%3AS%3DALNI_MZ7r6MeYnHbeN-7VL4OzLpQ1EVkYw&prev_fmts=0x0%2C300x250&nras=1&correlator=8410987493409&frm=20&pv=1&ga_vid=1062844674.1687496905&ga_sid=1687496905&ga_hid=1545060619&ga_fc=0&u_tz=330&u_his=1&u_h=900&u_w=1440&u_ah=819&u_aw=1440&u_cd=24&u_sd=2&adx=392&ady=1318&biw=1425&bih=820&scr_x=0&scr_y=0&eid=44759875%2C44759926%2C44759842%2C42532277%2C42532279%2C31075470%2C44788442&oid=2&psts=ABHeCviMBYm8QaBRX9rhx6QNYLEZo6Cr5zCAsgpzA_NF7A-HTU9946VerHI9DpSUstRUivxoQ2b-JFzcvqpN7O7n7lLfonleIt9uaozGyfhAWzFhcYE&pvsid=1053353049786237&tmod=294449893&uas=0&nvt=1&fc=1920&brdim=0%2C0%2C0%2C0%2C1440%2C25%2C1440%2C900%2C1440%2C820&vis=1&rsz=%7C%7CeEbr%7C&abl=CS&pfx=0&fu=128&bc=31&ifi=2&uci=a!2&btvi=1&fsb=1&xpc=41zlPJ6DSQ&p=https%3A//thehackernews.com&dtd=M
This includes gathering system information, running commands, downloading and executing files on the victim machine, and terminating itself.
On devices running macOS, Base64-encoded content retrieved from the server is written to a file named “/Users/Shared/AppleAccount.tgz” that’s subsequently unpacked and launched as the “/Users/Shared/TempUser/AppleAccountAssistant.app” application.
The same routine, on Linux hosts, validates the operating system distribution by checking the “/etc/os-release” file. It then proceeds to write C code to a temporary file “tmp.c,” which is compiled to a file called “/tmp/.ICE-unix/git” using the cc command on Fedora and gcc on Debian.
Bitdefender said it also found a “more potent backdoor” among the samples, a file labeled “sh.py” that comes with an extensive set of capabilities to gather system metadata, enumerate files, delete files, execute commands and files, and exfiltrate encoded data in batches.
The third component is a FAT binary known as xcc that’s written in Swift and targets macOS Monterey (version 12) and newer. The file houses two Mach-O files for the twin CPU architectures, x86 Intel and ARM M1.
“Its primary purpose is apparently to check permissions before using a potential spyware component (probably to capture the screen) but does not include the spyware component itself,” the researchers said.
Master DevSecOps with an AppSec Platform: Learn How to Shift Everywhere
Learn how to shift everywhere and secure your applications at every stage of the software development life cycle.Download Guide
“This leads us to believe that these files are part of a more complex attack and that several files are missing from the system we investigated.”
xcc’s spyware connections stem from a path identified within the file content, “/Users/joker/Downloads/Spy/XProtectCheck/” and the fact that it checks for permissions such as Disk Access, Screen Recording, and Accessibility.
The identity of the threat actors behind the activity is unknown as yet. It’s currently also not clear how initial access is obtained, and if it involves an element of social engineering or spear-phishing.
The disclosure comes a little over two weeks after Russian cybersecurity company Kaspersky disclosed that iOS devices have been targeted as part of a sophisticated and long-running mobile campaign dubbed Operation Triangulation that began in 2019.