Shikitega adopting a multi-stage infection chain to compromise endpoints and IoT devices
Until recently, compared to Windows, Linux users had a myth that many believed : that Linux did not have viruses and was not susceptible to attacks.
However, new data shows that cyberattack trends are changing. According to data presented by the Atlas VPN team, the amount of new Linux malware reached an all-time high in the first half of 2022, with nearly 1,7 million samples discovered. Researchers uncovered a new strain of Linux malware that stands out for its stealth and sophistication in infecting traditional servers and small Internet of Things devices.
Compared to the same period last year, when 226 samples were discovered, the amount of new Linux malware soared by almost 324%. Looking at the number of new Linux malware samples quarter over quarter, in the first quarter of this year it decreased 650% from 2 in the fourth quarter of 872,165 to 2021 in the first quarter of 854,688. In the second quarter, the samples of malware fell again, this time by 2022%, to 2,5.
Dubbed Shikitega by the AT&T Alien Labs researchers who discovered it, this malware is distributed through a multi-step infection chain using polymorphic encoding. It also uses legitimate cloud services to host command and control servers. These elements make detection extremely difficult.
“Threat actors continue to look for new ways to deliver malware in order to stay under the radar and avoid detection,” AT&T Alien Labs researcher Ofer Caspi wrote. “Shikitega malware is delivered in a sophisticated way, it uses a polymorphic encoder and gradually delivers its payload where each step reveals only a part of the total payload. Furthermore, the malware abuses known hosting services to host its command and control servers. »
The malware downloads and runs meterpreter “Mettle” from Metasploit to maximize your control over infected machines;
shikitega exploit system vulnerabilities to gain elevated privileges, persist and run crypto miner. The malware uses a polymorphic encoder to make it harder for antivirus engines to detect. Shikitega abuses legitimate cloud computing services to host some of its command and control (C&C) servers.
It is a native code implementation of a Meterpreter, designed for portability, integrability, and low resource usage. It can run on the smallest to the most powerful embedded Linux targets, and targets Android, iOS, macOS, Linux, and Windows, but can be ported to almost any POSIX-compliant environment.
New malware like BotenaGo and EnemyBot illustrate how malware authors are rapidly integrating newly discovered vulnerabilities to find new victims and increase their reach. Shikitega uses a multi-layered infection chain, the first of which contains only a few hundred bytes, and each module is responsible for a specific task, from downloading and running the Metasploit meterpreter, to exploiting Linux vulnerabilities, to configuring the persistence on the infected machine until a cryptominer is downloaded and executed.
The malware is a very small ELF file , with a total size of only about 370 bytes, while the actual code size is about 300 bytes . The malware uses the Shikata Ga Nai additive feedback polymorphic XOR encoder, one of the most popular encoders used in Metasploit. With this encoder, the malware goes through multiple decoding loops, where each loop decodes the next layer, until the final shellcode payload is decoded and executed.
After several decryption loops, the final payload shellcode will be decrypted and executed, since the malware does not use any import, it uses int 0x80 to execute the appropriate system call. As the main code of the dropper is very small, the malware will download and execute additional commands from its command and control by calling 102 syscall ( sys_socketcall ).
- The C&C will respond with additional shell commands to execute.
- The first marked bytes are the shell commands that the malware will execute.
- The received command will download additional files from the server that will not be stored on the hard drive, but will be executed only in memory.
- In other versions of the malware, it uses the execve system call to execute /bin/sh with the command received from the C&C.
The next file downloaded and executed is an additional small ELF file (about 1 kB) encoded with the Shikata Ga Nai encoder. The malware decrypts a shell command to be executed by calling syscall_execve with '/bin/sh' as a parameter with the decrypted shell. The second stage dropper decrypts and executes the shell commands. The executed shell command will download and execute additional files. To run the next and final stage dropper, it will exploit two vulnerabilities in Linux to exploit privileges: CVE-2021-4034 and CVE-2021-3493.
Finally , if you are interested in learning more about this , you can find the details at the following link.