Paper: Mayhem - a hidden threat for *nix web servers

Posted by   Virus Bulletin on   Jul 17, 2014

New kind of malware has the functions of a traditional Windows bot, but can act under restricted privileges in the system.

One of the main trends in malware in recent years is a sudden focus on malware targeting Linux and Unix (web) servers. By targeting these servers, malware authors not only make user of far better network connections and more powerful servers than the average Windows PC has, the servers are also less likely to be updated on a regular basis and they are less likely to run security software.

Earlier this year, we published an article by four researchers from Yandex in Russia on the 'Effusion' malware, that targeted servers running Nginx and only last week researchers from Kaspersky wrote a blog about 'Mayday', a DDoS trojan targeting Linux servers.

Today, we publish a paper by three of the aforementioned Yandex researchers (Andrew Kovalev, Konstantin Otrashkevich and Evgeny Sidorov) in which they analyse 'Mayhem', a new kind of malware that runs on *nix servers and is able to gain maximum benefits, even when running under restricted privileges on the target system.

Mayhem, a partial analysis of which was previously published by Malware Must Die!, infects a server via PHP script. Once installed, the malware runs in an infinite loop and uses HTTP POST to send information to and receive instructions from a command and control server. The core functionality of the malware is determined by a number of plug-ins, which are stored in a hidden file system. Most of the plug-ins help those controlling the malware find other web servers to infect, either by looking for vulnerabilities or by using brute force to gain access.

The researchers also managed to gain access to two command and control servers. This allowed them to determine that the malware had infected at least 1,400 servers, most of which are located in the USA, Russia, Germany and Canada. They also found a number of plug-ins that have yet to be seen in the wild, including one that exploits the Heartbleed vulnerability in OpenSSL.

You can download this paper here in HTML format, or here as a PDF (no registration required).

If you are interested in Linux malware, make sure you attend VB2014, where Evgeny Sidorov and Konstantin Otrashkevich will co-present a paper on 'CDorked' and 'Ebury'. You find information on how to register for the conference here.

Posted on 17 July 2014 by Martijn Grooten



Latest posts:

VB2019 paper: APT cases exploiting vulnerabilities in region-specific software

At VB2019, JPCERT/CC's Shusei Tomonaga and Tomoaki Tani presented a paper on attacks that exploit vulnerabilities in software used only in Japan, using malware that is unique to Japan. Today we publish both their paper and the recording of their…

New paper: Detection of vulnerabilities in web applications by validating parameter integrity and data flow graphs

In a follow-up to a paper presented at VB2019, Prismo Systems researchers Abhishek Singh and Ramesh Mani detail algorithms that can be used to detect SQL injection in stored procedures, persistent cross-site scripting (XSS), and server‑side request…

VB2020 programme announced

VB is pleased to reveal the details of an interesting and diverse programme for VB2020, the 30th Virus Bulletin International Conference.

VB2019 paper: Cyber espionage in the Middle East: unravelling OSX.WindTail

At VB2019 in London, Jamf's Patrick Wardle analysed the WindTail macOS malware used by the WindShift APT group, active in the Middle East. Today we publish both Patrick's paper and the recording of his presentation.

VB2019 paper: 2,000 reactions to a malware attack – accidental study

At VB2019 cybercrime journalist and researcher Adam Haertlé presented an analysis of almost 2000 unsolicited responses sent by victims of a malicious email campaign. Today we publish both his paper and the recording of his presentation.

We have placed cookies on your device in order to improve the functionality of this site, as outlined in our cookies policy. However, you may delete and block all cookies from this site and your use of the site will be unaffected. By continuing to browse this site, you are agreeing to Virus Bulletin's use of data as outlined in our privacy policy.