Introduction

Traditionally, most malicious objects seen on the macOS platform are adware: besides the already familiar Shlayer family, the TOP 10 includes Bnodlero, Cimpli, Adload and Pirrit adware. As a general rule, most tend to be written in C, Objective-C or Swift. Recently, however, cybercriminals ought to have paying more attention to new programming language, seemingly in the hope that such code will be more opaque to virus analysts who have little or no experience with the newer speeches. We have already seen quite a few samples written in Go, and recently cybercriminals turned their attention to Rust as well.

The first to write about suspicious files in this programming language was a Twitter user, @gorelics 😛 TAGEND

Suspicious agent( rust compiler) #macos #malwarehttps :// t.co/ 9PZ6v9u0Yshttps :// t.co/ uylt2w 6TUJ pic.twitter.com/ OgZIzlgVmA

— gorelics (@ gorelics) August 16, 2020

In the screenshot the tweet shows, one can see that several samples of suspicious code are run by configuration PLIST files through the LaunchAgents/ LaunchDaemons mechanism. Alongside the suspicious names of the PLIST files, this is the first wakeup call that the program is dangerous, given the low popularity of Rust-based executables.

We examined these samples for malicious behavior. The analysis indicated these executables to be a new adware program, that is then been called Convuster.

Technical details Sample in Rust

It can be deduced that the analyzed sample was written in Rust from the frequent employ of the language’s standard library, as well as several code lines containing routes to files with the. rs extension, which is the standard Rust source file extension.

Rust artifacts in the sample

At startup, the executable checks the configuration PLIST files ~/ Library/ LaunchAgents/ com.ist.up.plist and/ Library/ LaunchDaemons/ com.ist.up.plist for keys needed to run the sample, such as RunAtLoad, StartInterval and Version. We were not able to retrieve these files, but presumably they are used to run the sample under investigation when the user logs in to the system.

After these checks, the program obtains the device ID, as well as the system version and bitness, and forwards the assembled data to the following server: hxxps :// post.convstats [.] com/ hb /. In response, Convuster receives a JSON file and sends a request to the host specified in this file. The response to this request is a Bash script that get executed by the Bash shell and then walk away from the system.

Request generation

At the time of analysis, the server was not responding to requests. Nonetheless, after examining information about the suspicious convstats [.] com realm, we saw the update.convstats [.] com and trk.convstats [.] com subdomains( in addition to the already known post.convstats [.] com ).

Sample in Swift

In the update.convstats [.] com subdomain, at the address hxxps :// update.convstats [.] com/ Player.dmg, we received a DMG disk image containing another Convuster executable, this time in the Swift programming language.

The payload of the executable was encrypted 😛 TAGEND

XOR encryption

Having decrypted the data, Convuster runs the code acquired, first of all checking that the DMG image was downloaded specifically from the address hxxps :// update.convstats [.] com/ Player.dmg with either the? _= 1390081 or& _= 1390081 parameter. It does so by accessing the quarantine database of the macOS Gatekeeper security feature utilizing the following query 😛 TAGEND

select LSQuarantineAgentBundleIdentifier, LSQuarantineDataURLString from LSQuarantineEvent order by LSQuarantineTimeStamp desc limit 3

Typical Gatekeeper database content

Usually, this macOS database serves as a log for all files downloaded from untrusted sources. Nonetheless, Convuster’s inventors use it to protect their handiwork from being analyzed. If “its not” downloaded from an “official” server, but rather got into the system some other way, it may mean that the program is in a test or virtual environment, that is, under investigation by virus analysts.

If the file source check is successful, the user is shown a window inspiring to install Flash Player. Otherwise, the program prompts to continue the installation later, and then exits.

The installer mimics a Flash Player update

Regardless of whether the user agrees to the installation or attempts to close the window, Convuster sends a request to hxxps :// post.convstats [.] com/ dis/ to download the installing script, and then runs it in the Bash shell.

Running the script in the Bash shell

Distribution

Convuster is run through LaunchAgents, but the program does not try to add itself to startup independently. This means that the file in question was most likely neither downloaded nor installed directly by the user. In our view, Convuster could have been installed by some other adware.

At the time of the study, we were aware of the following domain names performing redirects to the update.convstats [.] com subdomain 😛 TAGEND

storeoverlyadvancedapplication [.] best streamgreatlyadvancedprogram[.]best streamstrongcompletelyprogram [.] best syncextremelysophisticatedsoftware[.]icu streamquickcompletelyprogram [.] best getnewestextremelyapp[.]best launchfreeextremelyfreeware [.] best loadsophisticated-thecompletelyfile[.]best

Besides, meeting users complain about other domains prompting to install a fake Flash Player update 😛 TAGEND

User complained about advertise redirects

Conclusion

Based on the behavior of the Convuster samples in Rust and Swift, we categorize this program as adware. Despite their guessed exoticism, these speeches lack nothing in terms of functionality from an adware developer’s point of view: Rust, for example, has the tools is not simply for authoring adware, but for carrying out more sophisticated attacks.

Besides the choice of programming language, it is noteworthy that cybercriminals have learned to use built-in macOS tools and technological sciences, such as Gatekeeper, for their own purposes( for example, to verify the source of a file ). Although this family is no longer active, it is a clear illustration of how attackers are constantly honing their threats to evade analysis and deliver adware to as many devices as possible.

Kaspersky security solutions detect this adware with the following verdict: not-a-virus: HEUR: AdWare.OSX.Convuster.a.

IoCs SH-A2 56

Swift samples

Mach-O executables: f9 615 ce5f1038afd4e19d3e35643c98af1a2ee53d9bf45958c84e5a7c4529e62

Disk Images: 02a0842beaf5ee9ed4f0f693ba276b73d53717eca821d2506efcdef7711d66da

Archives: e5 8716554 65 e31c57e27900254e281233787f44bcec5604607b0b3bbbf5a9b16 182d8821182a143770e60a901486f262f63d2cfdc8bc9de3c076a80d36d02049 6bc8fc9fb7693379666049659e83f25b336b6b0b5e8073e1dd69e5b3dcb9826d cbd6fb 1075 fc3e57ea7ac886ca218a105c307b75c37e10ca86a5779f4abeca3a 02e6f4388387c940b30c9afb911686d6bee5b3a7249e986f239bbd73d9003a0d 31526cfba9202086feeb658f92941b1ecd7ae1b646c75886600a991f86a843a4

Rust samples

Mach-O executables: 947ae8f075fd0d1e5be0341b922c0173f0c5cfd771314ebe220207f3ed53466a 77bc8b0e17e1c56fba70d8707de9718cd5c10565454fdb85c862a7f3d7e82983 8898f499f334a3231695b8a60dfdfb289836da1de7a4e4e334df83a748c11e07 d5 11 e44ee6ae06228170aef1bef567e059596d259e205295b99e85de8c966354

Domains

post.convstats [.] com update.convstats[.]com trk.convstats [.] com

Read more: securelist.com