An advanced Persistent threat (APT) attacker is utilizing a new coding style using an API-like architecture to simplify updates of the malware, researchers said.

Microcin, or SixLittleMonkeys, an APT actor that conducts cyberespionage campaigns against government bodies and diplomatic entities, ended up discovered several years ago targeting government bodies with a backdoor, said researchers at Kaspersky.

The group was able to mask its malicious activity by using steganography, a process by which data is sent in a concealed format so no one is aware it has been downloaded or updated, therefore making it more difficult for anti-virus products to detect the malicious payloads.

Earlier this year when SixLittleMonkeys was in active operations against a diplomatic entity, they were largely using the same toolset and style: Steganography and library search order hijacking. However, they made one major enhancement in the last-stager by applying enterprise-style coding techniques. The last-stager is the final stage of an attack when the malicious payload has been downloaded and begins executing commands on the victim’s device.

Schneider Bold

APIs (Application Programming Interface) allow developers to build applications faster and easier by creating building blocks for future programs so code doesn’t have to be developed from scratch. In the case of malware, APIs add an additional layer of efficiency so updates or changes can be made much quicker.

SixLittleMonkeys’ last-stager’s exported API-like function utilizes two callback parameters (functions to be called back at a later time): Pointers to encryptor and logger functions. The former is in charge of encryption/decryption of the C2 (control server) communications and configuration data. The latter saves the malware’s history of operations into the file. With such an approach, it is easier for the authors to change the encryption algorithm or redirect the logger through a different communication channel.

Another new aspect of SixLittleMonkeys latest activity is the use of asynchronous work with sockets. The sockets in this case are the entities for network communications with the control server. Because they are asynchronous, one operation doesn’t block the other, meaning all commands are executed.

“This use of an enterprise-grade API-like programming style is something quite rarely found in malware, even for those involved in targeted campaigns,” said Denis Legezo, senior security researcher at Kaspersky. “It demonstrates extensive experience in software development and signifies significant sophistication on the part of the actor. With such callbacks in their new network module, updating and supporting it is much easier.”

Click here for more information about SixLittleMonkeys.

Pin It on Pinterest

Share This